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:
parent
d35ca2560e
commit
15f39102d0
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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´
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue