Commit Graph

6562 Commits

Author SHA1 Message Date
Ayussh Verma 047d56bf50
Documentation (#8144) 2025-04-02 00:03:30 +02:00
squidfunk 7661f07752
Prepare 9.6.11 release 2025-04-01 09:03:31 +02:00
squidfunk bf1fe5a072
Upgraded dependencies 2025-04-01 08:58:39 +02:00
blumbra63 3e9bb531fb
Bumped required version of jinja2 to ~=3.1 (#8132)
Commit fb0c27c382 switched to using the
jinja2 'items' filter. That filter, however, was not added until jinja
version 3.1.0 [1]. Therefore, bump the required version to prevent
breakage.

On systems without an outdated jinja version, an error similar to the
following will occur when running 'mkdocs build':

Traceback (most recent call last):
  File "/tmp/mkdocsbug/venv/bin/mkdocs", line 8, in <module>
    sys.exit(cli())
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/mkdocs/__main__.py", line 288, in build_command
    build.build(cfg, dirty=not clean)
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/mkdocs/commands/build.py", line 328, in build
    _build_theme_template(template, env, files, config, nav)
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/mkdocs/commands/build.py", line 103, in _build_theme_template
    output = _build_template(template_name, template, files, config, nav)
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/mkdocs/commands/build.py", line 83, in _build_template
    output = template.render(context)
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/jinja2/environment.py", line 925, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/material/templates/404.html", line 4, in <module>
    {% extends "main.html" %}
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/material/templates/main.html", line 4, in <module>
    {% extends "base.html" %}
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/jinja2/environment.py", line 925, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/tmp/mkdocsbug/venv/lib/python3.10/site-packages/material/templates/base.html", line 80, in <module>
    <meta {% for key, value in tag | items %} {{ key }}="{{value}}" {% endfor %}>
jinja2.exceptions.TemplateAssertionError: No filter named 'items'.

[1]: https://jinja.palletsprojects.com/en/stable/changes/#version-3-1-0

Co-authored-by: Brandon Lumbra <brandon.lumbra@sense.com>
2025-04-01 08:57:10 +02:00
squidfunk 64635ba5c4
Fixed search not honoring enabled setting in templates 2025-03-31 19:16:46 +02:00
squidfunk 5d308158a3
Updated README 2025-03-31 15:29:13 +02:00
squidfunk 8438fed40a
Updated premium sponsors 2025-03-31 14:31:06 +02:00
Reinhard Koehn 2f4f3844ad
Updated Alpine base image in Dockerfile 2025-03-31 12:51:28 +02:00
squidfunk 7bd6b9225c
Prepare 9.6.10 release 2025-03-30 12:01:50 +02:00
squidfunk dc7d75e432
Updated dependencies 2025-03-30 11:53:57 +02:00
squidfunk c18630fc88 Removed usage of circular members in nav_item partial 2025-03-30 11:51:20 +02:00
squidfunk fb0c27c382 Replaced items call with use of filter 2025-03-30 11:51:20 +02:00
squidfunk ec38e30daf Ensured compatibility with minijinja (Rust) 2025-03-30 11:51:20 +02:00
squidfunk e66107eb86
Documentation 2025-03-26 11:59:48 +01:00
squidfunk 646c7ab30d
Prepare 9.6.9 release 2025-03-17 10:27:25 +01:00
Kamil Krzyśków 27d57ea184
Updated twemoji cdn for icon search index (#8093)
Updated twemoji docs
2025-03-15 10:11:53 +01:00
Kamil Krzyśków 091865798f
Fixed `build:all` output on Windows (#8089)
* Fixed handling for paths with windows separator during build

* Fixed icon index order on windows during build

* Updated icon search index

Removed obsolete icon search index
2025-03-14 20:19:21 +01:00
squidfunk 0e75aef9ea
Updated Serbo-Croatian translations
Co-authored-by: nelebadnjak <6325682+nelebadnjak@users.noreply.github.com>
2025-03-14 10:01:50 +01:00
Adrian Föder 52b584f9cb
Added urlencode to fix # in custom icons (#8087)
When using custom SVGs that contained
characters breaking a URL, like a hash #
sign that is consiered a URL fragment,
the rendering broke. This adds a jinja
urlencode filter to the output.

Fixes #8086
2025-03-14 10:00:35 +01:00
squidfunk 3296cdf203 Fixed sidebar on Firefox mobile 2025-03-13 13:44:19 +01:00
squidfunk 502ef2f788
Updated Insiders changelog 2025-03-13 11:35:59 +01:00
squidfunk a43d2235b1
Prepare 9.6.8 release 2025-03-13 11:31:19 +01:00
squidfunk 76a66b7597
Fixed error in translations partial 2025-03-13 11:22:23 +01:00
squidfunk 1c5e112549
Integrated Welsh translations 2025-03-13 11:17:18 +01:00
Gavin Morrison c8d26549ce
Added translations for Welsh 🏴󠁧󠁢󠁷󠁬󠁳󠁿 (#8081)
* Create cy.html

* Updated whitespace in cy.html to align with other translations
2025-03-13 11:10:44 +01:00
Martin Donath 742150dec1
Revert "Fixed sidebar on Firefox mobile (#8083)" (#8084)
This reverts commit a303a01c58.
2025-03-13 11:07:36 +01:00
Martin Donath a303a01c58
Fixed sidebar on Firefox mobile (#8083) 2025-03-13 11:06:51 +01:00
squidfunk 74a7835b35
Fixed privacy plugin crashing on non-existent file 2025-03-12 17:36:46 +01:00
squidfunk 00b0b5b592
Updated README 2025-03-12 15:00:44 +01:00
squidfunk 5b9c8759e1
WIP 2025-03-12 14:59:43 +01:00
squidfunk 9e6c0674d6
Updated changelog 2025-03-05 19:11:18 +07:00
squidfunk 252167d229
Added distribution files 2025-03-05 08:23:54 +07:00
sandkre 2b7b96ec00
Fixed error in Norwegian translations
Fixed typo
2025-03-05 08:23:22 +07:00
Niclas Heinz 3b6ae8e1e1
Documentation (#8058)
* docs(publish your site): Add caching for gitlab pipeline

* docs(publish your site): Add comments
2025-03-04 07:23:21 +07:00
squidfunk 85ac2144f5
Prepare 9.6.7 release 2025-03-03 08:18:59 +07:00
Isaac Muse e0b0113574
Fixed backref import (#8057) 2025-03-03 08:14:16 +07:00
squidfunk 6a496186ff
Added distribution files 2025-03-02 16:36:56 +07:00
Pete Stenger 27ba95652a
Fixed unescaped of quotes in ARIA labels (#8053) 2025-03-02 16:35:08 +07:00
squidfunk 922cb7cea2
Prepare 9.6.6 release 2025-03-01 13:27:51 +07:00
squidfunk 523922b383
Fixed privacy plugin not replacing occurrences 2025-03-01 13:22:03 +07:00
squidfunk 3bd81bdc66
Updated dependencies 2025-03-01 12:18:02 +07:00
squidfunk b6e40de116
Updated dependencies 2025-03-01 12:14:42 +07:00
Isaac Muse 3a7cc2a701
Lowered backref version to support Py3.8 (#8037) 2025-02-27 08:28:34 +07:00
Isaac Muse ab1511074c
Replaced regex with backrefs package in search plugin (#8034)
Use Re in all places in the search plugin except where Unicode
properties are desired (checking for Chinese chars). Use Backrefs'
`bre` to check for Unicode properties. To minimize any differences,
explicitly use `script` as Backrefs uses `script_extensions` (or `scx`)
by default with `Is*` properties.
2025-02-26 10:57:51 +07:00
squidfunk 37162a57cd
Replaced regex with re in info plugin 2025-02-26 10:10:41 +07:00
squidfunk 396c493f47
Documentation 2025-02-20 08:39:57 +07:00
squidfunk 779c54ef47
Documentation 2025-02-20 08:34:42 +07:00
squidfunk 7445b2aa60
Prepare 9.6.5 release 2025-02-20 08:22:18 +07:00
squidfunk bdad6ec83f
Formatting 2025-02-20 08:17:05 +07:00
Lucas Cimon 2e837fa4cf
Fixed privacy plugin crashing on HTTP errors 2025-02-20 08:09:33 +07:00