How to Publish the Docs of a New Minor Release¶
A new minor release, such as 0.2.0, publishes its docs as /0.2/ and moves /latest/ to them. It also starts a new docs branch and freezes the previous one. The examples release 0.2.0 after 0.1.
Prerequisites¶
- Publishing is set up: How to set up documentation publishing.
- The release is ready on
main, withPKG_VERSION:=0.2.0inopenwrt/wgpathd/Makefile. - Every pinned docs link in the shipped files points to
/0.2/, includingURL:=inopenwrt/wgpathd/Makefile. If the project keeps aCHANGELOG.md, the release's entries are under## [0.2.0].make lintpasses.
1. Tag the release¶
git tag v0.2.0
git push origin v0.2.0
The docs workflow publishes /0.2/, titled 0.2.0, and moves latest to it. Check that its publish job succeeded and that /latest/ shows 0.2.0 in the version selector.
2. Create the docs branch¶
git branch docs/0.2 v0.2.0
git push origin docs/0.2
3. Freeze the previous branch¶
Stop pushing to docs/0.1. /0.1/ stays online as it was last published. From now on, doc fixes go to docs/0.2: see How to fix the docs of the released version.
What each push publishes, and when latest moves, is in Documentation publishing. Why only the newest minor gets fixes: About versioned documentation.