Skip to content
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
91 changes: 41 additions & 50 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,11 @@

sys.path.insert(0, os.path.abspath('../'))

#if "TRAVIS" in os.environ:
package_path = os.path.abspath('../..')
os.environ['PYTHONPATH'] = ':'.join((package_path,
os.environ.get('PYTHONPATH', '')))


# -- Project information -----------------------------------------------------

project = 'ScopeSim_templates'
copyright = '2021, A* Vienna'
copyright = '2024, A* Vienna'
author = 'A* Vienna'

# The short X.Y version
Expand All @@ -48,15 +43,6 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
#extensions = [
# 'sphinx.ext.autodoc',
# 'sphinx.ext.doctest',
# 'sphinx.ext.intersphinx',
# 'sphinx.ext.todo',
# 'sphinx.ext.coverage',
# 'sphinx.ext.mathjax',
# 'sphinx.ext.viewcode',
#]


extensions = [
Expand All @@ -66,11 +52,10 @@
'sphinx.ext.inheritance_diagram',
'sphinx.ext.mathjax',
'sphinx.ext.extlinks',
# 'sphinx.ext.linkcode',
# 'jupyter_sphinx',
'sphinx.ext.doctest',
'sphinx_copybutton',
'myst_nb',
'numpydoc',
'nbsphinx',
]

# -- Options for intersphinx extension ---------------------------------------
Expand Down Expand Up @@ -118,10 +103,19 @@

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
source_encoding = 'utf-8-sig'
source_suffix = {
".rst": "restructuredtext",
".ipynb": "myst-nb",
".myst": "myst-nb",
".md": "myst-nb",
}
source_encoding = 'utf-8'

# MyST NB stuff
nb_execution_timeout = 3600 # [s]
nb_execution_mode = "auto"
# nb_execution_excludepatterns = []


# The master toctree document.
master_doc = 'index'
Expand All @@ -147,41 +141,38 @@

pygments_style = 'default' #'sphinx'

# -- Options for HTML output ---------------------------------------------------

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]



# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
# html_theme = 'alabaster'
# -- Options for HTML output ----------------------------------------------

# 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
# documentation.
#
# html_theme_options = {}
html_theme = "sphinx_book_theme"
html_theme_options = {
"repository_url": "https://github.com/AstarVienna/ScopeSim_Templates",
"use_repository_button": True,
"use_download_button": True,
"home_page_in_toc": True,
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ['docs/_static']
# html_logo = 'docs/_static/logos/T_favicon.png'
html_title = "ScopeSim Templates"

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# The default sidebars (for documents that don't match any pattern) are
# defined by theme itself. Builtin themes are using these templates by
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
# 'searchbox.html']``.
#
# html_sidebars = {}

# Add local templates path to modify autosummary templates
# templates_path = ['_templates']

# Static files to copy after template files
html_static_path = ['_static']
html_sidebars = {
"**": [
"navbar-logo.html",
"search-field.html",
"sbt-sidebar-nav.html",
]
}
html_sourcelink_suffix = ""

# -- Options for HTMLHelp output ---------------------------------------------

Expand Down Expand Up @@ -235,7 +226,7 @@
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'ScopeSim_templates', 'ScopeSim Templates Documentation',
author, 'ScopeSim_templates',
author, 'ScopeSim_templates',
'Helper functions for creating ScopeSim Source objects.',
'Miscellaneous'),
]
Expand Down
Empty file removed docs/contributions.rst
Empty file.
6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.calibration.empty_sky.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.calibration.flat_field.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.calibration.lamp.rst

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.extragalactic.galaxy.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.extragalactic.galaxy3d.rst

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.misc.point_source.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.misc.source_from_array.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.misc.source_from_cube.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.misc.source_from_file.rst

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.misc.uniform_source.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.stellar.cluster.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.stellar.star.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.stellar.star_field.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.stellar.star_grid.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/generated/scopesim_templates.stellar.stars.rst

This file was deleted.

Loading