-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix various documentation issues #2844
base: next
Are you sure you want to change the base?
Conversation
Prefer linking to sections rather than specific files, as these have changed a fair bit
We might want some check that `BoutReal == PetscScalar` but this type alias would just cover up any problem. At best, this wouldn't compile, but it's possible it would just lead to link time problems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
Fixes formatting of example, and ensures file docstring doesn't get attached to the `bout` namespace and so appear in every single file that has the namespace!
I've discovered that the vast majority of the warnings emitted from Sphinx are due to two separate bugs in doxygen and breathe. Things that still need doing:
|
manual/sphinx/conf.py
Outdated
sys.path.append("../../tools/pylib/boutpp") | ||
sys.path.append("../../tools/pylib/boutconfig") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you do this?
That breaks the RTD build:
https://bout-dev--2844.org.readthedocs.build/en/2844/_apidoc/boutpp.html#boutpp-api
https://bout-dev.readthedocs.io/en/latest/_apidoc/boutpp.html#boutpp-api
The tools are directly in boutpp and boutconfig ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was to stop generating the docs for the other directories under pylib, and to be explicit about what's built here. It looks like it built the docs for everything except these two, which is very odd. Not sure what's going on!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the other ones get pip installed?
I haven't checked though!
Anyway, for zoidberg we currently don't build the docs but reference the bout++ docs, so if you want to drop zoidberg here, we should add zoidberg independently.
Also, it would be better to remove the sections, rather then to have them being empty because python cannot find the modules.
include/bout/generic_factory.hxx is licensed under the MIT License based on Modern C++ Design/Loki by A. Alexandrescu
Update + add License for #2844 Fix various documentation issues
This reverts commit e6bc5c5. The commit tried to make boutuitls and boutdata non-importable for the documentation tool. If those modules should be remove from the documentation, this can be achieved by removing them from manual/sphinx/_apidoc/. This should not break the documentation fro boutpp or boutconfig.
Revert "Docs: Don't include boutdata/boututils in docs"
This is a bid to try and get the number of Sphinx warnings down, to ideally start using error on warnings.
The major issue now is things like:
which I think is complaining about overriding the pure virtual function. I don't know whether this is an issue with breathe or doxygen. Breathe is not super well maintained currently, so I might investigate other options.
I've fixed a massive chunk of these warnings by just not processing the
.cxx
files. I think this is probably reasonable, but it might involve going through and moving docstrings to the headers. That will take a little bit of time to do.Making a draft now in case anyone has feedback or ideas on these changes.