Skip to content

Commit

Permalink
Update doc + notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Apr 24, 2024
1 parent b8d1c50 commit bd36494
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 252 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Release History


## 0.2.0 (2023-MM-DD)

- **BREAKING CHANGE**: Switching from `pivot`/`child` to `reference`/`secondary`
Expand All @@ -13,6 +12,7 @@
- CI: Test Pair without secondary and Mosaic and Series with only one product
- CI: Update pre-commit hooks
- CI: Enabling pre-commit.ci and dependabot bots
- DOC: Update doc and notebooks

## 0.1.0 (2023-07-19)

Expand Down
Binary file modified docs/_build/.jupyter_cache/global.db
Binary file not shown.
165 changes: 0 additions & 165 deletions docs/_static/custom.css

This file was deleted.

91 changes: 5 additions & 86 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import eosets

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#
needs_sphinx = "3"
needs_sphinx = "7"

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand Down Expand Up @@ -36,30 +35,13 @@
"substitution",
]

# Autodoc
autodoc_default_options = {
'member-order': 'groupwise',
'show-inheritance': True,
}

# Notebook integration parameters
nb_execution_mode = "cache"
nb_execution_timeout = -1

# Manage new READTHEDOCS output mechanism
cache_path = os.getenv('READTHEDOCS_OUTPUT')
if cache_path is not None:
nb_execution_cache_path = f"{cache_path}/../docs/_build/.jupyter_cache"
# Merge stderr and stdout
nb_merge_streams = True
nb_execution_timeout = 3600

# This is going to generate a banner on top of each notebook
nbsphinx_prolog = ""

# Signature noise
python_use_unqualified_type_names = True
autodoc_typehints_format = "short"

# sphinx-copybutton configurations
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
copybutton_prompt_is_regexp = True
Expand All @@ -71,14 +53,6 @@
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
source_suffix = {
'.rst': 'restructuredtext',
'.ipynb': 'myst-nb',
'.myst': 'myst-nb',
}

# The master toctree document.
master_doc = "index"

Expand All @@ -93,6 +67,7 @@
#
# The short X.Y version.
version = eosets.__version__

# The full version, including alpha/beta/rc tags.
release = version

Expand All @@ -112,7 +87,6 @@
"_build",
"Thumbs.db",
".DS_Store",
"__init__.py",
]

# The name of the Pygments (syntax highlighting) style to use.
Expand Down Expand Up @@ -144,7 +118,6 @@
# 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_css_files = ["custom.css"]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand All @@ -158,68 +131,14 @@
# Output file base name for HTML help builder.
htmlhelp_basename = "eosetsdoc"

# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(
master_doc,
"eosets.tex",
"EOSets Documentation",
"ICube-SERTIT",
"manual",
)
]

# -- Options for manual page output ---------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [(master_doc, "eosets", "EOSets Documentation", [author], 1)]

# -- Options for Texinfo output -------------------------------------------

# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(
master_doc,
"eosets",
"EOSets Documentation",
author,
"eosets",
"One line description of project.",
"Miscellaneous",
)
]

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"https://docs.python.org/3/": None,
"https://docs.python-requests.org/en/master/": None,
"python": ("https://docs.python.org/3/", None),
"python-request": ("https://docs.python-requests.org/en/master/", None),
}

add_function_parentheses = False
add_module_names = False
modindex_common_prefix = ["eosets."]


def _html_page_context(app, pagename, templatename, context, doctree):
Expand Down

0 comments on commit bd36494

Please sign in to comment.