From a2efdc6d75b105e760e08b99021cbf5a1f976172 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 27 Jan 2026 14:51:23 +0000 Subject: [PATCH] fix(docs): restructure content directory and fix TOC highlighting Moves markdown files to `content/docs/` to match the TOC structure and ensures the correct `aria-current` attribute is used for the active TOC link. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- content/{ => docs}/about.md | 0 .../{ => docs/community}/community-guidelines.md | 0 content/docs/community/index.md | 8 ++++++++ content/{ => docs/community}/links.md | 0 content/{ => docs}/getting-started.md | 0 content/docs/guides/index.md | 7 +++++++ content/{ => docs/guides}/upload-content.md | 0 content/docs/overview.md | 13 +++++++++++++ content/{ => docs}/roadmap.md | 0 js/docsView.js | 2 +- 10 files changed, 29 insertions(+), 1 deletion(-) rename content/{ => docs}/about.md (100%) rename content/{ => docs/community}/community-guidelines.md (100%) create mode 100644 content/docs/community/index.md rename content/{ => docs/community}/links.md (100%) rename content/{ => docs}/getting-started.md (100%) create mode 100644 content/docs/guides/index.md rename content/{ => docs/guides}/upload-content.md (100%) create mode 100644 content/docs/overview.md rename content/{ => docs}/roadmap.md (100%) diff --git a/content/about.md b/content/docs/about.md similarity index 100% rename from content/about.md rename to content/docs/about.md diff --git a/content/community-guidelines.md b/content/docs/community/community-guidelines.md similarity index 100% rename from content/community-guidelines.md rename to content/docs/community/community-guidelines.md diff --git a/content/docs/community/index.md b/content/docs/community/index.md new file mode 100644 index 00000000..fbb4103f --- /dev/null +++ b/content/docs/community/index.md @@ -0,0 +1,8 @@ +# Community + +Connect with other bitvid users and learn about our community standards. + +## Resources + +- **[Community Guidelines](#view=docs&doc=community-guidelines)**: Expectations for behavior and content. +- **[Links](#view=docs&doc=links)**: Official links and resources. diff --git a/content/links.md b/content/docs/community/links.md similarity index 100% rename from content/links.md rename to content/docs/community/links.md diff --git a/content/getting-started.md b/content/docs/getting-started.md similarity index 100% rename from content/getting-started.md rename to content/docs/getting-started.md diff --git a/content/docs/guides/index.md b/content/docs/guides/index.md new file mode 100644 index 00000000..0b4ab457 --- /dev/null +++ b/content/docs/guides/index.md @@ -0,0 +1,7 @@ +# Guides + +Learn how to make the most of bitvid. + +## Available Guides + +- **[Upload Content](#view=docs&doc=upload-content)**: How to host and share your videos on bitvid. diff --git a/content/upload-content.md b/content/docs/guides/upload-content.md similarity index 100% rename from content/upload-content.md rename to content/docs/guides/upload-content.md diff --git a/content/docs/overview.md b/content/docs/overview.md new file mode 100644 index 00000000..85766c79 --- /dev/null +++ b/content/docs/overview.md @@ -0,0 +1,13 @@ +# Docs Overview + +Welcome to the bitvid documentation! + +Here you will find guides, community information, and details about our roadmap. + +## Sections + +- **[Getting Started](#view=docs&doc=getting-started)**: Learn how to watch and share videos. +- **[About](#view=docs&doc=about)**: Learn more about bitvid's mission. +- **[Guides](#view=docs&doc=guides)**: Detailed guides on using bitvid. +- **[Community](#view=docs&doc=community)**: Community guidelines and links. +- **[Roadmap](#view=docs&doc=roadmap)**: What's coming next. diff --git a/content/roadmap.md b/content/docs/roadmap.md similarity index 100% rename from content/roadmap.md rename to content/docs/roadmap.md diff --git a/js/docsView.js b/js/docsView.js index 167497e8..3cb2089e 100644 --- a/js/docsView.js +++ b/js/docsView.js @@ -206,7 +206,7 @@ function updateActiveToc(slug) { const links = tocState.linkLookup.get(slug); if (links) { links.forEach((link) => { - link.setAttribute("aria-current", "true"); + link.setAttribute("aria-current", "page"); link.classList.remove("text-muted"); link.classList.add("text-text-strong", "font-semibold"); });