fix(mkdocs): rebase cross-kind wiki links under directory URLs
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
Wiki pages linking to a sibling kind (for example ../lib/...) were emitted verbatim by MkDocs and, with use_directory_urls, resolved into a non-existent <kind>/<kind>/ path. Add a docforge-linkfix plugin (doc-forge 0.0.8) that rebases those links to the repository root.
This commit is contained in:
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "doc-forge"
|
||||
version = "0.0.7"
|
||||
version = "0.0.8"
|
||||
description = "A renderer-agnostic Python documentation compiler"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
@@ -56,6 +56,9 @@ dependencies = [
|
||||
[project.scripts]
|
||||
doc-forge = "docforge.cli.main:main"
|
||||
|
||||
[project.entry-points."mkdocs.plugins"]
|
||||
docforge-linkfix = "docforge.mkdocs_links:LinkFixPlugin"
|
||||
|
||||
[project.optional-dependencies]
|
||||
mkdocs = [
|
||||
"mkdocs==1.6.1",
|
||||
|
||||
Reference in New Issue
Block a user