Skip to content

Commit 66c6dba

Browse files
authored
Merge pull request #229 from lsst-sqre/tickets/DM-45803
DM-45803: Remove pipelines.lsst.io-related extensions and configuration
2 parents 8d2bb24 + 542b017 commit 66c6dba

File tree

95 files changed

+644
-45683
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+644
-45683
lines changed

.github/workflows/ci-cron.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
name: Periodic CI
66

7+
env:
8+
PYTHON_VERSION: "3.12"
9+
710
"on":
811
schedule:
912
- cron: "0 12 * * 1"
@@ -19,6 +22,7 @@ jobs:
1922
- "3.12"
2023
sphinx-version:
2124
- "7"
25+
- "8"
2226
- "dev"
2327

2428
steps:
@@ -64,7 +68,7 @@ jobs:
6468
- name: Build docs in tox
6569
uses: lsst-sqre/run-tox@v1
6670
with:
67-
python-version: "3.12"
71+
python-version: ${{ env.PYTHON_VERSION }}
6872
tox-envs: "docs,docs-lint"
6973
use-cache: false
7074

@@ -94,5 +98,5 @@ jobs:
9498
- name: Build and publish
9599
uses: lsst-sqre/build-and-publish-to-pypi@v2
96100
with:
97-
python-version: "3.12"
101+
python-version: ${{ env.PYTHON_VERSION }}
98102
upload: false

.github/workflows/ci.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: CI
22

3+
env:
4+
PYTHON_VERSION: '3.12' # Default Python version
5+
36
'on':
47
push:
58
branches-ignore:
@@ -39,6 +42,7 @@ jobs:
3942
- '3.12'
4043
sphinx-version:
4144
- '7'
45+
- '8'
4246

4347
steps:
4448
- uses: actions/checkout@v4
@@ -76,7 +80,7 @@ jobs:
7680
runs-on: ubuntu-latest
7781

7882
steps:
79-
- uses: actions/checkout@v3
83+
- uses: actions/checkout@v4
8084
with:
8185
fetch-depth: 0 # full history for setuptools_scm
8286

@@ -86,7 +90,7 @@ jobs:
8690
- name: Run tox
8791
uses: lsst-sqre/run-tox@v1
8892
with:
89-
python-version: '3.12'
93+
python-version: ${{ env.PYTHON_VERSION }}
9094
tox-envs: 'docs,docs-lint'
9195

9296
# Only attempt documentation uploads for tagged releases and pull
@@ -115,7 +119,7 @@ jobs:
115119
- name: Build and publish
116120
uses: lsst-sqre/build-and-publish-to-pypi@v2
117121
with:
118-
python-version: "3.12"
122+
python-version: ${{ env.PYTHON_VERSION }}
119123
upload: "false"
120124

121125
pypi-publish:
@@ -147,4 +151,4 @@ jobs:
147151
- name: Build and publish
148152
uses: lsst-sqre/build-and-publish-to-pypi@v2
149153
with:
150-
python-version: '3.12'
154+
python-version: ${{ env.PYTHON_VERSION }}

.github/workflows/dependencies.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,19 @@ repos:
1414
- id: rst-linter
1515
files: (README\.rst)|(CHANGELOG\.rst)
1616

17-
- repo: https://github.com/PyCQA/isort/
18-
rev: 5.13.2
17+
- repo: https://github.com/astral-sh/ruff-pre-commit
18+
rev: v0.6.1
1919
hooks:
20-
- id: isort
21-
additional_dependencies:
22-
- toml
20+
- id: ruff
21+
args: [--fix, --exit-non-zero-on-fix]
22+
- id: ruff-format
2323

