Skip to content

Commit

Permalink
fix: Use repository provider in MkDocs site_url and repo_url
Browse files Browse the repository at this point in the history
Co-authored-by: Timothée Mazzucotelli <pawamoy@pm.me>
  • Loading branch information
whattheserver and pawamoy committed Mar 10, 2021
1 parent 28a973f commit 24f57a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/mkdocs.yml.jinja
@@ -1,7 +1,7 @@
site_name: "[[ project_name ]]"
site_description: "[[ project_description ]]"
site_url: "https://[[ repository_namespace ]].github.io/[[ repository_name ]]"
repo_url: "https://github.com/[[ repository_namespace ]]/[[ repository_name ]]"
site_url: "https://[[ repository_namespace ]].[[ repository_provider.rsplit('.', 1)[0] ]].io/[[ repository_name ]]"
repo_url: "https://[[ repository_provider ]]/[[ repository_namespace ]]/[[ repository_name ]]"
repo_name: "[[ repository_namespace ]]/[[ repository_name ]]"

nav:
Expand Down Expand Up @@ -49,4 +49,4 @@ plugins:
watch:
- src/[[ python_package_import_name ]]
- macros:
module_name: docs/macros
module_name: docs/macros

0 comments on commit 24f57a4

Please sign in to comment.