Commit Graph
367 Commits
Author SHA1 Message Date
squidfunk 2fb663e1fd fix: text adjacent to image included in link to open image in lightbox (#579)
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-24 16:04:53 +02:00
squidfunk dc32baf98f fix: anchor links preserved in table of content section titles (#578)
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-24 14:16:11 +02:00
squidfunk fdeb0616cd refactor: use identical name for tree- and postprocessor
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-24 13:58:01 +02:00
squidfunk 127648e743 fix: attributes not applied to lightbox images
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-24 13:55:20 +02:00
Timothée Mazzucotelliandsquidfunk 76945357dc feature: installable theme extensions (#511)
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
Co-authored-by: squidfunk <martin.donath@squidfunk.com>
2026-04-24 13:37:59 +02:00
Timothée Mazzucotelli 46b03e5d7c chore: add spacing in markdown example
This also makes the markup for lists compliant with Python-Markdown (required blank line before).

Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2026-04-24 09:25:59 +00:00
Martin Donath 5081de243f chore: release v0.0.36 (#576)
This version adds the missing update of the user interface that should've been included with 0.0.35.

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
v0.0.36
2026-04-23 17:29:36 +02:00
Martin Donath d4d88f8571 fix: update ui to v0.0.15
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 17:26:26 +02:00
Martin Donath ca9743add9 chore: release v0.0.35
## Summary

This version adds native support for [GLightbox], a JavaScript lightbox library to add zoom and gallery features to images. Images can be automatically annotated with the new `glightbox` Markdown extension. Add the following to `zensical.toml`:

``` toml
[project.markdown_extensions.zensical.extensions.glightbox]
```

> [!NOTE]
>
> In order to integrate with configuration in `mkdocs.yml`, where [GLightbox] is implemented as a plugin, a compatibility shim is included, so no re-configuration is necessary if you're already using the plugin. Note that our extension is more efficient and faster than the plugin, as it does not re-parse the entire HTML of each page, but instead uses Python Markdown's native extension API.

### HTML in the table of contents

Additionally, __section titles in the table of contents will now render with HTML markup__, so you can use emojis and other inline features in section titles and have them render correctly in the table of contents. In Material for MkDocs, this functionality was implemented with the `typeset` plugin. Zensical now supports this natively.

### Relative links in raw HTML

Relative links in raw HTML are now correctly resolved. Initially, we carried over the link processing and resolution logic from MkDocs, which does not support relative links in raw HTML to this day. We implemented a Python Markdown postprocessor, to ensure that relative links in raw HTML are handled as well.

[GLightbox]: https://biati-digital.github.io/glightbox/

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
v0.0.35
2026-04-23 17:03:57 +02:00
Martin Donath 676bfe2041 chore: fix mypy linter error
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 16:35:17 +02:00
Martin Donath 64f3f33b72 fix: relative links in raw HTML not correctly resolved (#258)
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 15:16:41 +02:00
Martin Donath 87abb2abef fix: remove img attributes moved to parent in GLightboxExtension
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 14:00:36 +02:00
Martin Donath 5795fc8fe4 Merge pull request #569 from zensical/fix/lightbox-extension
fix: images in raw HTML are double-processed by `GLightboxExtension`
2026-04-23 13:38:24 +02:00
squidfunk f7531afbf6 fix: images in raw HTML are double-processed by GLightboxExtension
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 13:36:05 +02:00
squidfunk 1d8dc83135 fix: ensure None attributes are not added by GlightboxExtension
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 13:35:34 +02:00
squidfunk 7c977a855a refactor: move GLightbox extension to regular Postprocessor
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 13:19:46 +02:00
Martin Donath 5519730eea feature: render section title with markup in table of contents
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 12:14:42 +02:00
Martin Donath 63f02b292e Merge pull request #566 from zensical/feature/glightbox
feature: add support for glightbox
2026-04-23 12:00:54 +02:00
squidfunk db8518dc3a feature: add plugin compatibility shim for glightbox
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 11:58:00 +02:00
squidfunk 5c1f3817df chore: fix import order
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 11:41:00 +02:00
squidfunkandTimothée Mazzucotelli 057da7c2c7 feature: add support for image galleries using glightbox (#290)
Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 11:36:13 +02:00
squidfunk 98a8e73833 docs: unify wording in comments
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-23 11:29:47 +02:00
Timothée Mazzucotelli 773fa76b54 fix: support uv's symlink mode (#557)
Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2026-04-22 11:24:15 +00:00
Timothée Mazzucotelli 1304d4b1ea chore: remove license from wheel root
Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2026-04-21 11:57:18 +00:00
Martin Donath f85eaf42a2 chore: release v0.0.34
## Summary

This version ships support for usage of TOML v1.1.0 in `zensical.toml`, which allows new lines in inline tables. Thus, configuration files can now be made more readable, especially when they contain long lists of items. For example:

__Prior to this version__

``` toml
palette = [
  { scheme = "default", toggle = { icon = "lucide/sun", name = "Switch to dark mode" } },
  { scheme = "slate", toggle = { icon = "lucide/moon", name = "Switch to light mode" } },
]
```

__With this version__

``` toml
palette = [
  {
    scheme = "default",
    toggle = {
      icon = "lucide/sun",
      name = "Switch to dark mode"
    }
  },
  {
    scheme = "slate",
    toggle = {
      icon = "lucide/moon",
      name = "Switch to light mode"
    }
  },
]
```

Additionally, Markdown pages with snippets are now rebuilt when snippets are updated, and an issue with breadcrumbs was fixed when the top-level `index.md` was not at the root of `nav` defined explicitly.

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
v0.0.34
2026-04-21 11:04:03 +02:00
Martin Donath 85fdd54817 Merge pull request #561 from zensical/chore/update-ui
Chore/update UI
2026-04-21 10:52:28 +02:00
squidfunk 2461bd6931 fix: update ui to v0.0.14
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-21 10:51:01 +02:00
squidfunk e69b87b22a chore: add updated uv.lock
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-21 10:50:05 +02:00
Martin Donath eacb402ead chore: calling Markdown::render can lead to race condition in Python
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-18 17:18:47 +02:00
Martin Donath 8f5f584b9a feature: update configuration parser to TOML v1.1.0
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-18 17:17:59 +02:00
Martin Donath 50aa8a5eb8 refactor: update to zrx to v0.0.21
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-18 12:21:23 +02:00
Florian Scheuner 670834fb04 fix: inhibit instant previews on footnote backrefs
Signed-off-by: Florian Scheuner <github@florian-scheuner.de>
2026-04-18 11:43:52 +02:00
Timothée Mazzucotelli adad1faeb2 fix: detect snippets block syntax (#526)
Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2026-04-16 19:46:20 +02:00
Martin Donath f5df5e805b chore: update GitHub Actions workflows
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-16 18:13:03 +02:00
squidfunk c6e63b2b88 chore: fix clippy warning
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-16 18:10:07 +02:00
squidfunk d175d98a42 chore: update GitHub Actions workflows
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-16 18:06:31 +02:00
Timothée Mazzucotelli 111e1ebf95 fix: use a regex to detect snippets (#526)
Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2026-04-15 19:41:39 +00:00
Martin Donath 7251f08f39 chore: update dependencies to latest
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-15 12:23:46 +02:00
Timothée Mazzucotelli d24ba8ac37 fix: always rebuild pages containing snippets (#526)
Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2026-04-15 10:06:09 +00:00
Timothée Mazzucotelli 7076f8d4b3 fix: update README.html links to index.html links when directory URLs aren't set (#531)
Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2026-04-15 09:55:35 +00:00
Timothée Mazzucotelli 3593ecc44d chore: remove unused import
Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2026-04-15 09:49:15 +00:00
Martin Donath 4b9ed877e3 fix: don't consider non-root index.md a homepage, like MkDocs (#476)
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-15 11:33:23 +02:00
dependabot[bot] 25f9ad6b30 fix: bump rand to 0.9.4 to mitigate CVE
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-14 13:11:38 +02:00
Martin Donath 5af6512054 chore: release v0.0.33
## Summary

This version updates our official [Docker image] to be based on Alpine Linux for better compatibility and ease of use. It also adds all recommended Markdown Extensions to the generated `zensical.toml` file when bootstrapping a project with `zensical new`, ensuring a smoother setup experience. Additionally, the [user interface] is updated to [v0.0.13], which includes two bug fixes for anchor links in the table of contents.

[Docker image]: https://hub.docker.com/r/zensical/zensical
[user interface]: https://github.com/zensical/ui
[v0.0.13]: https://github.com/zensical/ui/releases/tag/v0.0.13

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
v0.0.33
2026-04-14 13:00:12 +02:00
Martin Donath bb8a7e5372 fix: update ui to v0.0.13
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-14 12:52:51 +02:00
Alexander Voss bb58c5d5e2 fix: out of date help message (#524)
Signed-off-by: alexvoss <alex@corealization.com>
2026-04-13 18:32:20 -04:00
my1e5 20d94ade33 refactor: update GitHub workflows to Node 24 (#522)
Signed-off-by: my1e5 <10064103+my1e5@users.noreply.github.com>
2026-04-13 16:45:18 +02:00
Martin Donath a694f4b026 chore: update pull_request_template.md
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-13 14:09:10 +02:00
Martin Donath 015919156f chore: add pull_request_template.md
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-13 14:00:33 +02:00
Martin Donath 492456b739 chore: add community guides
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
2026-04-13 13:46:51 +02:00