forked from StoglRobotics/ros_team_workspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add multiversion documentation for rolling/galactic and foxy (StoglRo…
- Loading branch information
Showing
17 changed files
with
416 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build and Check Sphinx Page | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- foxy | ||
|
||
jobs: | ||
build-multiversion: | ||
name: Check Multiversion | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
cache: 'pip' | ||
- name: Install Python dependencies | ||
run: | | ||
cd docs/ | ||
python -m pip install --upgrade pip | ||
pip install --upgrade --requirement requirements.txt | ||
- name: Build multiversion | ||
run: | | ||
cd docs/ | ||
make multiversion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build Check and Deploy Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- foxy | ||
|
||
jobs: | ||
deploy-multiversion: | ||
name: Deploy Multiversion | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
cache: 'pip' | ||
- name: Install Python dependencies | ||
run: | | ||
cd docs/ | ||
python -m pip install --upgrade pip | ||
pip install --upgrade --requirement requirements.txt | ||
- name: Build multiversion | ||
run: | | ||
cd docs/ | ||
make multiversion | ||
- name: Deploy Pages | ||
if: ${{ success() }} | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/_build/html |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Ros_Team_workspace Documentation | ||
|
||
We use [sphinx](https://www.sphinx-doc.org/en/master/) for our docs. For the building of the multiversion docs [sphinx-multiversion](https://holzhaus.github.io/sphinx-multiversion/master/index.html#) is used. The docs itself are written in [restructuredtext format](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html) (*.rst). | ||
|
||
## Installation and building | ||
### Installation | ||
If you want to edit the docs you first have to install all the required dependencies. From within the docs directory run: | ||
```bash | ||
python -m pip install -r requirements.txt | ||
``` | ||
### Building | ||
After the requirements have been installed, the docs can then be build if you run: | ||
```bash | ||
make html | ||
``` | ||
from within the `docs/` folder. You can then view the docs by opening the `docs/_build/html/index.html` in your browser. Changes you made should immediately be visible. | ||
|
||
### Building multiversion | ||
If you want to build multiversion docs you have to run: | ||
```bash | ||
make multiversion | ||
``` | ||
from within the `docs/` folder. You can then view the docs by opening the `docs/_build/html/index.html`. | ||
| :exclamation: Note :exclamation: | | ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
|However, be aware that changes to the multiversion docs only appear after committing them. If you want to see them immediate, you have to build using `make html`.| | ||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{%- if current_version %} | ||
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions"> | ||
<span class="rst-current-version" data-toggle="rst-current-version"> | ||
<span class="fa fa-book"> Other Versions</span> | ||
v: {{ current_version.name }} | ||
<span class="fa fa-caret-down"></span> | ||
</span> | ||
<div class="rst-other-versions"> | ||
<dl> | ||
<dt>ROS Team Workspace - Galactic and Rolling</dt> | ||
{%- for item in versions.in_development|sort(reverse=True) %} | ||
<dd><a href="{{ item.url }}">{{ item.name|title }} (latest)</a></dd> | ||
{%- endfor %} | ||
</dl> | ||
<dl> | ||
<dt>ROS Team Workspace - Foxy</dt> | ||
{%- for item in versions.releases|sort(reverse=True) %} | ||
{%- if item.name == latest_version.name %} | ||
<dd><a href="{{ item.url }}">{{ item.name|title }} (recommended)</a></dd> | ||
{%- elif item.name in eol_versions %} | ||
<dd><a href="{{ item.url }}">{{ item.name|title }} (EOL)</a></dd> | ||
{% else %} | ||
<dd><a href="{{ item.url }}">{{ item.name|title }}</a></dd> | ||
{%- endif %} | ||
{%- endfor %} | ||
</dl> | ||
</div> | ||
</div> | ||
{%- endif %} |
Oops, something went wrong.