Fix incompatibility with mkdocs v1.4.0 (#86)

* Fix AttributeError 'NoneType' object has no attribute 'replace' error when running mkdocs v1.4.0
* Fix duplicated test name warning
* Prep release
This commit is contained in:
Eric Peterson 2022-09-29 14:08:21 +02:00 committed by GitHub
parent d35ca2560e
commit 15f39102d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -304,7 +304,7 @@ teardown() {
assertFileNotContains './site/test/other/other/index.html' 'href="https://github.com/backstage/mkdocs-monorepo-plugin/edit/master/__tests__/integration/fixtures/ok-include-path-no-repo-url/api/docs/other/other.md"'
}
@test "does not default to root edit_uri if it is not configured" {
@test "does not default to root edit_uri if it is not configured for wildcard paths" {
cd ${fixturesDir}/ok-include-wildcard-no-repo-url
assertSuccessMkdocs build

View File

@ -1,5 +1,9 @@
# Changelog
## 1.0.4
- Resolve a bug that prevented this plugin from working with mkdocs >= v1.4.0
## 1.0.3
- Allow no specification for both ´nav´ and ´docs_dir´

View File

@ -56,7 +56,7 @@ class EditUrl:
root_docs_dir = self.__get_root_docs_dir()
root_repo_url = self.config.get('repo_url')
root_edit_uri = self.config.get('edit_uri', '')
root_edit_uri = self.config.get('edit_uri', '') or ''
page_docs_dir = self.__get_page_docs_dir()
page_repo_url = config.get('repo_url', root_repo_url)

View File

@ -3,7 +3,7 @@ import setuptools
setuptools.setup(
name='mkdocs-monorepo-plugin',
version='1.0.3',
version='1.0.4',
description='Plugin for adding monorepository support in Mkdocs.',
long_description="""
This introduces support for the !include syntax in mkdocs.yml, allowing you to import additional Mkdocs navigation.