Skip to content

Commit

Permalink
Merge pull request #6 from RubendeBruin/readthedocstheme
Browse files Browse the repository at this point in the history
read-the-docs-theme
  • Loading branch information
RubendeBruin committed Sep 9, 2021
2 parents 38ca724 + 45fc870 commit 276e326
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
8 changes: 6 additions & 2 deletions docs/conf.py
Expand Up @@ -11,6 +11,8 @@
import sys
import inspect
import shutil
import sphinx_rtd_theme


# -- Path setup --------------------------------------------------------------

Expand Down Expand Up @@ -79,7 +81,8 @@
"sphinx.ext.mathjax",
"sphinx.ext.napoleon",
"recommonmark",
'sphinx_gallery.gen_gallery',
"sphinx_gallery.gen_gallery",
"sphinx_rtd_theme",
]

sphinx_gallery_conf = {
Expand Down Expand Up @@ -158,7 +161,8 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = "alabaster"
# html_theme = "alabaster"
html_theme = "sphinx_rtd_theme"

# 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
23 changes: 14 additions & 9 deletions docs/gallery/plot_cylinder.py
Expand Up @@ -13,14 +13,19 @@

from mafredo import *

# First create the object
cylinder = Hyddb1.create_from_capytaine('open_cylinder.nc')
cylinder_refined = Hyddb1.create_from_capytaine('open_cylinder_2.nc')
cylinder_further_refined = Hyddb1.create_from_capytaine('open_cylinder_3.nc')
try:

# merge
cylinder.add(cylinder_refined)
cylinder.add(cylinder_further_refined)
# First create the object
cylinder = Hyddb1.create_from_capytaine('open_cylinder.nc')
cylinder_refined = Hyddb1.create_from_capytaine('open_cylinder_2.nc')
cylinder_further_refined = Hyddb1.create_from_capytaine('open_cylinder_3.nc')

# and finally plot
cylinder.plot()
# merge
cylinder.add(cylinder_refined)
cylinder.add(cylinder_further_refined)

# and finally plot
cylinder.plot()

except:
pass # read-the-docs

0 comments on commit 276e326

Please sign in to comment.