Radish alpha
r
rad:z371PVmDHdjJucejRoRYJcDEvD5pp
Radicle website including documentation and guides
Radicle
Git
search: Add page
Draft lorenz opened 10 months ago
3 files changed +112 -0 ebb9b8f8 990881a9
modified Makefile
@@ -16,6 +16,9 @@ cloudflare:
svgs:
	scripts/cleanup-svgs.sh assets/images/*.svg

+
_data/explore.json:
+
	ssh seed.radicle.xyz rad-dump > _data/explore.json
+

publish: default
	wrangler deploy

added _data/search.json
@@ -0,0 +1,62 @@
+
[
+
  {
+
    "description": "https://radicle.xyz",
+
    "name": "radicle-homepage",
+
    "rid": "z2ATVRDqFu2Yq2MG5ZZCWecwSDYqj"
+
  },
+
  {
+
    "description": "A NixOS module to run your own Radicle Seed.",
+
    "name": "nixos-radicle-seed",
+
    "rid": "z2Yq7uMFhhrLrJPwC1iyiyDmeLcwh"
+
  },
+
  {
+
    "description": "Radicle Documentation & Guides",
+
    "name": "radicle-docs",
+
    "rid": "z371PVmDHdjJucejRoRYJcDEvD5pp"
+
  },
+
  {
+
    "description": "Radicle terminal user interface",
+
    "name": "radicle-tui",
+
    "rid": "z39mP9rQAaGmERfUMPULfPUi473tY"
+
  },
+
  {
+
    "description": "Radicle Heartwood Protocol & Stack",
+
    "name": "heartwood",
+
    "rid": "z3gqcJUoA1n9HaHKufZs5FCSGazv5"
+
  },
+
  {
+
    "description": "Radicle CI adapter for native CI",
+
    "name": "radicle-native-ci",
+
    "rid": "z3qg5TKmN83afz2fj9z3fQjU8vaYE"
+
  },
+
  {
+
    "description": "Radicle Team Repository",
+
    "name": "radicle-team",
+
    "rid": "z3TajuiHXifEDEX4qbJxe8nXr9ufi"
+
  },
+
  {
+
    "description": "Radicle Improvement Proposals (RIPs)",
+
    "name": "rips",
+
    "rid": "z3trNYnLWS11cJWC6BbxDs5niGo82"
+
  },
+
  {
+
    "description": "Radicle desktop app",
+
    "name": "radicle-desktop",
+
    "rid": "z4D5UCArafTzTQpDZNQRuqswh3ury"
+
  },
+
  {
+
    "description": "Radicle web interface",
+
    "name": "radicle-explorer",
+
    "rid": "z4V1sjrXqjvFdnCUbxPFqd5p4DtH5"
+
  },
+
  {
+
    "description": "Git libraries for Radicle",
+
    "name": "radicle-git",
+
    "rid": "z6cFWeWpnZNHh9rUW8phgA3b5yGt"
+
  },
+
  {
+
    "description": "Radicle CI broker",
+
    "name": "radicle-ci-broker",
+
    "rid": "zwTxygwuz5LDGBq255RA2CbNGrz8"
+
  }
+
]
added _pages/search.md
@@ -0,0 +1,47 @@
+
---
+
title: Search
+
subtitle: Search the Radicle Network
+
layout: page
+
variant: wide
+
---
+

+
<h1>Search the Radicle Network</h1>
+

+
<input type="text" placeholder="Type to filter" id="filter" onkeyup="update()" />
+

+
<style>
+
li {
+
  margin-bottom: 1.5em;
+
}
+
</style>
+

+
<ul id="search">
+
{% for repo in site.data.search %}
+
  <li>
+
    <a href="https://app.radicle.xyz/nodes/iris.radicle.xyz/rad:{{ repo.rid }}">{{ repo.name }}</a><br>
+
    {{ repo.description }}
+
  </li>
+
{% endfor %}
+
</ul>
+

+
<script>
+
const input = document.getElementById("filter")
+
const ul = document.getElementById("search")
+

+
function update() {
+
  filter(input.value)
+
}
+

+
function filter(needle) {
+
  needle = needle.toLowerCase()
+
  for (const li of ul.getElementsByTagName("li")) {
+
    li.style.display = ((li.textContent || li.innerText).toLowerCase().indexOf(needle) > -1) ? "" : "none"
+
  }
+
}
+

+
const hash = (new URLSearchParams(location.hash.substring(1))).get("s");
+
if (hash !== null) {
+
  input.value = hash
+
  filter(hash)
+
}
+
</script>