Skip to content

Commit

Permalink
Update mkdocs-material-insiders (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaharagon committed Mar 28, 2024
1 parent c5bdbbc commit 525a2c1
Show file tree
Hide file tree
Showing 25 changed files with 142 additions and 137 deletions.
1 change: 0 additions & 1 deletion .cache/plugin/social/fonts/Bagnard/Bold.woff

This file was deleted.

4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "monthly"
assignees:
- "jonaharagon"
reviewers:
Expand All @@ -48,7 +48,7 @@ updates:
registries:
- github-privacyguides
schedule:
interval: "daily"
interval: "monthly"
labels:
- "fix:submodules"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/checkout@v4

- name: crowdin action
uses: crowdin/[email protected].0
uses: crowdin/[email protected].1
with:
upload_sources: true
upload_sources_args: '--auto-update --delete-obsolete'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
image: ghcr.io/openzim/zim-tools:3.1.3
options: -v ${{ github.workspace }}:/data
run: |
zimwriterfs -w index.html -I assets/brand/PNG/Square/pg-yellow.png -l eng -t "Privacy Guides" -d "Your central privacy and security resource to protect yourself online." -c "Privacy Guides" -p "Jonah Aragon" -n "Privacy Guides" -e "https://github.com/privacyguides/privacyguides.org" /data/site /data/privacy_guides.zim
zimwriterfs -w index.html -I assets/brand/logos/png/square/pg-yellow.png -l eng -t "Privacy Guides" -d "Your central privacy and security resource to protect yourself online." -c "Privacy Guides" -p "Jonah Aragon" -n "Privacy Guides" -e "https://github.com/privacyguides/privacyguides.org" /data/site /data/privacy_guides.zim
- name: Upload ZIM file
uses: actions/upload-artifact@v4
Expand Down
20 changes: 10 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ site
!/static/i18n/*.en.*
/theme/overrides/*
!/theme/overrides/*.en.*
# include Bagnard font in social card
# (not available in Google Fonts)
# commit social card fonts to repo
# see: https://github.com/squidfunk/mkdocs-material/issues/6983
# ridiculous hide-and-seek https://stackoverflow.com/a/72380673
/.cache/*
!/.cache/plugin
/.cache/plugin/*
!/.cache/plugin/social
/.cache/plugin/social/*
!/.cache/plugin/social/fonts
/.cache/plugin/social/fonts/*
!/.cache/plugin/social/fonts/Bagnard
.cache/*
!/config/.cache
/config/.cache/*
!/config/.cache/plugin
/config/.cache/plugin/*
!/config/.cache/plugin/social
/config/.cache/plugin/social/*
!/config/.cache/plugin/social/fonts

# Editor settings
.vscode/*
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ name = "pypi"
mkdocs-material = {path = "./modules/mkdocs-material"}
mkdocs-git-revision-date-localized-plugin = "~=1.2"
mkdocs-git-committers-plugin-2 = "~=1.1"
mkdocs-macros-plugin = "~=0.7"
mkdocs-macros-plugin = "~=1.0"
pillow = "~=10.0"
cairosvg = "~=2.7"

Expand Down
46 changes: 23 additions & 23 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/.cache/plugin/social/fonts
4 changes: 2 additions & 2 deletions config/layouts/home.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ definitions:

- &page_title_with_site_name >-
{{ page.meta.get("title", page.title) }}

- &page_description >-
{{ config.extra.homepage_description or "A socially motivated website which provides information about protecting your online data privacy and security." }}

Expand Down Expand Up @@ -83,7 +83,7 @@ layers:
font:
family: *title_font_family
style: Bold

# Page description
- size: { width: 864, height: 192 }
offset: { x: 64, y: 320 }
Expand Down
2 changes: 1 addition & 1 deletion config/layouts/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ definitions:

- &logo >-
{%- if page.meta.cover -%}
theme/assets/brand/SVG/Logo/privacy-guides-logo-notext.svg
theme/assets/brand/logos/svg/logo/privacy-guides-logo-notext.svg
{%- elif config.theme.logo -%}
{{ config.docs_dir }}/{{ config.theme.logo }}
{%- endif -%}
Expand Down
4 changes: 2 additions & 2 deletions config/layouts/pride.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ definitions:
{%- if page.meta.cover -%}
theme/assets/img/cover/{{ page.meta.cover }}
{%- else -%}
{{ layout.background_image or "theme/assets/brand/PNG/Banner/cover-progress-notext-blur.png" }}
{{ layout.background_image or "theme/assets/brand/images/png/cover-progress-notext-blur.png" }}
{%- endif -%}

- &background_color >-
Expand Down Expand Up @@ -51,7 +51,7 @@ definitions:
{{ page.meta.icon or "" }}

- &logo >-
theme/assets/brand/SVG/Logo/privacy-guides-logo-notext.svg
theme/assets/brand/logos/svg/logo/privacy-guides-logo-notext.svg

# Meta tags
tags:
Expand Down
8 changes: 4 additions & 4 deletions config/mkdocs-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ repo_name: ""
theme:
name: material
custom_dir: ../theme
logo: ../../theme/assets/brand/SVG/Logo/privacy-guides-logo-notext-colorbg.svg
favicon: assets/brand/png/favicon/favicon-32x32.png
logo: ../../theme/assets/brand/logos/svg/logo/privacy-guides-logo-notext-colorbg.svg
favicon: assets/brand/logos/png/favicon-32x32.png
icon:
repo: simple/github
features:
Expand Down Expand Up @@ -156,8 +156,8 @@ markdown_extensions:
meta: {}
abbr: {}
pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
tables: {}
footnotes: {}
toc:
Expand Down
4 changes: 2 additions & 2 deletions config/mkdocs-offline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extra:
theme:
language: en
# this logo needs to be set separately because the relative path is different
logo: ../theme/assets/brand/SVG/Logo/privacy-guides-logo-notext-colorbg.svg
logo: ../theme/assets/brand/logos/svg/logo/privacy-guides-logo-notext-colorbg.svg
font:
text: Public Sans
code: DM Mono
Expand Down Expand Up @@ -82,7 +82,7 @@ plugins:

markdown_extensions:
pymdownx.snippets:
auto_append:
auto_append:
- includes/abbreviations.en.txt

nav:
Expand Down
4 changes: 2 additions & 2 deletions config/mkdocs.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extra:
theme:
language: en
# ENGLISH ONLY: this logo needs to be set separately because the relative path is different
logo: ../theme/assets/brand/SVG/Logo/privacy-guides-logo-notext-colorbg.svg
logo: ../theme/assets/brand/logos/svg/logo/privacy-guides-logo-notext-colorbg.svg
font:
text: Public Sans
code: DM Mono
Expand All @@ -66,7 +66,7 @@ theme:

markdown_extensions:
pymdownx.snippets:
auto_append:
auto_append:
- includes/abbreviations.en.txt

nav:
Expand Down
4 changes: 2 additions & 2 deletions docs/about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ schema:
"@id": https://www.privacyguides.org/
name: Privacy Guides
url: https://www.privacyguides.org/en/about/
logo: https://www.privacyguides.org/en/assets/brand/png/square/pg-yellow.png
logo: https://www.privacyguides.org/en/assets/brand/logos/png/square/pg-yellow.png
sameAs:
- https://twitter.com/privacy_guides
- https://github.com/privacyguides
Expand All @@ -16,7 +16,7 @@ schema:
- https://www.youtube.com/@privacyguides
- https://mastodon.neat.computer/@privacyguides
---
![Privacy Guides logo](../assets/brand/PNG/Square/pg-yellow.png){ align=right }
![Privacy Guides logo](../assets/brand/logos/png/square/pg-yellow.png){ align=right }

**Privacy Guides** is a socially motivated website that provides [information](/kb) for protecting your data security and privacy. Our mission is to inform the public about the value of digital privacy, and global government initiatives which aim to monitor your online activity. We are a non-profit collective operated entirely by volunteer [team members](https://discuss.privacyguides.net/g/team) and contributors. Our website is free of advertisements and not affiliated with any of the listed providers.

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ schema:
"@id": https://www.privacyguides.org/
name: Privacy Guides
url: https://www.privacyguides.org/en/about/
logo: https://www.privacyguides.org/en/assets/brand/png/square/pg-yellow.png
logo: https://www.privacyguides.org/en/assets/brand/logos/png/square/pg-yellow.png
sameAs:
- https://twitter.com/privacy_guides
- https://github.com/privacyguides
Expand Down
2 changes: 1 addition & 1 deletion modules/mkdocs-material
2 changes: 1 addition & 1 deletion theme/assets/brand
Submodule brand updated 127 files
2 changes: 1 addition & 1 deletion theme/assets/files/meta/browserconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/assets/brand/PNG/Favicon/mstile-150x150.png"/>
<square150x150logo src="/en/assets/brand/logos/png/mstile-150x150.png"/>
<TileColor>#ffd06f</TileColor>
</tile>
</msapplication>
Expand Down
4 changes: 2 additions & 2 deletions theme/assets/files/meta/site.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"short_name": "Privacy Guides",
"icons": [
{
"src": "/assets/brand/PNG/Favicon/android-chrome-192x192.png",
"src": "/en/assets/brand/logos/png/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/assets/brand/PNG/Favicon/android-chrome-512x512.png",
"src": "/en/assets/brand/logos/png/android-chrome-192x192.png",
"sizes": "512x512",
"type": "image/png"
}
Expand Down
Loading

0 comments on commit 525a2c1

Please sign in to comment.