Skip to content

Commit 74299f1

Browse files
committed
Update changelog, and document specparser inheritance behavior
1 parent 8ac4950 commit 74299f1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- To prepare for updating the version of the parser used by the VSCode extension,
13+
the postprocessor has been temporarily disabled in the language server.
14+
15+
### Deprecated
16+
17+
- The following directives are deprecated: `admonition`, `danger`, `caution`, and `topic` (DOP-1243).
18+
1019
## [v0.5.2] - 2020-07-15
1120

1221
### Fixed

snooty/specparser.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,11 @@ def validator(argument: str) -> object:
295295
raise ValueError(f'Unknown directive argument type "{option_spec}"')
296296

297297
def _resolve_inheritance(self) -> None:
298-
"""Directives can inherit from other directives; resolve this."""
298+
"""Spec entries can inherit from other entries; resolve this.
299+
300+
Not all fields are implicitly inherited: only fields with a default value
301+
of None or MissingDict are inherited. This means that, for example content_type
302+
is inherited, but as of this writing, deprecated is not."""
299303
self._resolve_category(self.directive)
300304
self._resolve_category(self.role)
301305
self._resolve_category(self.rstobject)

0 commit comments

Comments
 (0)