Skip to content

Commit

Permalink
Merge pull request #198 from radinamatic/404-for-0.11
Browse files Browse the repository at this point in the history
Add 404 page to 0.11 branch
  • Loading branch information
radinamatic committed Aug 27, 2020
2 parents 5f5bc20 + 6a7a049 commit 8434911
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
17 changes: 17 additions & 0 deletions docs/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
:orphan:

Page not found
==============

It seems you are searching for a topic that has been moved elsewhere in our documentation. Please try the following to find what you were looking for:

* Browse the table of content in the sidebar
* Use the search box


*Use the |menu| button to open the table of contents if you are on a mobile device.*

.. tip:: Make sure you are browsing the user guide for the `latest release of Kolibri <https://kolibri.readthedocs.io/en/latest/>`_.


We apologize for the inconvenience!
5 changes: 5 additions & 0 deletions docs/_static/theme_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,8 @@ img {
.rst-content div.highlight {
background: #feffe9 !important;
}

/* push down the RTD banner so it's not confused with menu */
.keep-us-sustainable {
margin-top: 20em !important;
}
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# FOR! DO NOT LET THEM BE TARGETTED AT MORE THAN ONE MINOR SERIES!
# I.E.: 0.1.x -- important to add 'dev' suffix for docs targetting development
# series.
DISPLAY_VERSION = "0.11.0.dev"
DISPLAY_VERSION = "0.11"


# If extensions (or modules to document with autodoc) are in another directory,
Expand All @@ -24,6 +24,11 @@
parent = os.path.dirname(cwd)
sys.path.insert(0, os.path.abspath(parent))

extensions = [
'sphinx_rtd_theme',
'notfound.extension',
]

builddir = os.path.join(cwd, '_build')

# -- General configuration -----------------------------------------------------
Expand Down Expand Up @@ -186,6 +191,7 @@ def setup(app):
.. |fullscreen| replace:: :raw-html:`<span class="material-icons" aria-hidden="true">fullscreen</span><span class="visuallyhidden">Enter fullscreen</span>`
.. |previous-page| replace:: :raw-html:`<span class="material-icons outline" aria-hidden="true">keyboard_arrow_left</span><span class="visuallyhidden">Previous page</span>`
.. |next-page| replace:: :raw-html:`<span class="material-icons outline" aria-hidden="true">keyboard_arrow_right</span><span class="visuallyhidden">Next page</span>`
.. |menu| replace:: :raw-html:`<span class="material-icons" aria-hidden="true">menu</span><span class="visuallyhidden">Menu</span>`
.. |on-device| image:: img/on-device.png
:alt: On your device
.. |green-check| image:: img/on-device.png
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ sphinx<2
sphinx_rtd_theme
sphinx-intl
sphinx-autobuild
sphinx-notfound-page

0 comments on commit 8434911

Please sign in to comment.