From ebcb65de16fae2c12dc9eef2f29d41b96e0b0811 Mon Sep 17 00:00:00 2001 From: patrick devlin Date: Tue, 5 Dec 2023 18:53:48 -0500 Subject: [PATCH] Fix section case (#127) * disable slugify default lowercase option * removing version update in pyproject.toml --- CHANGELOG.md | 6 ++++++ mkdocs_multirepo_plugin/plugin.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec33aa8..d63d29d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.6.4 + +### Prs in Release + +- [Fix section case](https://github.com/jdoiro3/mkdocs-multirepo-plugin/pull/124) + ## 0.6.3 ### Prs in Release diff --git a/mkdocs_multirepo_plugin/plugin.py b/mkdocs_multirepo_plugin/plugin.py index d3b0696..e5eeee4 100644 --- a/mkdocs_multirepo_plugin/plugin.py +++ b/mkdocs_multirepo_plugin/plugin.py @@ -212,7 +212,7 @@ def handle_repos_import(self, config: Config, repos: List[RepoConfig]) -> Config raise ImportSyntaxError( "import_url should only contain the url with plugin accepted params. You included '!import'." ) - section_slug = slugify(repo.section) + section_slug = slugify(text=repo.section, lowercase=False) path = repo.section_path repo_name = f"{path}/{section_slug}" if path is not None else section_slug # mkdocs config values edit_uri and repo_url aren't set