Skip to content

Commit

Permalink
Added redirect index file for RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklise committed Aug 31, 2023
1 parent 8bc8b6b commit f89c874
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@
# The encoding of source files.
#source_encoding = 'utf-8-sig'

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

# The master toctree document.
master_doc = 'index'

if on_rtd:
master_doc = 'index_redirect'

# General information about the project.
project = u'WNTR'
copyright = u'2023 National Technology & Engineering Solutions of Sandia, LLC (NTESS)'
Expand Down Expand Up @@ -137,7 +141,6 @@
def setup(app):
app.add_css_file( "wntr.css")

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
Expand Down
7 changes: 7 additions & 0 deletions documentation/index_redirect.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. figure:: figures/logo.jpg
:scale: 10 %
:alt: Logo

The Water Network Tool for Resilience (WNTR) documentation
has moved to https://usepa.github.io/WNTR/.

0 comments on commit f89c874

Please sign in to comment.