Skip to content

Commit afce7e1

Browse files
authored
Merge pull request #150 from lsst-sqre/u/jonathansick/backport-149
Backport mermaid 0.9.0 pin to documenteer 0.7.x
2 parents 091555a + 0e75741 commit afce7e1

File tree

5 files changed

+23
-14
lines changed

5 files changed

+23
-14
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0
3+
rev: v4.4.0
44
hooks:
55
- id: check-yaml
66
- id: check-toml
@@ -14,25 +14,25 @@ repos:
1414
files: (README\.rst)|(CHANGELOG\.rst)
1515

1616
- repo: https://github.com/PyCQA/isort/
17-
rev: 5.10.1
17+
rev: 5.12.0
1818
hooks:
1919
- id: isort
2020
additional_dependencies:
2121
- toml
2222

2323
- repo: https://github.com/psf/black
24-
rev: 22.10.0
24+
rev: 23.1.0
2525
hooks:
2626
- id: black
2727

2828
- repo: https://github.com/asottile/blacken-docs
29-
rev: v1.12.1
29+
rev: 1.13.0
3030
hooks:
3131
- id: blacken-docs
32-
additional_dependencies: [black==20.8b1]
32+
additional_dependencies: [black==23.1.0]
3333
args: [-l, '79', -t, py38]
3434

3535
- repo: https://github.com/pycqa/flake8
36-
rev: 5.0.4
36+
rev: 6.0.0
3737
hooks:
3838
- id: flake8

CHANGELOG.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 0.7.1 (2023-02-23)
4+
5+
Fixes:
6+
7+
- Temporarily pinning Mermaid to 9.4.0 in the User Guide configuration to workaround a change in the Mermaid CDN.
8+
39
## 0.7.0 (2022-10-20)
410

511
- Documenteer provides a new Sphinx configuration profile for general Rubin user guide projects, `documenteer.conf.guide`.
@@ -108,7 +114,7 @@ Fixes:
108114

109115
- Documenteer works with the latest version of [sphinxcontrib-bibtex](https://github.com/mcmtroffaes/sphinxcontrib-bibtex).
110116
Both the new (`documenteer.conf.technote`) and old (`documenteer.sphinxconfig.technoteconf`) versions of the technote configuration use the new `bibtex_bibfiles` configuration variable.
111-
Version 2.0.0 or later of `sphinxcontrib-bibtex`_ is now required because of that package's API.
117+
Version 2.0.0 or later of `sphinxcontrib-bibtex`\_ is now required because of that package's API.
112118

113119
## 0.6.2 (2020-10-08)
114120

@@ -213,7 +219,7 @@ Fixes:
213219
## 0.5.5 (2019-12-09)
214220

215221
- Technote configuration now uses `yaml.safe_load` instead of `yaml.load`.
216-
See the [pyyaml docs for details](https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation).
222+
See the [pyyaml docs for details](<https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation>).
217223
[[DM-22537](https://jira.lsstcorp.org/browse/DM-22537)]
218224

219225
## 0.5.4 (2019-11-03)
@@ -339,7 +345,7 @@ Fixes:
339345
This configuration is critical:
340346

341347
1. It is actually responsible for ensuring that inherited members of classes appear in our docs.
342-
2. Without this, classes that have a `__slots__` attribute (typically through inheritance of a `collections.abc` class) won't have *any* of their members documented. See (DM-16102)(https://jira.lsstcorp.org/browse/DM-16102) for discussion.
348+
2. Without this, classes that have a `__slots__` attribute (typically through inheritance of a `collections.abc` class) won't have _any_ of their members documented. See (DM-16102)(https://jira.lsstcorp.org/browse/DM-16102) for discussion.
343349

344350
- `todo` directives are now hidden when using `build_pipelines_lsst_io_configs`.
345351
They are still shown, by default, for standalone package documentation builds, which are primarily developer-facing.
@@ -373,7 +379,7 @@ Fixes:
373379
- Add `documenteer.sphinxconf.stackconf.build_pipelines_lsst_io_configs` to configure the Sphinx build of the https://github.com/lsst/pipelines_lsst_io repo.
374380
This pattern lets us share configurations between per-package documentation builds and the "stack" build in `pipelines_lsst_io`.
375381

376-
- Replaced the third-party `astropy_helpers`_ package with the numpydoc_ and `sphinx-automodapi`_ packages.
382+
- Replaced the third-party `astropy_helpers`_ package with the numpydoc_ and `sphinx-automodapi`\_ packages.
377383
This helps reduce the number of extraneous dependencies needed for Stack documentation.
378384

379385
- `autoclass_content` is now `"class"`, fitting the LSST DM standards for writing class docstrings, and not filling out `__init__` docstrings.
@@ -468,7 +474,7 @@ Fixes:
468474

469475
## 0.1.10 (2016-12-14)
470476

471-
Includes prototype support for LSST Science Pipelines documentation, as part of `DM-6199 <https://jira.lsstcorp.org/browse/DM-6199>`__:
477+
Includes prototype support for LSST Science Pipelines documentation, as part of `DM-6199 <https://jira.lsstcorp.org/browse/DM-6199>`\_\_:
472478

473479
- Added dependencies to [breathe](http://breathe.readthedocs.io/en/latest/), [astropy-helpers](https://github.com/astropy/astropy-helpers) and the [lsst-sphinx-bootstrap-theme](https://github.com/lsst-sqre/lsst-sphinx-bootstrap-theme) to generally coordinate LSST Science Pipelines documentation dependencies.
474480
- Created `documenteer.sphinxconfig.stackconf` module to centrally coordinate Science Pipelines documentation configuration. Much of the configuration is based on [astropy-helper's Sphinx configuration](https://github.com/astropy/astropy-helpers/blob/master/astropy_helpers/sphinx/conf.py) since the LSST Science Pipelines documentation is heavily based upon Astropy's Sphinx theme and API reference generation infrastructure.

src/documenteer/conf/_toml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class DocumenteerConfig:
226226
@classmethod
227227
def find_and_load(cls) -> DocumenteerConfig:
228228
path = Path("documenteer.toml")
229-
if not path.is_file:
229+
if not path.is_file():
230230
raise ConfigError("Cannot find the documenteer.toml file.")
231231
return cls.load(path.read_text())
232232

src/documenteer/conf/guide.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"myst_enable_extensions",
9898
# MERMAID
9999
"mermaid_output_format",
100+
"mermaid_version",
100101
# OPENGRAPH
101102
"ogp_site_url",
102103
"ogp_site_name",
@@ -348,6 +349,10 @@
348349
# Mermaid CLI installation
349350
mermaid_output_format = "raw"
350351

352+
# Temporary workaround for not getting mermaid 10 successfully from unpkg
353+
# https://github.com/mgaitan/sphinxcontrib-mermaid/issues/110
354+
mermaid_version = "9.4.0"
355+
351356
# ============================================================================
352357
# #OPENGRAPH OpenGraph diagram support
353358
# https://github.com/wpilibsuite/sphinxext-opengraph

src/documenteer/sphinxext/lssttasks/topiclists.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ def types(self):
161161

162162

163163
class ConfigurableListDirective(BaseTopicListDirective):
164-
165164
directive_name = "lsst-configurables"
166165

167166
@property
@@ -170,7 +169,6 @@ def types(self):
170169

171170

172171
class ConfigListDirective(TaskListDirective):
173-
174172
directive_name = "lsst-configs"
175173

176174
@property

0 commit comments

Comments
 (0)