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.
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.
- Check out the
gh-pagesbranch of the repo (this is an orphaned branch). - Remove the
htmldirectory and its contents. - Commit that change (but don't push yet).
- Switch back to the
masterbranch. - Ensure there is no
htmldirectory; if there is, remove it. - Build the doxygen pages (this will recreate
html). - Switch back to the
gh-pagesbranch. - Add the
htmldirectory (and its contents) to thegh-pagesbranch. - Commit that change.
- Push the
gh-pagesbranch. - Switch back to
master/main. - 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 masterThen, in a browser, go to the BES reference documentation:
https://opendap.github.io/bes/html/
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