Skip to content

Commit

Permalink
Merge branch 'master' into chore/update-to-mkdocs-1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Apr 25, 2024
2 parents 8b8cd3b + 374bbab commit d98243d
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 85 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ and brings value to both new and experienced users of Material for MkDocs.
__Want to create a pull request?__ Learn how to create a comprehensive
and useful pull request (PR)s

[Report a bug]: reporting-a-bug.md
[Report a docs issue]: reporting-a-docs-issue.md
[Request a change]: requesting-a-change.md
[Report a bug]: docs/contributing/reporting-a-bug.md
[Report a docs issue]: docs/contributing/reporting-a-docs-issue.md
[Request a change]: docs/contributing/requesting-a-change.md
[Ask a question]: https://github.com/squidfunk/mkdocs-material/discussions
[Add translations]: https://github.com/squidfunk/mkdocs-material/adding-translations
[Add a translation]: docs/contributing/adding-translations
[Create a pull request]: https://github.com/squidfunk/mkdocs-material/pulls
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.

FROM python:3.11-alpine3.18
FROM python:3.11-alpine3.19

# Build-time flags
ARG WITH_PLUGINS=true
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ In this section, we guide your through our processes.
[report a bug]: reporting-a-bug.md
[report a docs issue]: reporting-a-docs-issue.md
[request a change]: requesting-a-change.md
[add translations]: https://github.com/squidfunk/mkdocs-material/adding-translations
[add translations]: adding-translations.md
[create a pull request]: making-a-pull-request.md

## Checklist
Expand Down
12 changes: 6 additions & 6 deletions docs/reference/formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ syntax, which is more convenient that directly using the corresponding
[`mark`][mark], [`ins`][ins] and [`del`][del] HTML tags:

``` title="Text with highlighting"
- ==This was marked==
- ^^This was inserted^^
- ~~This was deleted~~
- ==This was marked (highlight)==
- ^^This was inserted (underline)^^
- ~~This was deleted (strikethrough)~~
```

<div class="result" markdown>

- ==This was marked==
- ^^This was inserted^^
- ~~This was deleted~~
- ==This was marked (highlight)==
- ^^This was inserted (underline)^^
- ~~This was deleted (strikethrough)~~

</div>

Expand Down
4 changes: 4 additions & 0 deletions docs/schema/assets/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -11492,6 +11492,7 @@
"simple/jsfiddle",
"simple/json",
"simple/jsonwebtokens",
"simple/jsr",
"simple/jss",
"simple/juce",
"simple/juejin",
Expand Down Expand Up @@ -12236,6 +12237,7 @@
"simple/progate",
"simple/progress",
"simple/prometheus",
"simple/pronounsdotpage",
"simple/prosieben",
"simple/proteus",
"simple/protocolsdotio",
Expand Down Expand Up @@ -12485,6 +12487,7 @@
"simple/scania",
"simple/schneiderelectric",
"simple/scikitlearn",
"simple/scilab",
"simple/scipy",
"simple/scopus",
"simple/scpfoundation",
Expand Down Expand Up @@ -12724,6 +12727,7 @@
"simple/subversion",
"simple/suckless",
"simple/sumologic",
"simple/sunrise",
"simple/supabase",
"simple/supercrease",
"simple/supermicro",
Expand Down

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions material/plugins/tags/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ def on_page_markdown(self, markdown, page, config, files):
return self._render_tag_index(markdown)

# Add page to tags index
for tag in page.meta.get("tags", []):
self.tags[tag].append(page)
tags = page.meta.get("tags", [])
if tags:
for tag in tags:
self.tags[tag].append(page)

# Inject tags into page (after search and before minification)
def on_page_context(self, context, page, config, nav):
Expand All @@ -110,7 +112,8 @@ def on_page_context(self, context, page, config, nav):
return

# Provide tags for page
if "tags" in page.meta:
context["tags"] =[]
if "tags" in page.meta and page.meta["tags"]:
context["tags"] = [
self._render_tag(tag)
for tag in page.meta["tags"]
Expand Down
2 changes: 1 addition & 1 deletion material/templates/.icons/simple/alltrails.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions material/templates/.icons/simple/jsr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions material/templates/.icons/simple/pronounsdotpage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions material/templates/.icons/simple/scilab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions material/templates/.icons/simple/sunrise.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions material/templates/partials/languages/ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"meta.comments": "コメント",
"meta.source": "ソース",
"nav": "ナビゲーション",
"readtime.one": "このページは約1分で読めます",
"readtime.other": "このページは約分で読めます",
"readtime.one": "このページは約1分で読めます",
"readtime.other": "このページは約#分で読めます",
"rss.created": "新しいページのRSSフィード",
"rss.updated": "更新されたページのRSSフィード",
"search": "検索",
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"preact": "^10.20.2",
"rimraf": "^5.0.5",
"sass": "^1.75.0",
"simple-icons": "^11.12.0",
"simple-icons": "^11.13.0",
"stylelint": "^15.11.0",
"stylelint-config-recess-order": "4.2.0",
"stylelint-config-recommended": "^13.0.0",
Expand Down
53 changes: 0 additions & 53 deletions setup.py

This file was deleted.

9 changes: 6 additions & 3 deletions src/plugins/tags/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ def on_page_markdown(self, markdown, page, config, files):
return self._render_tag_index(markdown)

# Add page to tags index
for tag in page.meta.get("tags", []):
self.tags[tag].append(page)
tags = page.meta.get("tags", [])
if tags:
for tag in tags:
self.tags[tag].append(page)

# Inject tags into page (after search and before minification)
def on_page_context(self, context, page, config, nav):
Expand All @@ -110,7 +112,8 @@ def on_page_context(self, context, page, config, nav):
return

# Provide tags for page
if "tags" in page.meta:
context["tags"] =[]
if "tags" in page.meta and page.meta["tags"]:
context["tags"] = [
self._render_tag(tag)
for tag in page.meta["tags"]
Expand Down
4 changes: 2 additions & 2 deletions src/templates/partials/languages/ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"meta.comments": "コメント",
"meta.source": "ソース",
"nav": "ナビゲーション",
"readtime.one": "このページは約1分で読めます",
"readtime.other": "このページは約分で読めます",
"readtime.one": "このページは約1分で読めます",
"readtime.other": "このページは約#分で読めます",
"rss.created": "新しいページのRSSフィード",
"rss.updated": "更新されたページのRSSフィード",
"search": "検索",
Expand Down

0 comments on commit d98243d

Please sign in to comment.