|
| 1 | +--- |
| 2 | +icon: lucide/rocket |
| 3 | +--- |
| 4 | + |
| 5 | +# Get started |
| 6 | + |
| 7 | +For full documentation visit [zensical.org](https://zensical.org/docs/). |
| 8 | + |
| 9 | +## Commands |
| 10 | + |
| 11 | +- [`zensical new`][new] - Create a new project |
| 12 | +- [`zensical serve`][serve] - Start local web server |
| 13 | +- [`zensical build`][build] - Build your site |
| 14 | + |
| 15 | + [new]: https://zensical.org/docs/usage/new/ |
| 16 | + [serve]: https://zensical.org/docs/usage/preview/ |
| 17 | + [build]: https://zensical.org/docs/usage/build/ |
| 18 | + |
| 19 | +## Examples |
| 20 | + |
| 21 | +### Admonitions |
| 22 | + |
| 23 | +> Go to [documentation](https://zensical.org/docs/authoring/admonitions/) |
| 24 | + |
| 25 | +!!! note |
| 26 | + |
| 27 | + This is a **note** admonition. Use it to provide helpful information. |
| 28 | + |
| 29 | +!!! warning |
| 30 | + |
| 31 | + This is a **warning** admonition. Be careful! |
| 32 | + |
| 33 | +### Details |
| 34 | + |
| 35 | +> Go to |
| 36 | +> [documentation](https://zensical.org/docs/authoring/admonitions/#collapsible-blocks) |
| 37 | + |
| 38 | +??? info "Click to expand for more info" |
| 39 | + |
| 40 | + This content is hidden until you click to expand it. |
| 41 | + Great for FAQs or long explanations. |
| 42 | + |
| 43 | +## Code Blocks |
| 44 | + |
| 45 | +> Go to [documentation](https://zensical.org/docs/authoring/code-blocks/) |
| 46 | + |
| 47 | +```python hl_lines="2" title="Code blocks" |
| 48 | +def greet(name): |
| 49 | + print(f"Hello, {name}!") # (1)! |
| 50 | + |
| 51 | + |
| 52 | +greet("Python") |
| 53 | +``` |
| 54 | + |
| 55 | +1. > Go to |
| 56 | + > [documentation](https://zensical.org/docs/authoring/code-blocks/#code-annotations) |
| 57 | + |
| 58 | + Code annotations allow to attach notes to lines of code. |
| 59 | + |
| 60 | +Code can also be highlighted inline: `#!python print("Hello, Python!")`. |
| 61 | + |
| 62 | +## Content tabs |
| 63 | + |
| 64 | +> Go to [documentation](https://zensical.org/docs/authoring/content-tabs/) |
| 65 | + |
| 66 | +=== "Python" |
| 67 | + |
| 68 | + ``` python |
| 69 | + print("Hello from Python!") |
| 70 | + ``` |
| 71 | + |
| 72 | +=== "Rust" |
| 73 | + |
| 74 | + ``` rs |
| 75 | + println!("Hello from Rust!"); |
| 76 | + ``` |
| 77 | + |
| 78 | +## Diagrams |
| 79 | + |
| 80 | +> Go to [documentation](https://zensical.org/docs/authoring/diagrams/) |
| 81 | + |
| 82 | +```mermaid |
| 83 | +graph LR |
| 84 | + A[Start] --> B{Error?}; |
| 85 | + B -->|Yes| C[Hmm...]; |
| 86 | + C --> D[Debug]; |
| 87 | + D --> B; |
| 88 | + B ---->|No| E[Yay!]; |
| 89 | +``` |
| 90 | + |
| 91 | +## Footnotes |
| 92 | + |
| 93 | +> Go to [documentation](https://zensical.org/docs/authoring/footnotes/) |
| 94 | + |
| 95 | +Here's a sentence with a footnote.[^1] |
| 96 | + |
| 97 | +Hover it, to see a tooltip. |
| 98 | + |
| 99 | +[^1]: This is the footnote. |
| 100 | + |
| 101 | +## Formatting |
| 102 | + |
| 103 | +> Go to [documentation](https://zensical.org/docs/authoring/formatting/) |
| 104 | + |
| 105 | +- ==This was marked (highlight)== |
| 106 | +- ^^This was inserted (underline)^^ |
| 107 | +- ~~This was deleted (strikethrough)~~ |
| 108 | +- H~2~O |
| 109 | +- A^T^A |
| 110 | +- ++ctrl+alt+del++ |
| 111 | + |
| 112 | +## Icons, Emojis |
| 113 | + |
| 114 | +> Go to [documentation](https://zensical.org/docs/authoring/icons-emojis/) |
| 115 | + |
| 116 | +- :sparkles: `:sparkles:` |
| 117 | +- :rocket: `:rocket:` |
| 118 | +- :tada: `:tada:` |
| 119 | +- :memo: `:memo:` |
| 120 | +- :eyes: `:eyes:` |
| 121 | + |
| 122 | +## Maths |
| 123 | + |
| 124 | +> Go to [documentation](https://zensical.org/docs/authoring/math/) |
| 125 | + |
| 126 | +$$ |
| 127 | +\cos x=\sum_{k=0}^{\infty}\frac{(-1)^k}{(2k)!}x^{2k} |
| 128 | +$$ |
| 129 | + |
| 130 | +!!! warning "Needs configuration" |
| 131 | + |
| 132 | + Note that MathJax is included via a `script` tag on this page and is not configured in the generated default configuration to avoid including it in a pages that do not need it. See the documentation for details on how to configure it on all your pages if they are more Maths-heavy than these simple starter pages. |
| 133 | + |
| 134 | +<script id="MathJax-script" async src="https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js"></script> |
| 135 | +<script> |
| 136 | + window.MathJax = { |
| 137 | + tex: { |
| 138 | + inlineMath: [["\\(", "\\)"]], |
| 139 | + displayMath: [["\\[", "\\]"]], |
| 140 | + processEscapes: true, |
| 141 | + processEnvironments: true |
| 142 | + }, |
| 143 | + options: { |
| 144 | + ignoreHtmlClass: ".*|", |
| 145 | + processHtmlClass: "arithmatex" |
| 146 | + } |
| 147 | + }; |
| 148 | +</script> |
| 149 | + |
| 150 | +## Task Lists |
| 151 | + |
| 152 | +> Go to |
| 153 | +> [documentation](https://zensical.org/docs/authoring/lists/#using-task-lists) |
| 154 | + |
| 155 | +- [x] Install Zensical |
| 156 | +- [x] Configure `zensical.toml` |
| 157 | +- [x] Write amazing documentation |
| 158 | +- [ ] Deploy anywhere |
| 159 | + |
| 160 | +## Tooltips |
| 161 | + |
| 162 | +> Go to [documentation](https://zensical.org/docs/authoring/tooltips/) |
| 163 | + |
| 164 | +[Hover me][example] |
| 165 | + |
| 166 | +[example]: https://example.com "I'm a tooltip!" |
0 commit comments