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
31 changes: 31 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docs

# Docs build check is defined once, centrally, in PyAutoHeart's reusable
# workflow (Heart owns all health/readiness checking). This thin caller
# builds the Sphinx docs on PRs and fails on warning-count regression
# against docs/sphinx_warning_baseline.txt.

on:
push:
branches: [main]
paths:
- "docs/**"
- "autofit/**"
- "pyproject.toml"
- ".readthedocs.yaml"
- ".github/workflows/docs.yml"
pull_request:
paths:
- "docs/**"
- "autofit/**"
- "pyproject.toml"
- ".readthedocs.yaml"
- ".github/workflows/docs.yml"
workflow_dispatch:

jobs:
docs:
uses: PyAutoLabs/PyAutoHeart/.github/workflows/docs-build.yml@main
with:
package: autofit
secrets: inherit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,4 @@ test_autofit/output/non_linear/dynesty/dynesty_static[nlive_150__bound_multi_vol

test_autofit/tools/files/aggregator/phase/
test_autofit/tools/files/aggregator/phase_completed/
docs/api/_autosummary
31 changes: 17 additions & 14 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"numpydoc",
"sphinx_autodoc_typehints",
# External stuff
"myst_parser",
"sphinx_copybutton",
Expand All @@ -51,6 +52,9 @@
]
templates_path = ["_templates"]

set_type_checking_flag = True # Enable 'expensive' imports for sphinx_autodoc_typehints
add_module_names = False # Remove namespaces from class/method signatures

# -- Options for extlinks ----------------------------------------------------

extlinks = {
Expand Down Expand Up @@ -78,14 +82,19 @@
myst_heading_anchors = 3

autosummary_generate = True
autosummary_imported_members = True
autodoc_member_order = "bysource"
autodoc_default_flags = ["members"]

autoclass_content = "both"
autodoc_default_options = {
"members": True,
"undoc-members": True,
"show-inheritance": True,
}
autodoc_class_signature = "separated"
autoclass_content = "init"

numpydoc_show_class_members = False
numpydoc_show_inherited_class_members = False
numpydoc_class_members_toctree = False
numpydoc_class_members_toctree = True

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand All @@ -109,18 +118,12 @@
# pygments_dark_style = "monokai"
add_function_parentheses = False

html_context = {
"menu_links_name": "Repository",
"doc_path": "docs",
"github_project": "pyautofit",
"github_repo": "pyautofit",
"github_version": "master",
}
language = "en"

html_static_path = ["_static"]
html_css_files = ["pied-piper-admonition.css"]

from sphinx.builders.html import StandaloneHTMLBuilder

StandaloneHTMLBuilder.supported_image_types = ["image/gif", "image/png", "image/jpeg"]

typehints_fully_qualified = False
always_document_param_types = False
typehints_document_rtype = False
27 changes: 0 additions & 27 deletions docs/requirements.txt

This file was deleted.

1 change: 1 addition & 0 deletions docs/sphinx_warning_baseline.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
67
16 changes: 0 additions & 16 deletions readthedocs.yml

This file was deleted.

Loading