From 6f980ca59ae2f7b80193cc3794601bb7f535ebdd Mon Sep 17 00:00:00 2001 From: Paul d'Aoust Date: Thu, 29 Feb 2024 13:08:46 -0800 Subject: [PATCH 1/4] change /references path to /resources, along with all labels --- netlify.toml | 11 ++++++++--- src/pages/_data/navigation/footerLinks.json5 | 4 ++-- src/pages/_data/navigation/headerNav.json5 | 2 +- src/pages/_data/navigation/mainNav.json5 | 4 ++-- src/pages/_includes/widgets/home-tiles.njk | 6 +++--- 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/netlify.toml b/netlify.toml index b4c22ec85..0dbedb97e 100644 --- a/netlify.toml +++ b/netlify.toml @@ -40,7 +40,7 @@ from = "/resources/happ-bundle/" to = "/redirect-to-redux-site.html#!docs/resources/happ-bundle/" # There will eventually be a new hApp bundle format that will get documented, - # and I intend to put it under `/references`. + # and I intend to put it under `/resources`. status = 302 # Some of the core concepts' titles and URLs have changed, @@ -71,6 +71,11 @@ to = "/concepts/8_calls_capabilities/" status = 301 +[[redirects]] + from = "/references/*" + to = "/resources/:splat" + status = 301 + # Once upon a time, we had a landing page and all the actual docs were in /docs. [[redirects]] from = "/docs/*" @@ -101,10 +106,10 @@ to = "/get-started/" status = 301 -# Glossary has been moved to the references path. +# Glossary has been moved to the resources path. [[redirects]] from = "/glossary/" - to = "/references/glossary/" + to = "/resources/glossary/" status = 301 # The front page for the core concepts has been removed. diff --git a/src/pages/_data/navigation/footerLinks.json5 b/src/pages/_data/navigation/footerLinks.json5 index 681ccded4..055b4e7cf 100644 --- a/src/pages/_data/navigation/footerLinks.json5 +++ b/src/pages/_data/navigation/footerLinks.json5 @@ -5,7 +5,7 @@ links: [ { title: "Get Started", url: "/get-started/" }, { title: "Core Concepts", url: "/concepts/1_the_basics/" }, - { title: "Resources", url: "/references/" }, + { title: "Resources", url: "/resources/" }, ] }, @@ -16,7 +16,7 @@ { title: "App API reference", url: "https://docs.rs/holochain_conductor_api/latest/holochain_conductor_api/enum.AppRequest.html", external: true }, { title: "Admin API reference", url: "https://docs.rs/holochain_conductor_api/latest/holochain_conductor_api/enum.AdminRequest.html", external: true }, { title: "CLI", url: "https://github.com/holochain/holochain/tree/main/crates/hc", external: true }, - { title: "Glossary", url: "/references/glossary/", external: true }, + { title: "Glossary", url: "/resources/glossary/", external: true }, ] }, diff --git a/src/pages/_data/navigation/headerNav.json5 b/src/pages/_data/navigation/headerNav.json5 index 2e4e1f5d2..13617a54b 100644 --- a/src/pages/_data/navigation/headerNav.json5 +++ b/src/pages/_data/navigation/headerNav.json5 @@ -2,7 +2,7 @@ links: [ { title: "Get Started", url: "/get-started/", class:"" }, { title: "Core Concepts", url: "/concepts/1_the_basics/", class:"" }, - { title: "Resources", url: "/references/", class:"" }, + { title: "Resources", url: "/resources/", class:"" }, { title: "Get Involved", url: "/get-involved/", class:"" }, ] } \ No newline at end of file diff --git a/src/pages/_data/navigation/mainNav.json5 b/src/pages/_data/navigation/mainNav.json5 index 7ef32bc89..2d9c5975a 100644 --- a/src/pages/_data/navigation/mainNav.json5 +++ b/src/pages/_data/navigation/mainNav.json5 @@ -21,12 +21,12 @@ { title: "Lifecycle Events", url: "/concepts/11_lifecycle_events/" }, ] }, - { title: "References", url: "/references/", children: [ + { title: "References", url: "/resources/", children: [ { title: "HDK (Rust)", url: "https://docs.rs/hdk", external: true }, { title: "App API reference", url: "https://docs.rs/holochain_conductor_api/latest/holochain_conductor_api/enum.AppRequest.html", external: true }, { title: "Admin API reference", url: "https://docs.rs/holochain_conductor_api/latest/holochain_conductor_api/enum.AdminRequest.html", external: true }, { title: "CLI", url: "https://github.com/holochain/holochain/tree/main/crates/hc", external: true }, - { title: "Glossary", url: "/references/glossary/" }, + { title: "Glossary", url: "/resources/glossary/" }, ] }, { title: "Get Involved", url: "/get-involved/" }, diff --git a/src/pages/_includes/widgets/home-tiles.njk b/src/pages/_includes/widgets/home-tiles.njk index ecba4302d..751a25e0e 100644 --- a/src/pages/_includes/widgets/home-tiles.njk +++ b/src/pages/_includes/widgets/home-tiles.njk @@ -16,11 +16,11 @@ {% endlinkTile %} - {% linkTile "/references/", "home-tile" %} + {% linkTile "/resources/", "home-tile" %} {{ toolPanelIcon() }}
-

Resources & Docs

-

Advanced tips and more

+

Resources

+

Howtos, references, examples, and more

{% endlinkTile %} From 76c583afceb4f3985d00bc8ee8e3a7fe7f355a0e Mon Sep 17 00:00:00 2001 From: Paul d'Aoust Date: Thu, 29 Feb 2024 13:14:30 -0800 Subject: [PATCH 2/4] add 'howto' to the spelling dictionary --- .cspell/words-that-should-exist.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.cspell/words-that-should-exist.txt b/.cspell/words-that-should-exist.txt index 3c33be5d1..27464ca57 100644 --- a/.cspell/words-that-should-exist.txt +++ b/.cspell/words-that-should-exist.txt @@ -8,6 +8,7 @@ counterparty counterparty's filesystem filesystems +howto interoperating permissioned permissivity From 1b4ded2c9663bc4ffb7421ee40e1a5b102f99d3a Mon Sep 17 00:00:00 2001 From: Paul d'Aoust Date: Thu, 29 Feb 2024 13:18:20 -0800 Subject: [PATCH 3/4] okay, apparently you need the plural howtos too --- .cspell/words-that-should-exist.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.cspell/words-that-should-exist.txt b/.cspell/words-that-should-exist.txt index 27464ca57..243d620c0 100644 --- a/.cspell/words-that-should-exist.txt +++ b/.cspell/words-that-should-exist.txt @@ -9,6 +9,7 @@ counterparty's filesystem filesystems howto +howtos interoperating permissioned permissivity From 5060d0c42d2848b3aef03617319035ac2343bec5 Mon Sep 17 00:00:00 2001 From: Paul d'Aoust Date: Thu, 29 Feb 2024 13:21:03 -0800 Subject: [PATCH 4/4] rename references path itself --- src/pages/{references => resources}/glossary.md | 0 src/pages/{references => resources}/index.md | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename src/pages/{references => resources}/glossary.md (100%) rename src/pages/{references => resources}/index.md (100%) diff --git a/src/pages/references/glossary.md b/src/pages/resources/glossary.md similarity index 100% rename from src/pages/references/glossary.md rename to src/pages/resources/glossary.md diff --git a/src/pages/references/index.md b/src/pages/resources/index.md similarity index 100% rename from src/pages/references/index.md rename to src/pages/resources/index.md