-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency mkdocstrings to ^0.28.0 #66
base: master
Are you sure you want to change the base?
Conversation
7fe71c3
to
8b31ae5
Compare
8b31ae5
to
b181f75
Compare
b181f75
to
f0366a1
Compare
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: poetry.lock
|
f0366a1
to
4c17b6d
Compare
4c17b6d
to
740509e
Compare
740509e
to
767742d
Compare
|
767742d
to
276e219
Compare
276e219
to
165b60f
Compare
This PR contains the following updates:
^0.19.0
->^0.28.0
Release Notes
mkdocstrings/mkdocstrings (mkdocstrings)
v0.28.0
Compare Source
Compare with 0.27.0
Breaking Changes
Although the following changes are "breaking" in terms of public API, we didn't find any public use of these classes and methods on GitHub.
mkdocstrings.extension.AutoDocProcessor.__init__(parser)
: Parameter was removedmkdocstrings.extension.AutoDocProcessor.__init__(md)
: Positional parameter was movedmkdocstrings.extension.AutoDocProcessor.__init__(config)
: Parameter was removedmkdocstrings.extension.AutoDocProcessor.__init__(handlers)
: Parameter kind was changed:positional or keyword
->keyword-only
mkdocstrings.extension.AutoDocProcessor.__init__(autorefs)
: Parameter kind was changed:positional or keyword
->keyword-only
mkdocstrings.extension.MkdocstringsExtension.__init__(config)
: Parameter was removedmkdocstrings.extension.MkdocstringsExtension.__init__(handlers)
: Positional parameter was movedmkdocstrings.extension.MkdocstringsExtension.__init__(autorefs)
: Positional parameter was movedmkdocstrings.handlers.base.Handlers.__init__(config)
: Parameter was removedmkdocstrings.handlers.base.Handlers.__init__(theme)
: Parameter was added as requiredmkdocstrings.handlers.base.Handlers.__init__(default)
: Parameter was added as requiredmkdocstrings.handlers.base.Handlers.__init__(inventory_project)
: Parameter was added as requiredmkdocstrings.handlers.base.Handlers.__init__(tool_config)
: Parameter was added as requiredSimilarly, the following parameters were renamed, but the methods are only called from our own code, using positional arguments.
mkdocstrings.handlers.base.BaseHandler.collect(config)
: Parameter was renamedoptions
mkdocstrings.handlers.base.BaseHandler.render(config)
: Parameter was renamedoptions
Finally, the following method was removed, but this is again taken into account in our own code:
mkdocstrings.handlers.base.BaseHandler.get_anchors
: Public object was removedFor these reasons, and because we're still in v0, we do not bump to v1 yet. See following deprecations.
Deprecations
mkdocstrings 0.28 will start emitting these deprecations warnings:
Previously, the
get_handler
function would pass ahandler
(name) argument to the handler constructor. This name must now be set on the handler's class directly.The
domain
class attribute on handlers is now mandatory and cannot be an empty string.This argument could previously be passed as a positional argument (from the
get_handler
function), and must now be passed as a keyword argument.Same as for
theme
, but withcustom_templates
.The
get_handler
function now receives amdx
argument, which it must forward to the handler constructor and then to the base handler, either explicitly or through**kwargs
:=== "Explicitly"
=== "Through
**kwargs
"In the meantime we still retrieve this
mdx
value at a different moment, by reading it from the MkDocs configuration.Same as for
mdx
, but withmdx_config
.Previously, mkdocstrings would pop the
import
key from a handler's configuration to download each item (URLs). Items could be strings, or dictionaries with aurl
key. Now mkdocstrings gives back control to handlers, which must store this inventory configuration within them, and expose it again through aget_inventory_urls
method. This method returns a list of tuples: an URL, and a dictionary of options that will be passed again to theirload_inventory
method. Handlers have now full control over the "inventory" setting.Changing the name of the key (for example from
import
toinventories
) involves a change in user configuration, and both keys will have to be supported by your handler for some time.This comes from mkdocstrings and mkdocs-autorefs, and will disappear with mkdocstrings v0.28.
Handlers must now store their own global options (in an instance attribute), and implement a
get_options
method that receiveslocal_options
(a dict) and returns combined options (dict or custom object). These combined options are then passed tocollect
andrender
, so that these methods can use them right away.Handlers can remove the
md
parameter from theirupdate_env
method implementation, and useself.md
instead, if they need it.Handlers don't have to call the parent
update_env
method from their own implementation anymore, and can just drop the call.Previously, handlers would implement a
get_anchors
method that received a data object (typedCollectorItem
) to return aliases for this object. This forced mkdocstrings to collect this object through the handler'scollect
method, which then required some logic with "fallback config" as to prevent unwanted collection. mkdocstrings gives back control to handlers and now callsget_aliases
instead, which accepts anidentifier
(string) and lets the handler decide how to return aliases for this identifier. For example, it can replicate previous behavior by calling its owncollect
method with its own "fallback config", or do something different (cache lookup, etc.).The
config_file_path
argument is now deprecated and only passed toget_handler
functions if they accept it. If you used it to compute a "base directory", you can now use thetool_config
argument instead, which is the configuration of the SSG tool in use (here MkDocs):Most of these warnings will disappear with the next version of mkdocstrings-python.
Bug Fixes
Code Refactoring
config_file_path
toget_handler
if it expects it (8c476ee by Timothée Mazzucotelli).get_anchors
method in favor ofget_aliases
method (7a668f0 by Timothée Mazzucotelli).v0.27.0
Compare Source
Compare with 0.26.2
Features
Performance Improvements
Code Refactoring
v0.26.2
Compare Source
Compare with 0.26.1
Build
v0.26.1
Compare Source
Compare with 0.26.0
Bug Fixes
v0.26.0
Compare Source
Compare with 0.25.2
Build
Dependencies
Features
v0.25.2
Compare Source
Compare with 0.25.1
Code Refactoring
##
) (2e5f89e by Timothée Mazzucotelli).v0.25.1
Compare Source
Compare with 0.25.0
Bug Fixes
v0.25.0
Compare Source
Compare with 0.24.3
Features
once
parameter in logging methods, allowing to log a message only once with a given logger (1532b59 by Timothée Mazzucotelli).::: path
and YAML options (d799d2f by Timothée Mazzucotelli). Issue-450Code Refactoring
v0.24.3
Compare Source
Compare with 0.24.2
Bug Fixes
v0.24.2
Compare Source
Compare with 0.24.1
Bug Fixes
v0.24.1
Compare Source
Compare with 0.24.0
Code Refactoring
v0.24.0
Compare Source
Compare with 0.23.0
Features
Bug Fixes
custom_templates
relative to the config file (370a61d by Waylan Limberg). Issue #477, PR #627Code Refactoring
v0.23.0
Compare Source
Compare with 0.22.0
Breaking Changes
BaseCollector
andBaseRenderer
classes: they were merged into theBaseHandler
class.selection
andrendering
keys in YAML blocks: useoptions
instead.mkdocstrings.handler
namespace.Handlers must now be packaged under the
mkdocstrings_handlers
namespace.Features
Bug Fixes
codehilite
CSS class to inline code (7690d41 by Timothée Mazzucotelli).Code Refactoring
get_anchors
(only tuples), to preserve order (2e10374 by Timothée Mazzucotelli).Inventory.register
method (433c6e0 by Timothée Mazzucotelli).v0.22.0
Compare Source
Compare with 0.21.2
Features
Code Refactoring
v0.21.2
Compare Source
Compare with 0.21.1
Bug Fixes
v0.21.1
Compare Source
Compare with 0.21.0
Bug Fixes
v0.21.0
Compare Source
Compare with 0.20.0
Features
v0.20.0
Compare Source
Compare with 0.19.1
Features
enabled
configuration option (8cf117d by StefanBRas). Issue #478, PR #504Bug Fixes
Code Refactoring
_load_inventory
accept lists as arguments (105ed82 by Sorin Sbarnea). Needed by PR mkdocstrings/python#49, PR #511Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.