Skip to content
Snippets Groups Projects
Verified Commit b0f6eb45 authored by Romain Deville's avatar Romain Deville
Browse files

:twisted_rightwards_arrows: release-1.0.1 into master

:bookmark: v1.0.1 (29/04/2021)

- :bug::bento: Fix wrong assets path in `docs/personal_template/create.md`
- :bug: Update `plugins.py` to latest release
parents 3595aa08 6daea5fd
No related branches found
No related tags found
No related merge requests found
...@@ -810,9 +810,9 @@ def update_version(env: dict) -> None: ...@@ -810,9 +810,9 @@ def update_version(env: dict) -> None:
return return
git_repo = git.Repo(search_parent_directories=True) git_repo = git.Repo(search_parent_directories=True)
mike_version = list() mike_version = list()
last_major = 0 last_major = -1
last_minor = 0 last_minor = -1
last_patch = 0 last_patch = -1
for i_tag in git_repo.tags: for i_tag in git_repo.tags:
i_tag = yaml.dump(i_tag.path) i_tag = yaml.dump(i_tag.path)
i_tag = re.sub(".*v", "", i_tag).split(".") i_tag = re.sub(".*v", "", i_tag).split(".")
...@@ -820,27 +820,29 @@ def update_version(env: dict) -> None: ...@@ -820,27 +820,29 @@ def update_version(env: dict) -> None:
minor = int(i_tag[1]) minor = int(i_tag[1])
patch = int(i_tag[2]) patch = int(i_tag[2])
if major > last_major: if major > last_major:
mike_version.append( if last_major >= 0:
{ mike_version.append(
"version": "{}.{}".format(last_major, last_minor), {
"title": "{}.{}.{}".format( "version": "{}.{}".format(last_major, last_minor),
last_major, last_minor, last_patch "title": "{}.{}.{}".format(
), last_major, last_minor, last_patch
"aliases": [], ),
} "aliases": [],
) }
)
last_major = major last_major = major
last_minor = 0 last_minor = -1
if minor > last_minor: if minor > last_minor:
mike_version.append( if last_minor >= 0:
{ mike_version.append(
"version": "{}.{}".format(last_major, last_minor), {
"title": "{}.{}.{}".format( "version": "{}.{}".format(last_major, last_minor),
last_major, last_minor, last_patch "title": "{}.{}.{}".format(
), last_major, last_minor, last_patch
"aliases": [], ),
} "aliases": [],
) }
)
last_minor = minor last_minor = minor
last_patch = 0 last_patch = 0
if patch > last_patch: if patch > last_patch:
......
...@@ -8,7 +8,14 @@ Modified content will be overwritten when updating ...@@ -8,7 +8,14 @@ Modified content will be overwritten when updating
<!-- END MKDOCS TEMPLATE --> <!-- END MKDOCS TEMPLATE -->
## 🔖 v1.0.0 <small>(29/04/2021)</small> ## 🔖 v1.0
### 🔖 v1.0.1 <small>(29/04/2021)</small>
- 🐛🍱 Fix wrong assets path in `docs/personal_template/create.md`
- 🐛 Update `plugins.py` to latest release
### 🔖 v1.0.0 <small>(29/04/2021)</small>
First initial release of MkDocs Template First initial release of MkDocs Template
......
...@@ -38,9 +38,9 @@ git clone git@gitdomain.tld:namespace/mkdocs_template.git. ...@@ -38,9 +38,9 @@ git clone git@gitdomain.tld:namespace/mkdocs_template.git.
``` ```
[mkdocs_template_repo]: {{ git_platform.url }}{{ curr_repo.git_slug_with_namespace }} [mkdocs_template_repo]: {{ git_platform.url }}{{ curr_repo.git_slug_with_namespace }}
[fork_mkdocs_template]: /assets/img/fork_main_repo.png [fork_mkdocs_template]: ../assets/img/fork_main_repo.png
[fork_mkdocs_template_dest]: /assets/img/fork_dest_namespace.png [fork_mkdocs_template_dest]: ../assets/img/fork_dest_namespace.png
[fork_mkdocs_template_finish]: /assets/img/fork_finish.png [fork_mkdocs_template_finish]: ../assets/img/fork_finish.png
## Add the content of your template ## Add the content of your template
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment