Skip to content

Latest commit

 

History

History
177 lines (118 loc) · 4.5 KB

File metadata and controls

177 lines (118 loc) · 4.5 KB

Changelog

  • Drop Python 3.10 support (requires Python >=3.11).
  • Pin Sphinx to <9 in dev dependencies for sphinx_toolbox compatibility in sample project.
  • Fix bug where SubstitutionXRefRole removed all occurrences of "substitution-" from CSS class names instead of only the prefix.
  • Give version in extension metadata.
  • literalinclude directive now supports the following options:
    • :content-substitutions: - Performs substitutions on the included file content.
    • :path-substitutions: - Performs substitutions on the file path.
  • image directive now supports the following option:
    • :path-substitutions: - Performs substitutions on the image file path.
  • Add substitutions_default_enabled configuration option to enable substitutions by default. When set to True in conf.py:
    • Substitutions are applied to all code-block directives without requiring the :substitutions: flag. Use the :nosubstitutions: flag on individual code blocks to disable substitutions when the default is enabled.
    • Substitutions are applied to all literalinclude directives (both content and path) without requiring the :content-substitutions: or :path-substitutions: flags. Use the :nocontent-substitutions: or :nopath-substitutions: flags on individual literalinclude directives to disable substitutions when the default is enabled.
    • Substitutions are applied to all image directives (path) without requiring the :path-substitutions: flag. Use the :nopath-substitutions: flag on individual image directives to disable substitutions when the default is enabled.
  • Add support for Python 3.10.
  • Support the substitution-code role in MyST documents.
  • Support the substitution-download role in MyST documents.
  • Drop support for Python 3.10.
  • Supports situations where there is no source file name available to the extension, such as when using sphinx_toolbox.rest_example.
  • Support Python 3.13.
  • In MyST documents, support the myst_sub_delimiters option. This means you can use the {{replace-me}} syntax in MyST documents.
  • Bump the minimum supported version of Sphinx to 7.3.5.
  • Remove support for sphinx-prompt. Please create a GitHub issue if you have a use case for this extension which is not covered by the built-in Sphinx functionality.
  • Add substitution-download role.
  • Add support for MyST. Thanks to Václav Votípka (@eNcacz) for the contribution.
  • Bump the minimum supported version of Sphinx to 7.2.0.
  • Bump the minimum supported version of docutils to 0.19.
  • sphinx-prompt is no longer an optional dependency, meaning you can remove the [prompt] extras dependency specification.
  • Remove the need to specify the sphinx-prompt extension in conf.py in order to use the prompt directive.
  • Support Python 3.12
  • Drop support for Python 3.9
  • Breaking change: The required Sphinx version is at least 4.0.
  • sphinx-prompt is now an optional dependency. Thanks go to @dgarcia360 for this change.
  • Ensure non-lower-case replacements can also be substituted in the inline substitution code role.
  • Ensure non-lower-case replacements can also be substituted. Thanks go to @Julian for this change.
  • Breaking change: Use :substitutions: option on code-block or prompt rather than new directives.
  • Breaking change: Use the default Sphinx replacements, rather than a custom variable. Thanks go to @sbaudoin for the original code for this change. Please make a GitHub issue if you have a use case which this does not suit.
  • Support Sphinx 2.0.0.
  • Make substitution a list, not a tuple.
  • Add substitution-code-block directive.
  • Initial release with substitution-prompt.