diff --git a/.gitignore b/.gitignore index 13ed7b2..9735508 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,6 @@ venv node_modules .env *.tar.gz -gmi/api/commit \ No newline at end of file +gmi/api/commit +.env.keys +*.decrypted \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81ea97b..ab059b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,20 +18,22 @@ default: # Global builds and stuff variables: - DEBUG: "1" # MAY HORRIBLY LEAK SECRETS, PROCEED WITH CAUTION + #DEBUG: "1" # MAY HORRIBLY LEAK SECRETS, PROCEED WITH CAUTION + # feature flags FF_ENABLE_COMMIT_DATA: "true" FF_GENERATE_SOCIAL_CARDS: "true" + #FF_GIT_COMMITTERS_API: "true" SECURE_FILES_DOWNLOAD_PATH: .secretskit GIT_DEPTH: "0" + # dotenvx stuff DOTENV_PRIVATE_KEY: $DOTENV_PRIVATE_KEY_CI + MKDOCS_GIT_COMMITTERS_PLUGIN_TOKEN: $CI_JOB_TOKEN pages: stage: build script: - - | - source /tmp/.ssh-agent.env - bash ./bin/build.sh - npm run deploy + - bash ./bin/build.sh + - npm run deploy artifacts: paths: # The folder that contains the files to be exposed at the Page URL diff --git a/.vscode/settings.json b/.vscode/settings.json index 759adae..8c1feac 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -38,6 +38,7 @@ "Autist", "BDFL", "gatekeep", + "SABDFL", "Yubikey" ], "dotenv.enableAutocloaking": false diff --git a/Pipfile b/Pipfile index 12892a6..4f5d93b 100644 --- a/Pipfile +++ b/Pipfile @@ -13,6 +13,7 @@ cairosvg = "*" mkdocs-rss-plugin = "*" mkdocs-git-committers-plugin-2 = "*" mkdocs-autolinks-plugin = "*" +mkdocs-git-authors-plugin = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index 3f93057..b14fb01 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "f87d557d02966cbcde3572eae1a8d848cab1ba152503baeb1c06254ec2ecd511" + "sha256": "a053fb975cf504b2febb9d410545e54d02a9f78778292fb828eb79d76a78c726" }, "pipfile-spec": 6, "requires": { @@ -448,6 +448,15 @@ "markers": "python_version >= '3.8'", "version": "==0.2.0" }, + "mkdocs-git-authors-plugin": { + "hashes": [ + "sha256:77f97c321e08a8757beb866293eb257070b11cd5a080976bc6696b249cbade4f", + "sha256:f6cefc4dc832865d26f7f9f944c0a8c7dc852742d79320f3800e0d97814e2a84" + ], + "index": "pypi", + "markers": "python_version >= '3.8'", + "version": "==0.9.2" + }, "mkdocs-git-committers-plugin-2": { "hashes": [ "sha256:ea1f80a79cedc42289e0b8e973276df04fb94f56e0ae3efc5385fb28547cf5cb", diff --git a/mkdocs.yml b/mkdocs.yml index 43ca145..4b3a52b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -142,7 +142,12 @@ plugins: enabled: true fallback_to_build_date: true enable_creation_date: true - # TODO: Get Insiders for contributors and authors + #- git-committers: + # enabled: !ENV [FF_GIT_COMMITTERS_API, false] + # repository: andreijiroh-dev/website + # branch: main + # token: !ENV ["MKDOCS_GIT_COMMITTERS_PLUGIN_TOKEN"] + - git-authors # makrdown extensions markdown_extensions: diff --git a/overrides/partials/content.html b/overrides/partials/content.html index a8d67b8..b19b510 100644 --- a/overrides/partials/content.html +++ b/overrides/partials/content.html @@ -20,20 +20,16 @@ Why am I seeing this? {% endif %} -{% if "material/tags" in config.plugins and tags %} + + {% if "material/tags" in config.plugins and tags %} {% include "partials/tags.html" %} -{% endif %} -{% include "partials/actions.html" %} -{% if "\x3ch1" not in page.content %} + {% endif %} + {% include "partials/actions.html" %} + {% if "\x3ch1" not in page.content %}