Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/authoring/admonitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.admonition]
[project.markdown_extensions.pymdownx.details]
[project.markdown_extensions.pymdownx.superfences]
[project.markdown_extensions]
admonition = {}
pymdownx.details = {}
pymdownx.superfences = {}
```

=== "`mkdocs.yml`"
Expand Down
3 changes: 2 additions & 1 deletion docs/authoring/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ following lines to your configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.attr_list]
[project.markdown_extensions]
attr_list = {}
```

=== "`mkdocs.yml`"
Expand Down
16 changes: 9 additions & 7 deletions docs/authoring/code-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ following lines to your configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.pymdownx.highlight]
anchor_linenums = true
line_spans = "__span"
pygments_lang_class = true
[project.markdown_extensions.pymdownx.inlinehilite]
[project.markdown_extensions.pymdownx.snippets]
[project.markdown_extensions.pymdownx.superfences]
[project.markdown_extensions.pymdownx]
highlight = {
anchor_linenums = true,
line_spans = "__span",
pygments_lang_class = true,
}
inlinehilite = {}
snippets = {}
superfences = {}
```

=== "`mkdocs.yml`"
Expand Down
14 changes: 8 additions & 6 deletions docs/authoring/content-tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ following lines to your configuration file:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.pymdownx.superfences]
[project.markdown_extensions.pymdownx.tabbed]
alternate_style = true
[project.markdown_extensions.pymdownx]
superfences = {}
tabbed = { alternate_style = true }
```

=== "`mkdocs.yml`"
Expand Down Expand Up @@ -69,9 +69,11 @@ function with the following lines:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.pymdownx.tabbed.slugify]
object = "pymdownx.slugs.slugify"
kwds = { case = "lower" }
[project.markdown_extensions.pymdownx]
tabbed.slugify = {
object = "pymdownx.slugs.slugify",
kwds = { case = "lower" },
}
```

=== "`mkdocs.yml`"
Expand Down
3 changes: 2 additions & 1 deletion docs/authoring/data-tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ configuration file:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.tables]
[project.markdown_extensions]
tables = {}
```

=== "`mkdocs.yml`"
Expand Down
14 changes: 10 additions & 4 deletions docs/authoring/diagrams.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ will automatically initialize the JavaScript runtime when a page includes a
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.pymdownx.superfences]
custom_fences = [
{ name = "mermaid", class = "mermaid", format = "pymdownx.superfences.fence_code_format" }
]
[project.markdown_extensions.pymdownx]
superfences = {
custom_fences = [
{
name = "mermaid",
class = "mermaid",
format = "pymdownx.superfences.fence_code_format",
},
],
}
```

=== "`mkdocs.yml`"
Expand Down
3 changes: 2 additions & 1 deletion docs/authoring/footnotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ your configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.footnotes]
[project.markdown_extensions]
footnotes = {}
```

=== "`mkdocs.yml`"
Expand Down
9 changes: 5 additions & 4 deletions docs/authoring/formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.pymdownx.caret]
[project.markdown_extensions.pymdownx.keys]
[project.markdown_extensions.pymdownx.mark]
[project.markdown_extensions.pymdownx.tilde]
[project.markdown_extensions.pymdownx]
caret = {}
keys = {}
mark = {}
tilde = {}
```

=== "`mkdocs.yml`"
Expand Down
5 changes: 3 additions & 2 deletions docs/authoring/grids.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ to your configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.attr_list]
[project.markdown_extensions.md_in_html]
[project.markdown_extensions]
attr_list = {}
md_in_html = {}
```

=== "`mkdocs.yml`"
Expand Down
5 changes: 3 additions & 2 deletions docs/authoring/icons-emojis.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ shortcodes. Add the following lines to your configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.attr_list]
[project.markdown_extensions.pymdownx.emoji]
[project.markdown_extensions]
attr_list = {}
pymdownx.emoji = {}
```

=== "`mkdocs.yml`"
Expand Down
7 changes: 4 additions & 3 deletions docs/authoring/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ following lines to your configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.attr_list]
[project.markdown_extensions.md_in_html]
[project.markdown_extensions.pymdownx.blocks.caption]
[project.markdown_extensions]
attr_list = {}
md_in_html = {}
pymdownx.blocks.caption = {}
```

