Skip to content

Commit

Permalink
Small docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebBell committed Apr 15, 2021
1 parent e09a161 commit dbfa813
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 8 deletions.
43 changes: 37 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,33 @@
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
#'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.intersphinx',
'sphinx.ext.autosummary',
'numpydoc',
'IPython.sphinxext.ipython_console_highlighting',
'IPython.sphinxext.ipython_directive',
'sphinx.ext.intersphinx',
'nbsphinx',
'matplotlib.sphinxext.plot_directive',
'sphinxcontrib.katex',
'sphinx_sitemap',
]
# 'sphinxcontrib.katex',
#

katex_css_path = \
'https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css'
katex_js_path = \
'https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js'
katex_autorender_path = \
'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/contrib/auto-render.min.js'


html_baseurl = 'https://ht.readthedocs.io/'
sitemap_url_scheme = "{link}"
sitemap_filename = 'sitemap2.xml' # readthedocs generates its own



# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand All @@ -74,7 +92,7 @@
project = u'Heat Transfer'

import datetime
copyright = u'2016 - %s, Caleb Bell <Caleb.Andrew.Bell@gmail.com>' %datetime.datetime.now().year
copyright = u'2016 - %s, Caleb Bell and contributors' %datetime.datetime.now().year

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand All @@ -98,7 +116,7 @@

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']
exclude_patterns = ['_build', '**.ipynb_checkpoints']

# The reST default role (used for this markup: `text`) to use for all
# documents.
Expand Down Expand Up @@ -129,7 +147,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
html_theme = 'nature'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down Expand Up @@ -275,6 +293,9 @@
u'Caleb Bell', 'Heat Transfer', 'One line description of project.',
'Miscellaneous'),
]
nbsphinx_requirejs_path = '' # fixes katex not working
plot_rcparams = {'savefig.bbox': 'tight'}
plot_apply_rcparams = True # if context option is used

# Documents to append as an appendix to all manuals.
#texinfo_appendices = []
Expand All @@ -288,10 +309,20 @@
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False

intersphinx_mapping = {'python': ('https://docs.python.org/3', None),
'numpy': ('http://docs.scipy.org/doc/numpy', None),
'scipy': ('http://docs.scipy.org/doc/scipy/reference', None),
'matplotlib': ('http://matplotlib.sourceforge.net', None),
'thermo': ('https://thermo.readthedocs.io/', None), 'chemicals': ('https://chemicals.readthedocs.io/', None),
'fluids': ('https://fluids.readthedocs.io/', None)}
html_theme = "nature"

from sphinx.ext.autodoc import between

try:
import ht.numba
except:
pass
def setup(app):
# Register a sphinx.ext.autodoc.between listener to ignore everything
# between lines that contain the word IGNORE
Expand Down
8 changes: 6 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
Heat transfer component of Chemical Engineering Design Library (ChEDL) ======================================================================
ht: Heat Transfer component of Chemical Engineering Design Library (ChEDL)
==========================================================================

.. meta::
:google-site-verification: wcmDZ88ikLzq1to6urRDGA6R7oIhzya2sN5hOeV1zZw

Introduction
------------

ht is open-source software for engineers and technicians working in the
fields of chemical or mechanical engineering. It includes modules
for various heat transfer functions.
Expand Down Expand Up @@ -97,7 +101,7 @@ Citation

To cite ht in publications use::

Caleb Bell (2016-2021). ht: Heat transfer component of Chemical Engineering Design Library (ChEDL)
Caleb Bell and Contributors (2016-2021). ht: Heat transfer component of Chemical Engineering Design Library (ChEDL)
https://github.com/CalebBell/ht.


Expand Down

0 comments on commit dbfa813

Please sign in to comment.