diff --git a/mkdocs.yml b/mkdocs.yml index d93df42f..63a24312 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -118,3 +118,7 @@ plugins: utm_source: "documentation" utm_medium: "RSS" utm_campaign: "feed-syndication" + - git-revision-date-localized: + enabled: true + enable_creation_date: false + type: iso_date diff --git a/pages/opportunities/gsoc/guides/contributor/index.md b/pages/opportunities/gsoc/guides/contributor/index.md index 988ff850..47532beb 100644 --- a/pages/opportunities/gsoc/guides/contributor/index.md +++ b/pages/opportunities/gsoc/guides/contributor/index.md @@ -1,7 +1,7 @@ --- title: "GSoC Contributor Guide" description: "GSoC Contributor Guide" -date: "2023-10-30" +date: "2025-02-01" authors: ["OSL Team"] template: single-sidebar.html --- diff --git a/pages/opportunities/gsoc/index.md b/pages/opportunities/gsoc/index.md index 5377f72a..b5c67821 100644 --- a/pages/opportunities/gsoc/index.md +++ b/pages/opportunities/gsoc/index.md @@ -1,7 +1,7 @@ --- title: "Google Summer of Code with Open Science Labs" description: "Google Summer of Code with Open Science Labs" -date: "2024-01-29" +date: "2025-02-01" authors: ["OSL Team"] template: single-sidebar.html --- diff --git a/pages/opportunities/gsoc/project-ideas/index.md b/pages/opportunities/gsoc/project-ideas/index.md index 45d6fef9..b6b7b338 100644 --- a/pages/opportunities/gsoc/project-ideas/index.md +++ b/pages/opportunities/gsoc/project-ideas/index.md @@ -1,7 +1,7 @@ --- title: "GSoC Project Ideas" description: "GSoC Project Ideas" -date: "2025-01-13" +date: "2025-02-01" authors: ["OSL Team"] template: single-sidebar.html --- diff --git a/pages/opportunities/gsoc/templates/project-ideas.md b/pages/opportunities/gsoc/templates/project-ideas.md index a453edc2..03f3f733 100644 --- a/pages/opportunities/gsoc/templates/project-ideas.md +++ b/pages/opportunities/gsoc/templates/project-ideas.md @@ -1,7 +1,7 @@ --- title: "TEMPLATE: GSoC Project Idea" description: "TEMPLATE: GSoC Project Idea" -date: "2025-01-13" +date: "2025-02-01" authors: ["OSL Team"] template: single-sidebar.html --- diff --git a/pages/robots.txt b/pages/robots.txt new file mode 100644 index 00000000..eb053628 --- /dev/null +++ b/pages/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/poetry.lock b/poetry.lock index c2b65128..a88cd0a8 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.0.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.0.1 and should not be changed by hand. [[package]] name = "aiohappyeyeballs" @@ -1778,6 +1778,29 @@ GitPython = ">=3.1.18" jinja2 = ">=2" mkdocs = ">=1.0" +[[package]] +name = "mkdocs-git-revision-date-localized-plugin" +version = "1.3.0" +description = "Mkdocs plugin that enables displaying the localized date of the last git modification of a markdown file." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "mkdocs_git_revision_date_localized_plugin-1.3.0-py3-none-any.whl", hash = "sha256:c99377ee119372d57a9e47cff4e68f04cce634a74831c06bc89b33e456e840a1"}, + {file = "mkdocs_git_revision_date_localized_plugin-1.3.0.tar.gz", hash = "sha256:439e2f14582204050a664c258861c325064d97cdc848c541e48bb034a6c4d0cb"}, +] + +[package.dependencies] +babel = ">=2.7.0" +GitPython = "*" +mkdocs = ">=1.0" +pytz = "*" + +[package.extras] +all = ["GitPython", "babel (>=2.7.0)", "click", "codecov", "mkdocs (>=1.0)", "mkdocs-gen-files", "mkdocs-git-authors-plugin", "mkdocs-material", "mkdocs-static-i18n", "pytest", "pytest-cov", "pytz"] +base = ["GitPython", "babel (>=2.7.0)", "mkdocs (>=1.0)", "pytz"] +dev = ["click", "codecov", "mkdocs-gen-files", "mkdocs-git-authors-plugin", "mkdocs-material", "mkdocs-static-i18n", "pytest", "pytest-cov"] + [[package]] name = "mkdocs-include-markdown-plugin" version = "7.1.2" @@ -2433,6 +2456,18 @@ files = [ [package.dependencies] Levenshtein = "0.26.0" +[[package]] +name = "pytz" +version = "2025.1" +description = "World timezone definitions, modern and historical" +optional = false +python-versions = "*" +groups = ["main"] +files = [ + {file = "pytz-2025.1-py2.py3-none-any.whl", hash = "sha256:89dd22dca55b46eac6eda23b2d72721bf1bdfef212645d81513ef5d03038de57"}, + {file = "pytz-2025.1.tar.gz", hash = "sha256:c2db42be2a2518b28e65f9207c4d05e6ff547d1efa4086469ef855e4ab70178e"}, +] + [[package]] name = "pywin32" version = "308" @@ -3567,4 +3602,4 @@ propcache = ">=0.2.0" [metadata] lock-version = "2.1" python-versions = ">=3.11,<3.12" -content-hash = "57c03bc4bf4222a427f751347cc67f5263d10ef3657df4b0e951e166b13c4eec" +content-hash = "6e63c2d58b41801a39834bd5f070934bc0d14efe4bd23fbff5389bc1152c0460" diff --git a/pyproject.toml b/pyproject.toml index 3d2c8901..16e78e1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ dependencies = [ "colorama (>=0.4.6,<0.5.0)", "linkcheckmd (>=1.4.0,<2.0.0)", "beautifulsoup4 (>=4.12.3,<5.0.0)", + "mkdocs-git-revision-date-localized-plugin (>=1.3)", ] diff --git a/theme/base.html b/theme/base.html index 6c050100..c4839e43 100644 --- a/theme/base.html +++ b/theme/base.html @@ -32,6 +32,17 @@ + + + + @@ -157,6 +168,17 @@ {% endblock content %} +
+ + + {% if page.meta.git_revision_date_localized %} + Last update: {{ page.meta.git_revision_date_localized }} + {% endif %} + {% if page.meta.git_created_date_localized %} + Created: {{ page.meta.git_created_date_localized }} + {% endif %} + +