=== "`mkdocs.yml`"
Expand Down
6 changes: 3 additions & 3 deletions docs/authoring/lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ your configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.def_list]
[project.markdown_extensions.pymdownx.tasklist]
custom_checkbox = true
[project.markdown_extensions]
def_list = {}
pymdownx.tasklist = { custom_checkbox = true }
```

=== "`mkdocs.yml`"
Expand Down
9 changes: 5 additions & 4 deletions docs/authoring/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ to your configuration:
"javascripts/mathjax.js",
"https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js"
]
[project.markdown_extensions.pymdownx.arithmatex]
generic = true

[project.markdown_extensions.pymdownx]
arithmatex = { generic = true }
```

=== "`mkdocs.yml`"
Expand Down Expand Up @@ -143,8 +144,8 @@ supports a subset of LaTeX syntax and can render math to HTML and SVG. To use
"https://unpkg.com/katex@0/dist/katex.min.css"
]

[project.markdown_extensions.pymdownx.arithmatex]
generic = true
[project.markdown_extensions.pymdownx]
arithmatex = { generic = true }
```

=== "`mkdocs.yml`"
Expand Down
11 changes: 6 additions & 5 deletions docs/authoring/tooltips.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ following line to your configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.abbr]
[project.markdown_extensions.attr_list]
[project.markdown_extensions.pymdownx.snippets]
[project.markdown_extensions]
abbr = {}
attr_list = {}
pymdownx.snippets = {}
```

=== "`mkdocs.yml`"
Expand Down Expand Up @@ -168,8 +169,8 @@ pages with the following configuration:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.pymdownx.snippets]
auto_append = ["includes/abbreviations.md"]
[project.markdown_extensions.pymdownx]
snippets = { auto_append = ["includes/abbreviations.md"] }
```

=== "`mkdocs.yml`"
Expand Down
2 changes: 1 addition & 1 deletion docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ configuration:

=== "`zensical.toml`"

```toml
``` toml
[project.theme]
name = "my_theme"
```
Expand Down
76 changes: 40 additions & 36 deletions docs/setup/extensions/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,42 +111,46 @@ extensions are enabled by default:
=== "`zensical.toml`"

``` toml
[project.markdown_extensions.abbr]
[project.markdown_extensions.admonition]
[project.markdown_extensions.attr_list]
[project.markdown_extensions.def_list]
[project.markdown_extensions.footnotes]
[project.markdown_extensions.md_in_html]
[project.markdown_extensions.toc]
permalink = true
[project.markdown_extensions.pymdownx.arithmatex]
generic = true
[project.markdown_extensions.pymdownx.betterem]
[project.markdown_extensions.pymdownx.caret]
[project.markdown_extensions.pymdownx.details]
[project.markdown_extensions.pymdownx.emoji]
emoji_generator = "zensical.extensions.emoji.to_svg"
emoji_index = "zensical.extensions.emoji.twemoji"
[project.markdown_extensions.pymdownx.highlight]
anchor_linenums = true
line_spans = "__span"
pygments_lang_class = true
[project.markdown_extensions.pymdownx.inlinehilite]
[project.markdown_extensions.pymdownx.keys]
[project.markdown_extensions.pymdownx.magiclink]
[project.markdown_extensions.pymdownx.mark]
[project.markdown_extensions.pymdownx.smartsymbols]
[project.markdown_extensions.pymdownx.superfences]
custom_fences = [
{ name = "mermaid", class = "mermaid", format = "pymdownx.superfences.fence_code_format" }
]
[project.markdown_extensions.pymdownx.tabbed]
alternate_style = true
combine_header_slug = true
[project.markdown_extensions.pymdownx.tasklist]
custom_checkbox = true
[project.markdown_extensions.pymdownx.tilde]

[project.markdown_extensions]
abbr = {}
admonition = {}
attr_list = {}
def_list = {}
footnotes = {}
md_in_html = {}
toc = { permalink = true }

[project.markdown_extensions.pymdownx]
arithmatex = { generic = true }
betterem = {}
caret = {}
details = {}
emoji = {
emoji_generator = "zensical.extensions.emoji.to_svg",
emoji_index = "zensical.extensions.emoji.twemoji",
}
highlight = {
anchor_linenums = true,
line_spans = "__span",
pygments_lang_class = true,
}
inlinehilite = {}
keys = {}
magiclink = {}
mark = {}
smartsymbols = {}
superfences = {
custom_fences = [
{
name = "mermaid",
class = "mermaid",
format = "pymdownx.superfences.fence_code_format",
},
],
}
tabbed = { alternate_style = true, combine_header_slug = true }
tasklist = { custom_checkbox = true }
tilde = {}
```

=== "`mkdocs.yml`"
Expand Down
Loading