-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build docs for all versions * Update notification banner
- Loading branch information
1 parent
309a39e
commit fa1b020
Showing
6 changed files
with
121 additions
and
34 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
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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
SOURCE = . | ||
OUT = _build | ||
BUILD = python3 -m sphinx | ||
OPTS = | ||
LATEST = 2.0 | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = sphinx-build | ||
SPHINXPROJ = ALOHA Documentation | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
@$(BUILD) -M help "$(SOURCE)" "$(OUT)" $(OPTS) $(O) | ||
@echo " multiversion to build documentation for all branches" | ||
|
||
multiversion: Makefile | ||
sphinx-multiversion $(OPTS) "$(SOURCE)" "$(OUT)/html" | ||
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=$(LATEST)/index.html\" /></head></html>" > $(OUT)/html/index.html | ||
|
||
.PHONY: help Makefile | ||
.PHONY: help Makefile multiversion | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
@$(BUILD) -M $@ "$(SOURCE)" "$(OUT)" $(OPTS) $(O) |
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,26 @@ | ||
{% extends "!page.html" %} | ||
{% block body %} | ||
{% if current_version and latest_version %} | ||
<p> | ||
{% if current_version != latest_version %} | ||
<div class="admonition warning"> | ||
<p class="admonition-title">Warning</p> | ||
<p> | ||
You are viewing the documentation for a version of the Interbotix ALOHA stack that is no longer supported. | ||
Please upgrade to keep up to date with the latest features. | ||
See the <a href="{{ vpathto(latest_version.name) }}">v{{latest_version.name | title }}</a> documentation for more information. | ||
</p> | ||
</div> | ||
{% else %} | ||
<div class="admonition note"> | ||
<p class="admonition-title">Warning</p> | ||
<p> | ||
The Interbotix ALOHA stack that has recently been updated to v2.0. | ||
A full announcement is coming soon. | ||
</p> | ||
</div> | ||
{% endif %} | ||
</p> | ||
{% endif %} | ||
{{ super() }} | ||
{% endblock %}% |
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,20 @@ | ||
{%- 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"> | ||
{%- if versions.branches %} | ||
<dl> | ||
{%- for item in versions.branches %} | ||
<dd><a href="{{ item.url }}">v{{ item.name }}</a></dd> | ||
{%- endfor %} | ||
</dl> | ||
{%- endif %} | ||
</div> | ||
</div> | ||
|
||
{%- endif %} |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
pip | ||
docutils==0.16 | ||
sphinx==4.3.2 | ||
sphinx-rtd-theme | ||
sphinxcontrib-youtube | ||
sphinxcontrib-video | ||
sphinx-copybutton | ||
pip | ||
sphinx-collapse | ||
sphinx-copybutton | ||
sphinx-rtd-theme | ||
sphinx-tabs | ||
sphinx-multiversion | ||
sphinx==4.3.2 | ||
sphinxcontrib-video | ||
sphinxcontrib-youtube |