-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from pyt-team/frantzen/docs-github-link
Tweaks to documentation
- Loading branch information
Showing
6 changed files
with
64 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Our Code of Conduct is at | ||
https://pyt-team.github.io/toponetx/project/code_of_conduct.html. | ||
|
||
The code of conduct lives in the TopoNetX repository under `docs/project/code_of_conduct.rst`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,79 @@ | ||
"""Sphinx configuration file.""" | ||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = "TopoEmbedX" | ||
copyright = "2022-2023, PyT-Team, Inc." | ||
author = "PyT-Team Authors" | ||
language = "en" | ||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
extensions = [ | ||
"nbsphinx", | ||
"nbsphinx_link", | ||
"numpydoc", | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.coverage", | ||
"sphinx.ext.doctest", | ||
"sphinx.ext.githubpages", | ||
"sphinx.ext.intersphinx", | ||
"sphinx.ext.mathjax", | ||
"sphinx.ext.viewcode", | ||
"sphinx_copybutton", | ||
"sphinx_gallery.load_style", | ||
] | ||
|
||
templates_path = ["_templates"] | ||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"] | ||
|
||
intersphinx_mapping = { | ||
"networkx": ("https://networkx.org/documentation/stable/", None), | ||
"numpy": ("https://numpy.org/doc/stable/", None), | ||
"python": ("https://docs.python.org/3/", None), | ||
"scipy": ("https://docs.scipy.org/doc/scipy/", None), | ||
"toponetx": ("https://pyt-team.github.io/toponetx/", None), | ||
} | ||
|
||
# Configure nbsphinx for notebook execution | ||
nbsphinx_execute_arguments = [ | ||
"--InlineBackend.figure_formats={'svg', 'pdf'}", | ||
"--InlineBackend.rc={'figure.dpi': 96}", | ||
] | ||
|
||
nbsphinx_execute = "never" | ||
|
||
# To get a prompt similar to the Classic Notebook, use | ||
nbsphinx_input_prompt = " In [%s]:" | ||
nbsphinx_output_prompt = " Out [%s]:" | ||
|
||
nbsphinx_allow_errors = True | ||
|
||
templates_path = ["_templates"] | ||
|
||
source_suffix = [".rst"] | ||
|
||
master_doc = "index" | ||
|
||
language = "en" | ||
|
||
nbsphinx_prolog = r""" | ||
{% set docname = env.doc2path(env.docname, base=None) %} | ||
.. raw:: latex | ||
\nbsphinxstartnotebook{\scriptsize\noindent\strut | ||
\textcolor{gray}{The following section was generated from | ||
\sphinxcode{\sphinxupquote{\strut {{ docname | escape_latex }}}} \dotfill}} | ||
""" | ||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"] | ||
|
||
pygments_style = None | ||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
html_theme = "pydata_sphinx_theme" | ||
html_baseurl = "pyt-team.github.io" | ||
htmlhelp_basename = "pyt-teamdoc" | ||
html_last_updated_fmt = "%c" | ||
html_baseurl = "https://pyt-team.github.io/topoembedx/" | ||
|
||
latex_elements = {} | ||
html_context = { | ||
"github_user": "pyt-team", | ||
"github_repo": "TopoEmbedX", | ||
"github_version": "main", | ||
"doc_path": "docs", | ||
} | ||
|
||
html_theme_options = { | ||
"icon_links": [ | ||
{ | ||
"name": "GitHub", | ||
"url": "https://github.com/pyt-team/TopoEmbedX", | ||
"icon": "fa-brands fa-github", | ||
"type": "fontawesome", | ||
} | ||
], | ||
"use_edit_page_button": True, | ||
} | ||
|
||
latex_documents = [ | ||
( | ||
master_doc, | ||
"topoembedx.tex", | ||
"TopoEmbedX Documentation", | ||
"PyT-Team", | ||
"manual", | ||
), | ||
] | ||
html_favicon = "_static/favicon-48.png" | ||
|
||
man_pages = [(master_doc, "topoembedx", "TopoEmbedX Documentation", [author], 1)] | ||
|
||
texinfo_documents = [ | ||
( | ||
master_doc, | ||
"topoembedx", | ||
"TopoEmbedX Documentation", | ||
author, | ||
"topoembedx", | ||
"One line description of project.", | ||
"Miscellaneous", | ||
), | ||
] | ||
html_show_sourcelink = False | ||
|
||
epub_title = project | ||
epub_exclude_files = ["search.html"] | ||
# Exclude copy button from appearing over notebook cell numbers by using :not() | ||
# The default copybutton selector is `div.highlight pre` | ||
# https://github.com/executablebooks/sphinx-copybutton/blob/master/sphinx_copybutton/__init__.py#L82 | ||
copybutton_selector = ":not(.prompt) > div.highlight pre" | ||
|
||
# configure intersphinx | ||
intersphinx_mapping = { | ||
"networkx": ("https://networkx.org/documentation/stable/", None), | ||
"numpy": ("https://numpy.org/doc/stable/", None), | ||
"python": ("https://docs.python.org/3/", None), | ||
"scipy": ("https://docs.scipy.org/doc/scipy/", None), | ||
"toponetx": ("https://pyt-team.github.io/toponetx/", None), | ||
} | ||
# -- Options for EPUB output ------------------------------------------------- | ||
|
||
# configure numpydoc | ||
numpydoc_validation_checks = {"all", "GL01", "ES01", "SA01", "EX01"} | ||
numpydoc_show_class_members = False | ||
numpydoc_class_members_toctree = False | ||
epub_exclude_files = ["search.html"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters