From 9070f2a22a609c53f47f076321ae9d0ce252aa2d Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Mon, 3 Jun 2024 00:55:44 +0800 Subject: [PATCH] chore(global: add custom tags page and usual config changes Signed-off-by: Andrei Jiroh Halili --- .gitlab-ci.yml | 2 +- .markdownlint.json | 5 +++++ mkdocs.yml | 20 ++++++++++++-------- src/tags.md | 4 ++++ 4 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 .markdownlint.json create mode 100644 src/tags.md diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 578a003..6c8789a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,7 +13,7 @@ default: # Functions that should be executed before the build script is run before_script: - pipenv install --ignore-pipfile --deploy - - yarn install + - corepack enable && yarn install - curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash # Global builds and stuff diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 0000000..4b635fc --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,5 @@ +{ + "ul-indent": false, + "line-length": false, + "no-bare-urls": false +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index aaccb9f..a380c16 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -104,7 +104,7 @@ markdown_extensions: normalize_issue_symbols: true repo_url_shorthand: true user: andreijiroh-dev - repo: webapps/garden-monorepo + repo: wiki provider: 'gitlab' - pymdownx.mark - pymdownx.smartsymbols @@ -129,7 +129,8 @@ markdown_extensions: nav: - Meta: - index.md - - Copyright information: copyright.md + - Tags: tags.md + - "Copyright information": copyright.md - Digital Garden: - garden/index.md - Daily Log: @@ -141,17 +142,17 @@ nav: - Hermitcraft: - World Downloads: multiverse/hermitcraft/hermitcraft-world-downloads-mirror.md -plugins: +plugins: - search # Wiki Changelog feed - blog: blog_dir: changelog - post_url_format: "{slug}" + post_url_format: "{date}/{slug}" post_url_max_categories: 5 post_slugify: !!python/object/apply:pymdownx.slugs.slugify kwds: case: lower - draft_if_future_date: true + draft_if_future_date: !ENV [PREVIEW_DRAFTS, false] authors_file: "authors.yml" categories_allowed: - Content Updates Organization @@ -164,7 +165,7 @@ plugins: blog_dir: garden/daily-notes post_url_date_format: yyyy-MM-dd post_url_format: "{date}" - draft_if_future_date: true + draft_if_future_date: !ENV [PREVIEW_DRAFTS, false] authors_file: authors.yml categories_allowed: - Weekly Dump @@ -173,17 +174,20 @@ plugins: - Recap Time Squad - Open-source - Multifandom + - Personal Stuff - Other Side Projects - Actually Autistic Status Update post_readtime: true - rss: - enabled: true - match_path: (changelog|garden/daily-notes)/posts/.* + enabled: !ENV [CI, false] + match_path: (changelog|garden/daily-notes)/posts/.* date_from_meta: as_creation: date categories: - categories - tags + - tags: + tags_file: tags.md hooks: - overrides/hooks/magiclinks_rewriter.py diff --git a/src/tags.md b/src/tags.md new file mode 100644 index 0000000..22c0d37 --- /dev/null +++ b/src/tags.md @@ -0,0 +1,4 @@ +# Tags + +!!! info "Note on tag compat/interop" + Note that these tags are Material for Mkdocs-specific and may not resolve in Agora yet. -- 2.51.2