Repository navigation
Conversation
d0e8c3c to
5c780b2
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
b3a34dc to
53275aa
Compare
|
@jchong9 could you add some screenshots to give a general feel for the changes introduced by this PR? |
|
@villebro Will do! I actually plan to reduce the scope of this PR to purely improving the build and guardrails for the docs workflow, and move the version-aware search into a separate PR, so it might be better to add screenshots there. The motivation for leaving it out is that the current implementation only searches shared content plus the latest version, so any text specific to a version thats not latest (when the user has selected that version) won't show up and imo defeats the purpose of the search. To fix this, I would need to inject JS and swap the search indexes, which seems like too much to cram into one PR. |
4575ad5 to
9c83d41
Compare
younsl
left a comment
There was a problem hiding this comment.
Thanks for following up on the feedback from #489. The build and assemble split, the retry loop that reuses saved artifacts, the site_url check after the rewrite, the root sitemap index, the nav consistency test, and the scoped push credentials all look right to me.
I found nothing blocking. This is a read-through review only: the Docs, CI, and Test workflows on this PR are still waiting for maintainer approval, so nothing has run against the head commit yet, and I did not build it locally this time. I would like to see a green Docs run (including the new dry-run assemble step) before approving.
What I checked by reading:
- The live versions.json on gh-pages (0.4 with latest, plus main) passes the stricter load_manifest rules, so the first deploy after merge will not be rejected.
- The root rsync removes sitemap-root.xml on every root build and finalize creates it again from the fresh urlset, so the index stays consistent. There is no sitemap.xml.gz on gh-pages that could go stale.
- search.json exists at the root and in each version today, so the new existence check matches what Zensical writes.
- navigation.instant is not enabled and the theme bundle exposes document$, so removing the MutationObserver is safe.
- The theme reset already clears the default button background, so the button swap should not change the look.
One thing worth fixing in this PR (inline): the version toggle sets aria-expanded and a md-version--active class, but the theme has no style for that class, so the reported state and the visible state can disagree.
The other inline comments are small and fine as follow-ups.
Two notes on the description:
- It still lists search indexes under Details. Since version-aware search moved to a separate PR, the only search change here is the search.json existence check. Could you update the text?
- The path filter for docs/stylesheets/version-banner.css was removed, which is fine because docs/** already covers it.
bf964c9 to
73dfa41
Compare
|
Thanks for the review @younsl. I addressed your non-blocking feedback in 19c1fa0, 08869a1, c77ab87, and bf964c9. One thing to note is that I set site_url in zensical-versioned.toml to /latest/, so Zensical generates the canonical URLs directly and the sed/ The PR description has been updated to reflect these changes as well. |
b521475 to
61e8b4a
Compare
…ith relative paths With absolute paths, tabs in the navigation are not highlighted despite being the active page. Adjusting unversioned pages to use relative paths allows Zensical to recognize files again
ci(docs): validate and assemble documentation builds fix paths
fix ordering fix(docs): harden versioned publishing and link preparation fix(scripts): include configs in local build script fix(test): add missing site path in test fix: remove versioned search related code fix: remove versioned search related code fix: remove versioned search related code
fix(docs): preserve selector links when switching versions fix(docs): add detailed error msg instead of using a shared function fix: remove versioned search related code
readd original paths fix: mask auth header
simplify code
fix local build script
61e8b4a to
a4282ae
Compare
Summary
This PR adds multi-version documentation publishing and improves version navigation. It builds the shared documentation tree and versioned documentation slices with consistent navigation, validates version manifests and prepared links, and assembles the generated site into
gh-pages. Versioned pages use/latest/canonical URLs, and the sitemap index lists the shared and latest sitemaps. Deploy retries reuse built artifacts whengh-pagesmoves, while CI checks release overwrite safety before the deploy build, supports manual dry runs from branches, and scopes push credentials.Search behavior is unchanged in this PR; the build only checks that each documentation slice produced
search.json.Related issue: #436
Previous PR: #489
Details
site_urlinzensical-versioned.tomlto/latest/, so Zensical emits latest canonical URLs without per-target config rewriting while artifacts still publish to version-specific directories; publish the latest version sitemap alongside the shared sitemap.gh-pageschanges.search.json; version-aware search is handled separately.zensical-unversioned.tomlto use relative paths for unversioned pages so Zensical can recognize the active page for navigation.Visual changes from the config update
BEFORE ON THE HOME PAGE:

AFTER:

Testing
make docs-cilocally.