Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
malihass committed Dec 16, 2024
1 parent 047646a commit 314d89e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/linters/.codespellrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[codespell]
skip = None, .git,OFsolvers,tutorial_cases,experimental_cases,build,__pycache__,data_conditional_mean,Figures,assets
skip = None, .git,OFsolvers,tutorial_cases,experimental_cases,build,_build,__pycache__,data_conditional_mean,Figures,assets
ignore-words = .github/linters/.codespell-ignore-words
65 changes: 34 additions & 31 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,66 +1,69 @@
# Configuration file for the Sphinx documentation builder.
import os
import sys

# Need this so sphinx can find lumache.py. Change is .py files are elsewhere than root.
sys.path.insert(0, os.path.abspath('../..'))
sys.path.insert(0, os.path.abspath('../../bird'))
sys.path.insert(0, os.path.abspath("../.."))
sys.path.insert(0, os.path.abspath("../../bird"))

here = os.path.abspath(os.path.dirname(__file__))

with open(os.path.join(here, '..', '..', "bird", "version.py"), encoding="utf-8") as f:
with open(
os.path.join(here, "..", "..", "bird", "version.py"), encoding="utf-8"
) as f:
version = f.read()
version = version.split("=")[-1].strip().strip('"').strip("'")

# -- Project information

project = "Bio Reactor Design (BiRD)"
copyright = '2024'
author = 'NREL'
copyright = "2024"
author = "NREL"

release = version
version = version

# -- General configuration

extensions = [
'sphinx.ext.duration',
'sphinx.ext.doctest',
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.intersphinx',
# 'sphinxcontrib.bibtex',
# 'autoapi.extension',
# 'sphinxcontrib.apidoc',
"sphinx.ext.duration",
"sphinx.ext.doctest",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.intersphinx",
# 'sphinxcontrib.bibtex',
# 'autoapi.extension',
# 'sphinxcontrib.apidoc',
]
#bibtex_bibfiles = ["references.bib"]
#autoapi_type = 'python'
#autoapi_dirs = ['../../bird']
# bibtex_bibfiles = ["references.bib"]
# autoapi_type = 'python'
# autoapi_dirs = ['../../bird']

#apidoc_module_dir = '../../src'
#apidoc_output_dir = '.'
#apidoc_excluded_paths = ['tests']
#apidoc_separate_modules = True
# apidoc_module_dir = '../../src'
# apidoc_output_dir = '.'
# apidoc_excluded_paths = ['tests']
# apidoc_separate_modules = True

intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
"python": ("https://docs.python.org/3/", None),
"sphinx": ("https://www.sphinx-doc.org/en/master/", None),
}
intersphinx_disabled_domains = ['std']
intersphinx_disabled_domains = ["std"]

templates_path = ['_templates']
templates_path = ["_templates"]

# -- Options for HTML output

html_theme = 'sphinx_rtd_theme'
html_theme = "sphinx_rtd_theme"

# -- Options for EPUB output
epub_show_urls = 'footnote'
epub_show_urls = "footnote"

html_context = {
"display_github": True, # Integrate GitHub
"github_repo": "NREL/BioReactorDesign", # Repo name
"github_version": "main", # Version
"conf_py_path": "docs/source/", # Path in the checkout to the docs root
"display_github": True, # Integrate GitHub
"github_repo": "NREL/BioReactorDesign", # Repo name
"github_version": "main", # Version
"conf_py_path": "docs/source/", # Path in the checkout to the docs root
}

# -- Options for HTML output -------------------------------------------------
Expand All @@ -73,7 +76,7 @@
# 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 = ["_static"]
repository_url = f"https://github.com/NREL/BioReactorDesign"
html_context = {
"menu_links": [
Expand Down

0 comments on commit 314d89e

Please sign in to comment.