Repository navigation
docs: add a Zensical documentation site harness - #2517
Conversation
|
Interesting. I was also considering eventually migrating Do you think it would be worth migrating only this client, or instead updating |
I would prefer to do it step by step. Lets finish this implementation to see how it is going to look like, and then switch the appium's one once we are happy with the result. |
Build the existing docs/ pages into a site with Zensical, run through uv: - mkdocs.yml (nav over the current pages, no renames yet) and docs/index.md - Gradle tasks docsServe, docsBuild, docsCheck (strict) and docsDeploy (mike fork) - docs.yml workflow: strict check on PRs, manual deploy from master - fix repo-relative and dead links that the strict build flags - docs authoring notes in Note-for-developers.md Deploys go to a new docs-site branch so the legacy gh-pages content is left untouched.
- release.yml: a docs job after a real release publishes <major>.<minor> as latest, built from the release tag - docs.yml: reusable (workflow_call); pushes to master that touch the docs publish dev; deploys are serialized and only run from master - release.md: document the docs step and how to retry it
b45c9d7 to
482ef57
Compare
Phase 1 of the documentation plan: a build harness for a versioned docs site, with the existing
docs/pages moved into a nav as-is (no renames, no rewriting yet), and the publishing connected to the release workflow from #2515.What's here
mkdocs.yml: Zensical config (the MkDocs format it reads) with the nav over the current pages, plusdocs/index.md.gradle/docs.gradle:docsServe,docsBuild,docsCheck(strict),docsDeployanddocsSetDefault. Everything runs throughuvfromdocs/requirements.txt, so there is no venv to manage; the tasks are not part ofbuild/check..github/workflows/docs.yml: strict check on PRs touching the docs; deploys only frommaster(serialized, one at a time).../src/...links became absolute GitHub URLs, deadAndroidBy/AndroidFindBylinks, a wrong anchor).docs/Note-for-developers.md, release/docs steps indocs/release.md.Publishing
release.ymlgets adocsjob that runs after a real (non-dry-run) release, i.e. after the tag is pushed and the artifacts are published. It builds the docs from the release tag and publishes<major>.<minor>with thelatestalias, then points the site root atlatest. If only this job fails, "Re-run failed jobs" repeats it.masterthat touchesdocs/**,mkdocs.ymlor the docs tooling publishes thedevversion.docs.yml(workflow_call), so there is one deploy path.Decisions
mike(tag2.2.0+zensical-0.1.0, pinned by commit). Zensical documents it as transitional until native versioning exists.docs-sitebranch. The existinggh-pagesbranch (2018 Javadoc of 6.1.0, currently served at the site root) is left untouched.After merging
devdeploy (or Actions > Docs > Run workflow withdev) creates thedocs-sitebranch.docs-site(Settings > Pages). The old 6.1 Javadoc URLs stop resolving then.latest(or run./gradlew docsDeploy -PdocsVersion=dev -PdocsAlias=latestfollowed by./gradlew docsSetDefault).Testing
./gradlew docsCheckpasses locally (strict build; an added broken link makes it fail), and in CI (check).docsDeployanddocsSetDefaultwere run locally against a scratch branch (no push): the expectedversions.jsonand a root redirect tolatest/.deployjob and thedocsjob inrelease.ymlcannot run before the merge; they have only been validated as YAML.