-
Notifications
You must be signed in to change notification settings - Fork 100
Publishing Jazzy Docs to GitHub.io
Travis Prescott edited this page Jun 21, 2022
·
14 revisions
- Ensure that all Jazzy configurations in
jazzy/*.ymlare updated with the current SDK version. - Install the latest version of Jazzy with
gem install jazzyand your pod repo is up-to-date withpod repo update trunk. - Ensure you are at the root directory of the
azure-sdk-for-iosrepo. - Ensure you are on the
mainbranch. Runpod installto ensure the Pods project is up-to-date. For external repos, the script will install your Podfile after is clones the repo. - Clear any cached data with:
rm -rf build/ - Run
python eng/scripts/build_api_docs.py <library name> <library name> ...to generate Jazzy docs for all the libraries that are published. This step also generates a newindex.htmlpage which has a link to ONLY the libraries you just generated. So if you only generated updated docs for one existing library, DO NOT replace theindex.htmlpage in step 9. - Run
git checkout gh-pagesto check out thegh-pagesbranch. - Run
rm -rf Azure*to delete all top-level documentation directories. This ensures that we delete the docs for types that have been removed since the last publish. - Run
mv build/jazzy/* .to move all the new docs and the newindex.htmlpage into the root of the repo. - Run
git add <library name> <library name> ...to stage all the new docs. If you are updating theindex.htmlpage, also add that withgit add index.html. - Run
git commit --amend --no-editto amend the ONE AND ONLY docs commit in thegh-pagesbranch. Do NOT add a new commit. This prevents the repo size from growing significantly due to storing all old revisions of the docs site. - Run
git push upstream gh-pages --forceto push the new docs. The docs site will automatically be rebuilt and should be live within a minute or so.