Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 1.89 KB

File metadata and controls

68 lines (49 loc) · 1.89 KB

How to Build the Online Documentation for the BES

The online documentation uses doxygen to build the reference documentation for the bes and then pushes those HTML pages up to a GitHub Pages website.

The 'by-hand' process is simple, but involves some 'tricks' that make the process hard to implement in a robust way.

TL;DR

You can build/update the local HTML documentation using make docs.

Coming Soon: When #1312 is complete, a new gh-docs target will update the online documentation (if you have write access to the repository).

Note

This has nothing to do with the developer documentation in the bes/docs directory.

Steps to build the docs by hand

  1. Check out the gh-pages branch of the repo (this is an orphaned branch).
  2. Remove the html directory and its contents.
  3. Commit that change (but don't push yet).
  4. Switch back to the master branch.
  5. Ensure there is no html directory; if there is, remove it.
  6. Build the doxygen pages (this will recreate html).
  7. Switch back to the gh-pages branch.
  8. Add the html directory (and its contents) to the gh-pages branch.
  9. Commit that change.
  10. Push the gh-pages branch.
  11. Switch back to master/main.
  12. Check that the documentation built and uploaded to the GitHub Pages site.

Here's the command sequence, assuming you are on the branch 'master':

git checkout gh-pages
git rm -rf html
git commit -m "Removed old docs"

git checkout master
doxygen doxy.conf
git checkout gh-pages

git add --force html
git commit -m "New docs"
git push

git checkout master

Then, in a browser, go to the BES reference documentation:

https://opendap.github.io/bes/html/

Appendix

Create the Orphaned gh-pages Branch

Assuming you are on master/main:

git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "Initializing gh-pages branch"
git push origin gh-pages

git checkout master