Skip to content

refactor: use cased URL slugs for navbar sections and reorder right-side links#33

Merged
vbreuss merged 1 commit into
mainfrom
refactor/cased-navbar-slugs
May 3, 2026
Merged

refactor: use cased URL slugs for navbar sections and reorder right-side links#33
vbreuss merged 1 commit into
mainfrom
refactor/cased-navbar-slugs

Conversation

@vbreuss

@vbreuss vbreuss commented May 3, 2026

Copy link
Copy Markdown
Member

Renames the docs URL paths to match the navbar label casing (Abstractions, aweXpect, Mockolate, Chronology, Extensions) and swaps the order of the right-side navbar items so Chronology comes before Extensions.

Section detection in sectionTheme.ts and the swizzled Logo now matches case-insensitively and lowercases the captured segment, keeping the existing data-section / SECTION_LOGOS keys unchanged.

…ide links

Renames the docs URL paths to match the navbar label casing (Abstractions,
aweXpect, Mockolate, Chronology, Extensions) and swaps the order of the
right-side navbar items so Chronology comes before Extensions.

Section detection in sectionTheme.ts and the swizzled Logo now matches
case-insensitively and lowercases the captured segment, keeping the
existing data-section / SECTION_LOGOS keys unchanged.
@vbreuss vbreuss self-assigned this May 3, 2026
Copilot AI review requested due to automatic review settings May 3, 2026 14:19
@vbreuss vbreuss added the documentation Improvements or additions to documentation label May 3, 2026
@vbreuss
vbreuss merged commit 906f82c into main May 3, 2026
4 checks passed
@vbreuss
vbreuss deleted the refactor/cased-navbar-slugs branch May 3, 2026 14:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the documentation portal to use cased top-level URL segments that match navbar label casing, and reorders the right-side navbar items.

Changes:

  • Renames aggregated docs target subdirectories and Docusaurus doc folder names to cased variants (e.g., Abstractions, aweXpect, Mockolate, Extensions, Chronology).
  • Makes section detection in the swizzled Logo and sectionTheme case-insensitive and normalizes the captured segment to lowercase to preserve existing data-section / logo keys.
  • Swaps the order of right-side navbar items so Chronology appears before Extensions.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Pipeline/Build.Pages.cs Updates AggregatedSources target subdirectories to the new cased doc roots.
Docs/pages/src/theme/Logo/index.tsx Makes section matching case-insensitive and normalizes to lowercase for logo selection.
Docs/pages/src/pages/index.tsx Updates landing-page links to the new cased routes (and Extensions link).
Docs/pages/src/css/custom.css Updates comment text to reflect the new /Extensions/* casing.
Docs/pages/src/clientModules/sectionTheme.ts Makes section detection case-insensitive and normalizes to lowercase for data-section.
Docs/pages/sidebars.ts Updates autogenerated dirName values to new cased folder names.
Docs/pages/docusaurus.config.ts Reorders right-side navbar items (Chronology before Extensions).
Docs/pages/README.md Updates described aggregation output paths to cased variants (but still contains outdated instructions).
.gitignore Updates ignored aggregated docs directories to new cased names (adds Chronology).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Docs/pages/README.md
- **`.github/workflows/pages.yml`** (`name: Pages`) - triggered by `repository_dispatch` events of type `extension-documentation-updated-event`. Extension repos use this to ask the site to rebuild after their own docs change, without going through the full CI build.

Both workflows run the same deploy steps: setup .NET → `./build.sh Pages` (downloads the `Docs/pages/` folder of every extension repo listed in `Pipeline/Build.Pages.cs` into `Docs/pages/docs/extensions/project/<Name>/`) → npm install → docusaurus build → publish to the `gh-pages` branch via [`peaceiris/actions-gh-pages`](https://github.com/peaceiris/actions-gh-pages).
Both workflows run the same deploy steps: setup .NET → `./build.sh Pages` (downloads the `Docs/pages/` folder of every extension repo listed in `Pipeline/Build.Pages.cs` into `Docs/pages/docs/Extensions/project/<Name>/`) → npm install → docusaurus build → publish to the `gh-pages` branch via [`peaceiris/actions-gh-pages`](https://github.com/peaceiris/actions-gh-pages).
Comment thread Docs/pages/README.md
Comment on lines 42 to +46
1. Add an entry to the `projects` dictionary in [`Pipeline/Build.Pages.cs`](../../Pipeline/Build.Pages.cs):
```csharp
{ "Testably.Abstractions.MyExtension", "MyExtension" }
```
The key is the GitHub repository name under the `Testably` org; the value is the directory under `Docs/pages/docs/extensions/project/`.
The key is the GitHub repository name under the `Testably` org; the value is the directory under `Docs/pages/docs/Extensions/project/`.
Comment on lines 87 to 99
},
{
type: 'docSidebar',
sidebarId: 'extensionsSidebar',
sidebarId: 'chronologySidebar',
position: 'right',
label: 'Extensions',
label: 'Chronology',
},
{
type: 'docSidebar',
sidebarId: 'chronologySidebar',
sidebarId: 'extensionsSidebar',
position: 'right',
label: 'Chronology',
label: 'Extensions',
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants