diff --git a/docs/_data/plugins.py b/docs/_data/plugins.py index dbfe47fb0cd9f568e921b116b7219a648225a210..05c3aea05b27349881aa3b8fd29cffca48dd80b3 100644 --- a/docs/_data/plugins.py +++ b/docs/_data/plugins.py @@ -810,9 +810,9 @@ def update_version(env: dict) -> None: return git_repo = git.Repo(search_parent_directories=True) mike_version = list() - last_major = 0 - last_minor = 0 - last_patch = 0 + last_major = -1 + last_minor = -1 + last_patch = -1 for i_tag in git_repo.tags: i_tag = yaml.dump(i_tag.path) i_tag = re.sub(".*v", "", i_tag).split(".") @@ -820,27 +820,29 @@ def update_version(env: dict) -> None: minor = int(i_tag[1]) patch = int(i_tag[2]) if major > last_major: - mike_version.append( - { - "version": "{}.{}".format(last_major, last_minor), - "title": "{}.{}.{}".format( - last_major, last_minor, last_patch - ), - "aliases": [], - } - ) + if last_major >= 0: + mike_version.append( + { + "version": "{}.{}".format(last_major, last_minor), + "title": "{}.{}.{}".format( + last_major, last_minor, last_patch + ), + "aliases": [], + } + ) last_major = major - last_minor = 0 + last_minor = -1 if minor > last_minor: - mike_version.append( - { - "version": "{}.{}".format(last_major, last_minor), - "title": "{}.{}.{}".format( - last_major, last_minor, last_patch - ), - "aliases": [], - } - ) + if last_minor >= 0: + mike_version.append( + { + "version": "{}.{}".format(last_major, last_minor), + "title": "{}.{}.{}".format( + last_major, last_minor, last_patch + ), + "aliases": [], + } + ) last_minor = minor last_patch = 0 if patch > last_patch: diff --git a/docs/about/release_notes.md b/docs/about/release_notes.md index 79b45b825f904693a312714d479f64a8453a8fb3..e03cfeae492f6e36102d00b8bcbd7a42ecc93792 100644 --- a/docs/about/release_notes.md +++ b/docs/about/release_notes.md @@ -8,7 +8,14 @@ Modified content will be overwritten when updating <!-- 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 diff --git a/docs/personal_template/create.md b/docs/personal_template/create.md index eb9ad644c65ab2b1079165fbdf881a62219bcbd2..89941a46b7e5895ef8bb49679db45ece6aabb57e 100644 --- a/docs/personal_template/create.md +++ b/docs/personal_template/create.md @@ -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 }} -[fork_mkdocs_template]: /assets/img/fork_main_repo.png -[fork_mkdocs_template_dest]: /assets/img/fork_dest_namespace.png -[fork_mkdocs_template_finish]: /assets/img/fork_finish.png +[fork_mkdocs_template]: ../assets/img/fork_main_repo.png +[fork_mkdocs_template_dest]: ../assets/img/fork_dest_namespace.png +[fork_mkdocs_template_finish]: ../assets/img/fork_finish.png ## Add the content of your template