From 2d4c8e8b4310d9ff06519623361e4fc4effcf1ed Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 2 Nov 2025 20:56:47 +0100 Subject: [PATCH] workspace:refactor - improve new project files --- python/zensical/bootstrap/docs/index.md | 102 +++++++++--------- python/zensical/bootstrap/docs/markdown.md | 115 +++++++++++++++------ python/zensical/bootstrap/zensical.toml | 90 ++++++++-------- 3 files changed, 172 insertions(+), 135 deletions(-) diff --git a/python/zensical/bootstrap/docs/index.md b/python/zensical/bootstrap/docs/index.md index e61fc8e..3b76a8a 100644 --- a/python/zensical/bootstrap/docs/index.md +++ b/python/zensical/bootstrap/docs/index.md @@ -1,82 +1,81 @@ --- -icon: lucide/hand +icon: lucide/rocket --- -# Welcome to Zensical! +# Get started -With Zensical, you can author professional documentation with minimal -fuss thanks to the *batteries included* approach. +For full documentation visit [zensical.org](https://zensical.org/docs/). -These generated pages serve to showcase some of what you can do with Zensical -and to show you examples of using the various elements available to you as an -author. Links to the relevant documentation let you explore further. +## Commands -The configuration file generated by `zensical new` can serve as a basis for your -own configuration. It contains plenty comments and links to the documentation. +* [`zensical new`][new] - Create a new project +* [`zensical serve`][serve] - Start local web server +* [`zensical build`][build] - Build your site -## Admonitions + [new]: https://zensical.org/docs/usage/new/ + [serve]: https://zensical.org/docs/usage/preview/ + [build]: https://zensical.org/docs/usage/build/ + +## Examples + +### Admonitions + +> Go to [documentation](https://zensical.org/docs/authoring/admonitions/) !!! note + This is a **note** admonition. Use it to provide helpful information. !!! warning + This is a **warning** admonition. Be careful! -[Documentation ->](https://zensical.org/docs/authoring/admonitions) +### Details -### Collapsible Sections (Details) +> Go to [documentation](https://zensical.org/docs/authoring/admonitions/#collapsible-blocks) ??? info "Click to expand for more info" + This content is hidden until you click to expand it. Great for FAQs or long explanations. -[Documentation ->](https://zensical.org/docs/authoring/admonitions/#collapsible-blocks) - -## Buttons - -[Subscribe to our newsletter](#buttons){ .md-button .md-button--primary } - -[Documentation ->](https://zensical.org/docs/authoring/buttons) - - ## Code Blocks -Zensical uses [Pygments] to highlight code blocks. +> Go to [documentation](https://zensical.org/docs/authoring/code-blocks/) -[Pygments]: https://pygments.org/ - -```python linenums="1" hl_lines="2" title="Code blocks" +``` python hl_lines="2" title="Code blocks" def greet(name): print(f"Hello, {name}!") # (1)! -greet("Zensical") +greet("Python") ``` -1. :man_raising_hand: I'm a code annotation! I can contain `code`, __formatted - text__, images, ... basically anything that can be written in Markdown. +1. > Go to [documentation](https://zensical.org/docs/authoring/code-blocks/#code-annotations) -Code can also be highlighted inline: `#!python print("Hello from Python!")`. + Code annotations allow to attach notes to lines of code. -[Documentation ->](http://localhost:8000/docs/authoring/code-blocks) +Code can also be highlighted inline: `#!python print("Hello, Python!")`. ## Content tabs +> Go to [documentation](https://zensical.org/docs/authoring/content-tabs/) + === "Python" - ```python + ``` python print("Hello from Python!") ``` -=== "JavaScript" +=== "Rust" - ```javascript - console.log("Hello from JavaScript!"); + ``` rs + println!("Hello from Rust!"); ``` -[Documentation ->](https:///docs/authoring/content-tabs/) - ## Diagrams +> Go to [documentation](https://zensical.org/docs/authoring/diagrams/) + ``` mermaid graph LR A[Start] --> B{Error?}; @@ -86,19 +85,21 @@ graph LR B ---->|No| E[Yay!]; ``` -[Read the documentation](https://zensical.org/docs/authoring/diagrams) - ## Footnotes -Here's a sentence with a footnote.[^1] Footnote tooltips are turned on, -so you can just hover over the footnote to see it. +> Go to [documentation](https://zensical.org/docs/authoring/footnotes/) + +Here's a sentence with a footnote.[^1] + +Hover it, to see a tooltip. [^1]: This is the footnote. -[Documentation ->](https://zensical.org/docs/authoring/footnotes) ## Formatting +> Go to [documentation](https://zensical.org/docs/authoring/formatting/) + - ==This was marked (highlight)== - ^^This was inserted (underline)^^ - ~~This was deleted (strikethrough)~~ @@ -106,11 +107,9 @@ so you can just hover over the footnote to see it. - A^T^A - ++ctrl+alt+del++ -[Documentation ->](https://zensical.org/docs/authoring/formatting) - ## Icons, Emojis -Zenscial supports GitHub-style emoji shortcodes: +> Go to [documentation](https://zensical.org/docs/authoring/icons-emojis/) * :sparkles: `:sparkles:` * :rocket: `:rocket:` @@ -118,12 +117,9 @@ Zenscial supports GitHub-style emoji shortcodes: * :memo: `:memo:` * :eyes: `:eyes:` -[Documentation ->](https://zensical.org/docs/authoring/icons-emojis/) - ## Maths -Mathematical formulae can be written using LaTeX syntax and rendered using -MathJax. +> Go to [documentation](https://zensical.org/docs/authoring/math/) $$ \cos x=\sum_{k=0}^{\infty}\frac{(-1)^k}{(2k)!}x^{2k} @@ -136,8 +132,6 @@ $$ to configure it on all your pages if they are more Maths-heavy than these simple starter pages. -[Read the documentation](https://zensical.org/docs/authoring/math) -