Skip to content
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

Use the Jupyter book sphinx theme instead of RTD #227

Merged
merged 10 commits into from
Apr 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
env:
CONDA_REQUIREMENTS: requirements.txt
CONDA_REQUIREMENTS_DEV: requirements-dev.txt
CONDA_REQUIREMENTS_DOC: requirements-doc.txt
PYTHON: 3.8

steps:
Expand Down Expand Up @@ -91,6 +92,10 @@ jobs:
echo "Capturing dependencies from $CONDA_REQUIREMENTS_DEV"
cat $CONDA_REQUIREMENTS_DEV >> $requirements_file
fi
if [ ! -z "$CONDA_REQUIREMENTS_DOC" ]; then
echo "Capturing dependencies from $CONDA_REQUIREMENTS_DOC"
cat $CONDA_REQUIREMENTS_DOC >> $requirements_file
fi
if [ "$DEPENDENCIES" == "optional" ]; then
echo "Capturing optional dependencies from $CONDA_REQUIREMENTS_OPTIONAL"
cat $CONDA_REQUIREMENTS_OPTIONAL >> $requirements_file
Expand Down
7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ Part of the `Fatiando a Terra <https://www.fatiando.org>`__ project
:alt: Digital Object Identifier for the Zenodo archive
:target: https://doi.org/10.5281/zenodo.3628741


.. placeholder-for-doc-index


Disclaimer
----------

Expand All @@ -38,6 +34,9 @@ or send us a message on our
`Slack chatroom <https://contact.fatiando.org>`__.


.. placeholder-for-doc-index


About
-----

Expand Down
4 changes: 3 additions & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ help:
@echo " linkcheck check all external links for integrity"
@echo " doctest run all doctests embedded in the documentation (if enabled)"

clean:
clean-html:
rm -rf $(BUILDDIR)/html/*

clean: clean-html
rm -rf $(BUILDDIR)/doctrees
rm -rf $(BUILDDIR)/linkcheck
rm -rf api/generated
Expand Down
6 changes: 6 additions & 0 deletions doc/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
span.project-version {
color: #999999;
font-size: 0.8em;
font-weight: 600;
margin-left: 5px;
}
Binary file modified doc/_static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/_static/readme-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 69 additions & 43 deletions doc/_static/readme-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 0 additions & 107 deletions doc/_static/style.css

This file was deleted.

34 changes: 0 additions & 34 deletions doc/_templates/breadcrumbs.html

This file was deleted.

24 changes: 1 addition & 23 deletions doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,8 @@

{% block htmltitle %}
{% if title == '' or title == 'Home' %}
<title>{{ docstitle|e }}</title>
<title>{{ docstitle|striptags|e }}</title>
{% else %}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
{% endif %}
{% endblock %}


{% block menu %}
{{ super() }}

{% if menu_links %}
<p class="caption">
<span class="caption-text">
{% if menu_links_name %}
{{ menu_links_name }}
{% else %}
External links
{% endif %}
</span>
</p>
<ul>
{% for text, link in menu_links %}
<li class="toctree-l1"><a href="{{ link }}">{{ text }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}
Loading