Commit Graph

172 Commits

Author SHA1 Message Date
460d27814a
fix: generate unique properties anchor (#733)
BREAKING CHANGE: The way anchors are generated for properties of a propertylist has changed to be unique, even if the shortcode is used multiple times on a page.
2023-10-28 22:48:31 +02:00
1266dd4287
fix condition to determine next-prev entry for filetree (#724) 2023-10-20 10:23:38 +02:00
712be2e2a7
feat: add next-prev navigation for filetree menu (#723) 2023-10-20 09:39:38 +02:00
ce62f7bc44
feat: add anchors to propertylist shortcode (#697) 2023-08-31 23:27:11 +02:00
3bd1d7cd6b
fix: remove htmlUnescape from expand shortcode (#667) 2023-07-12 08:37:47 +02:00
dc3ede1b72
fix: utilize hugo.WorkingDir for a reliable edit page link (#665)
BREAKING CHANGE: The `Edit page` uses the `hugo.WorkingDir` function of Hugo, which was introduced in v0.112.0. Due to this change, the minimum Hugo version for the theme has been raised accordingly.
2023-07-11 21:00:27 +02:00
23128a3dfa
chore: normalize mixed casing of code block lang and theme parameters (#647) 2023-06-22 09:45:54 +02:00
Nicolas Goudry
4ea6acc9d4
feat: add support for custom heading css class (#608) 2023-04-17 20:51:01 +02:00
64f3d0ea7d
feat: add progress bar shortcode (#594) 2023-03-04 15:45:26 +01:00
c420c637eb
fix: issues with nested columns shortcode (#586) 2023-02-17 09:29:39 +01:00
882aa9e560
fix: fix rendering of nested shortcodes in tabs (#584) 2023-02-16 09:02:52 +01:00
b6047754a1
remove whitespace 2023-02-03 23:02:16 +01:00
8c84a8d028
chore: fix img shortcode formatting (#564) 2022-12-21 15:53:02 +01:00
5d4370b617
feat: add basic svg support to the img shortcode (#554) 2022-12-11 15:05:30 +01:00
fb905bd6c1
feat: add optional page description to search (#550)
Add optional page description to the search result list. The feature can be enabled by `geekdocSearchShowDescription=true` and is disabled by default. The max length of the description is set to `55` and will be truncated automatically if the limit is exceeded.
2022-12-07 08:57:41 +01:00
2f752b32ad
fix: add missing navigation for pagination (#540) 2022-11-16 11:06:35 +01:00
54b7d1388f
use .Page.Site instead of site to access data assets (#541) 2022-11-16 10:41:02 +01:00
74e4d13673
fix: fix access to data assets in render hook (#539)
Site variables in markdown render hooks or partials need to be accessed
via global site function or .Page object.
2022-11-16 09:36:44 +01:00
e9ece03388
feat: add option to enable or disable the dark mode toggle button (#529) 2022-11-02 15:48:45 +01:00
128a55e974
feat: add option to sort items in properties shortcode (#527)
BREAKING CHANGE: To enable sorting of elements in the `properties` shortcode, it was necessary to change the structure of the properties file. Due to this change, the `properties` object now requires a list of maps instead of a map. A [sample file](https://raw.githubusercontent.com/thegeeklab/hugo-geekdoc/main/exampleSite/data/properties/demo.yaml) can be found in the repository.
2022-11-02 13:01:20 +01:00
c1d8443eed
chore: bump hugo in ci to 0.104.3 (#518) 2022-10-14 12:21:12 +02:00
b9876a8640
feat: add origin size to image shortcode (#490) 2022-09-02 10:58:44 +02:00
12c81554ac
feat: support mermaid codeblocks (#485) 2022-08-29 21:52:44 +02:00
1a9fe22d64
feat: add option anchor the the bundle menu (#468) 2022-08-04 21:57:02 +02:00
b280889260
fix: fix wrong class and parameter name (#461) 2022-07-17 20:37:19 +02:00
3a26b6ed1b
feat: add profile size to img shortcode (#456) 2022-07-11 20:46:07 +02:00
66d456f552
feat: add column size attribute (#455) 2022-07-11 20:46:01 +02:00
aa15025ba0
fix button class handling (#444) 2022-06-27 09:14:24 +02:00
580ea885e3
fix: fix broken rendering of nested buttons (#443) 2022-06-24 10:54:16 +02:00
7195431d8c
fix: improve keyboard accessability for anchors and code blocks (#434) 2022-06-10 21:44:08 +02:00
6545ceb24d
feat: add option geekdocDarkModeCode to enforce dark codeblocks (#429) 2022-05-31 14:14:01 +02:00
33ea5c37a9
feat: render popertylist description as markdown (#426) 2022-05-30 21:40:09 +02:00
1ab1620c7b
fix: allow loading property files from nested folder (#420) 2022-05-26 17:07:38 +02:00
brett ohland
61ef82104e
fix: remove table formatting from github gists (#416)
* fix: fix CSS issue with gist embeds

* Addressing PR comments

* remove newline

* simplify selector and add example

* fix spellcheck

* fix markdownlint

Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2022-05-24 00:37:06 +02:00
6b464202c9
fix: fix formatting issue while using nested toc shortcodes (#415) 2022-05-22 22:07:35 +02:00
6ab98d1da3
feat: add propertylist shortcode (#414) 2022-05-22 22:00:37 +02:00
f576e4ca0d
fix: fix extra space after katex shortcode (#406) 2022-05-17 14:45:25 +02:00
6d82d6f851
fix: fix rendering issue for untranslated pages in bundle menu (#389) 2022-04-28 11:38:28 +02:00
0a5af2e8da
fix: fix nested hint rendering issues (#391) 2022-04-28 11:26:45 +02:00
f6966b8513
feat: add optional hint/admonition icons (#383)
BREAKING CHANGE: The types of the `hint` short code have been renamed to `[note|tip|important|caution|warning]` the old types `[info|ok|warning|danger]` are still working, but should be considered as deprecated.

BREAKING CHANGE: The `hint` short code is using named arguments now. You have to change, e.g. `{{< hint warning >}}` to `{{< hint type=warning >}}`.
2022-04-23 15:14:42 +02:00
b104d6ac70
refactor: rename class .icon to .gdoc-icon (#379)
BREAKING CHANGE: The class `.icon` was renamed to `.gdoc-icon` to avoid conflicts.
2022-04-18 20:33:23 +02:00
9d61f9ddf9
fix: avoid to apply css class katex twice (#357) 2022-02-26 16:28:10 +01:00
a4d1f51b1b
fix template auto-formatting 2022-02-22 21:45:14 +01:00
2ecb63e7b2
fix: fix isPage detection for metatdata tags (#348) 2022-02-18 14:03:19 +01:00
2dbe3a4a5f
fix: add schema.org metadata to docs sections (#347) 2022-02-17 20:44:08 +01:00
7df6057ca0
feat: add new option geekdocContentLicense (#346) 2022-02-16 11:53:13 +01:00
95c38f6193
refactor: cleanup and unify the featured image metadata integration (#345) 2022-02-15 22:27:43 +01:00
055ab6c4e3
fix: fallback to 'content' if no contentDir parameter is set (#344) 2022-02-15 21:14:05 +01:00
c9f809ca19
fix: fix edit page link and auto-detect contentDir (#343)
BREAKING CHANGE: With support of the multilingual mode, we broke the `edit page` links, as the content directory was statically hard-coded into the `GeekdocEditPath` parameter. To get the correct content directory, regardless of the language or a disabled multilingual mode, we now use Hugo's built-in `.Site.Params.contentDir` parameter. Therefor, you have to remove the hard-coded `/content` part from the `geekdocEditPath` parameter in the configuration of your project.
2022-02-15 20:58:35 +01:00
4e93b70b7b
fix: revert fix for broken Edit Page links (#339) (#342) 2022-02-14 23:23:06 +01:00