Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
馃帀 New feature
Partially resolves #412
Summary
Uses sphinx to build the documentation contained in this repository. While the goal is to migrate all of gazebosim.org to a static site, for now, we'll have the landing page, the "features" and "showcase" pages be served by https://github.com/gazebo-web/gazebosim-web-frontend as is currently and the
/docs
endpoint be directed to the output of sphinx. This is similar to how the/api
endpoint is directed to the output of doxygen.Since sphinx has its own of organizing files and structuring the table of contents, a custom script (
build_multiversion.py
) is needed to take our existing metadata files (index.yaml
) and make the necessary changes to the markdown files. For this, it is necessary to copy the files to a temporary directory. The script also handles differences in URL endpoints and markdown files, which must match in Sphinx. Lastly, for version switching and searching to work properly, each version of Gazebo is built independently by thebuild_multiversion.py
script.Inspired by https://github.com/ros2/ros2_documentation
Needs pydata/pydata-sphinx-theme#1795 for the version switcher to work properly.
Screenshots
Light theme:
Dark theme:
Test it
Follow updated README to build the docs
Preview
cc @nuclearsandwich
TODO:
latest
andall
links/libs
via sphinx.ionic
so it shows up as (dev)Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.