24-
- repo: https://github.com/psf/black
25-
rev: 24.4.2
26-
hooks:
27-
- id: black
28-
29-
- repo: https://github.com/asottile/blacken-docs
30-
rev: 1.16.0
24+
- repo: https://github.com/adamchainz/blacken-docs
25+
rev: 1.18.0
3126
hooks:
3227
- id: blacken-docs
33-
additional_dependencies: [black==22.12.0]
34-
args: [-l, '79', -t, py38]
35-
36-
- repo: https://github.com/pycqa/flake8
37-
rev: 7.0.0
38-
hooks:
39-
- id: flake8
28+
additional_dependencies: [black==24.4.2]
29+
args: [-l, '79', -t, py312]
4030

4131
- repo: https://github.com/pre-commit/mirrors-prettier
4232
rev: v4.0.0-alpha.8

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"[python]": {
3-
"editor.defaultFormatter": "ms-python.black-formatter"
4-
},
5-
"python.formatting.provider": "none"
3+
}
64
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
### Backwards-incompatible changes
2+
3+
- All Science Pipelines-related tooling and Sphinx extensions have been removed from Documenteer, and can now be found in a new Science Pipelines package called `sphinxutils` (https://github.com/lsst-dm/sphinxutils). Specific removals include:
4+
5+
- `documenteer.stackdocs`
6+
- Configurations `documenteer.conf.pipelines` and `documenteer.conf.pipelinespkg`
7+
- CLI commands `stack-docs` and `package-docs`
8+
- Sphinx extensions:
9+
- `documenteer.ext.lssttasks`
10+
- `documenteer.ext.packagetoctree`
11+
- `documenteer.ext.autocppapi`
12+
- `documenteer.ext.autodocreset`
13+
14+
### New features
15+
16+
- User guide configuration improvements:
17+
18+
- New custom automodapi templates for Pydantic BaseModels and exceptions. The exception template ensures that inherited members of exceptions are documented. The Pydantic BaseModel template ensures that inherited members from the `BaseModel` class itself are _not_ documented. These templates were originally developed as part of [Gafaelfawr](https://github.com/lsst-sqre/gafaelfawr). Now users of the user guide configuration benefit from these templates without any additional configuration.
19+
20+
- The `[guide]` installation extra and `documenteer.conf.guide` configuration now include `autodoc_pydantic` for improved documentation of Pydantic models in Python API references.
21+
22+
- The `documenteer.conf.guide` configuration now ignores common Sphinx warnings that are common when including references to projects that don't use Sphinx/Intersphinx for this documentation, including Pydantic and FastAPI.
23+
24+
- The entire `documenteer` code base is now type annotated.
25+
26+
### Bug fixes
27+
28+
-
29+
30+
### Other changes
31+
32+
- The code base is now linted and formatted with ruff.
33+
- Start testing against Sphinx 8.

docs/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Makefile for Sphinx documentation
22

33
# You can set these variables from the command line.
4-
# SPHINXOPTS = -n -W
5-
SPHINXOPTS = -n
4+
SPHINXOPTS = -n -W
65
SPHINXBUILD = sphinx-build
76
BUILDDIR = _build
87

docs/_rst_epilog.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
.. _TOML: https://toml.io/en/
2828
.. _`SQR-006`: https://sqr-006.lsst.io
2929
.. _`lsstDoxygen`: https://github.com/lsst/lsstDoxygen
30-
.. _`package-docs`: https://documenteer.lsst.io/pipelines/package-docs-cli.html
3130
.. _`pex_config`: https://github.com/lsst/pex_config
3231
.. _`pipe_base`: https://github.com/lsst/pipe_base
3332
.. _`pipe_supertask`: https://github.com/lsst/pipe_supertask
@@ -70,10 +69,6 @@
7069
7170
.. |documenteer.toml| replace:: :doc:`documenteer.toml </guides/toml-reference>`
7271
.. |documenteer.conf.guide| replace:: :doc:`documenteer.conf.guide </guides/configuration-preset>`
73-
.. |package-docs| replace:: :doc:`package-docs </guides/pipelines/package-docs-cli>`
74-
.. |stack-docs| replace:: :doc:`stack-docs </guides/pipelines/stack-docs-cli>`
75-
.. |stack-docs-build| replace:: :doc:`stack-docs build </guides/pipelines/stack-docs-cli>`
76-
.. |stack-docs-clean| replace:: :doc:`stack-docs clean </guides/pipelines/stack-docs-cli>`
7772

7873
.. links to sphinx directives
7974

docs/dev/api/documenteer.ext.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
documenteer.ext
33
###############
44

5-
.. automodapi:: documenteer.ext.autocppapi
6-
7-
.. automodapi:: documenteer.ext.autodocreset
8-
95
.. automodapi:: documenteer.ext.openapi
106

117
.. automodapi:: documenteer.ext.bibtex
@@ -20,6 +16,3 @@ documenteer.ext
2016

2117
.. automodapi:: documenteer.ext.mockcoderefs
2218
:no-inheritance-diagram:
23-
24-
.. automodapi:: documenteer.ext.packagetoctree
25-
:no-inheritance-diagram:

docs/dev/api/documenteer.sphinxrunner.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/dev/api/documenteer.stackdocs.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/dev/api/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@ Python API
88
documenteer.conf
99
documenteer.ext
1010
documenteer.requestsutils
11-
documenteer.sphinxrunner
12-
documenteer.stackdocs

docs/documenteer.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ package = "documenteer"
1111
extensions = [
1212
"sphinx_click.ext",
1313
"sphinxcontrib.autoprogram",
14+
"sphinxcontrib.autodoc_pydantic"
1415
]
1516
disable_primary_sidebars = ["index", "changelog"]
1617
rst_epilog_file = "_rst_epilog.rst"
@@ -25,7 +26,8 @@ nitpick_ignore_regex = [
2526
]
2627
python_api_dir = "dev/api/contents"
2728
exclude = [
28-
"technotes/_templates/*"
29+
"technotes/_templates/*",
30+
"_templates/**"
2931
]
3032

3133
[sphinx.theme]
@@ -46,10 +48,10 @@ ignore = [
4648
]
4749

4850
[sphinx.redirects]
49-
"pipelines/build-overview.rst" = "guides/pipelines/build-overview.rst"
50-
"pipelines/configuration.rst" = "guides/pipelines/configuration.rst"
51-
"pipelines/cpp-api-linking.rst" = "guides/pipelines/cpp-api-linking.rst"
52-
"pipelines/index.rst" = "guides/pipelines/index.rst"
53-
"pipelines/install.rst" = "guides/pipelines/install.rst"
54-
"pipelines/package-docs-cli.rst" = "guides/pipelines/package-docs-cli.rst"
55-
"pipelines/stack-docs-cli.rst" = "guides/pipelines/stack-docs-cli.rst"
51+
"pipelines/build-overview.rst" = "guides/index.rst"
52+
"pipelines/configuration.rst" = "guides/index.rst"
53+
"pipelines/cpp-api-linking.rst" = "guides/index.rst"
54+
"pipelines/index.rst" = "guides/index.rst"
55+
"pipelines/install.rst" = "guides/index.rst"
56+
"pipelines/package-docs-cli.rst" = "guides/index.rst"
57+
"pipelines/stack-docs-cli.rst" = "guides/index.rst"

docs/guides/index.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,6 @@ Documenteer provides a configuration profile for creating branded user guides wi
4747
markdown-primer
4848
including-notebooks
4949

50-
.. toctree::
51-
:maxdepth: 2
52-
:caption: Science Pipelines
53-
:name: toc-guides-pipelines
54-
:titlesonly:
55-
56-
pipelines/index
57-
5850
.. toctree::
5951
:maxdepth: 2
6052
:caption: Reference

docs/guides/page-redirects.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ These paths are relative to the documentation project's root directory (where :f
2323
The table accepts an arbitrary number of redirects:
2424

2525
.. code-block:: toml
26-
:captin: documenteer.toml
26+
:caption: documenteer.toml
2727
2828
[sphinx.redirects]
2929
"old-page.rst" = "some-dir/new-page.rst"

0 commit comments

Comments
 (0)