-
Notifications
You must be signed in to change notification settings - Fork 70
Add Zensical documentation option #738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+621
−14
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b16e02a
Add Zensical
VeckoTheGecko e90f095
Update Zensical config
VeckoTheGecko 8256cf0
RTD fix indentation
VeckoTheGecko 1c78714
Fix Zensical RTD build
VeckoTheGecko c658e94
Update ordering
VeckoTheGecko 8fca27f
ci: add zensical
henryiii 4a3ec06
Formatting
VeckoTheGecko 02ed717
Formatting
VeckoTheGecko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
166 changes: 166 additions & 0 deletions
166
...kiecutter.project_name}}/docs/{% if cookiecutter.docs == 'zensical' %}index.md{% endif %}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,166 @@ | ||
| --- | ||
| icon: lucide/rocket | ||
| --- | ||
|
|
||
| # Get started | ||
|
|
||
| For full documentation visit [zensical.org](https://zensical.org/docs/). | ||
|
|
||
| ## Commands | ||
|
|
||
| - [`zensical new`][new] - Create a new project | ||
| - [`zensical serve`][serve] - Start local web server | ||
| - [`zensical build`][build] - Build your site | ||
|
|
||
| [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! | ||
|
|
||
| ### 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. | ||
|
|
||
| ## Code Blocks | ||
|
|
||
| > Go to [documentation](https://zensical.org/docs/authoring/code-blocks/) | ||
|
|
||
| ```python hl_lines="2" title="Code blocks" | ||
| def greet(name): | ||
| print(f"Hello, {name}!") # (1)! | ||
|
|
||
|
|
||
| greet("Python") | ||
| ``` | ||
|
|
||
| 1. > Go to | ||
| > [documentation](https://zensical.org/docs/authoring/code-blocks/#code-annotations) | ||
|
|
||
| Code annotations allow to attach notes to lines of code. | ||
|
|
||
| Code can also be highlighted inline: `#!python print("Hello, Python!")`. | ||
|
|
||
| ## Content tabs | ||
|
|
||
| > Go to [documentation](https://zensical.org/docs/authoring/content-tabs/) | ||
|
|
||
| === "Python" | ||
|
|
||
| ``` python | ||
| print("Hello from Python!") | ||
| ``` | ||
|
|
||
| === "Rust" | ||
|
|
||
| ``` rs | ||
| println!("Hello from Rust!"); | ||
| ``` | ||
|
|
||
| ## Diagrams | ||
|
|
||
| > Go to [documentation](https://zensical.org/docs/authoring/diagrams/) | ||
|
|
||
| ```mermaid | ||
| graph LR | ||
| A[Start] --> B{Error?}; | ||
| B -->|Yes| C[Hmm...]; | ||
| C --> D[Debug]; | ||
| D --> B; | ||
| B ---->|No| E[Yay!]; | ||
| ``` | ||
|
|
||
| ## Footnotes | ||
|
|
||
| > 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. | ||
|
|
||
| ## Formatting | ||
|
|
||
| > Go to [documentation](https://zensical.org/docs/authoring/formatting/) | ||
|
|
||
| - ==This was marked (highlight)== | ||
| - ^^This was inserted (underline)^^ | ||
| - ~~This was deleted (strikethrough)~~ | ||
| - H~2~O | ||
| - A^T^A | ||
| - ++ctrl+alt+del++ | ||
|
|
||
| ## Icons, Emojis | ||
|
|
||
| > Go to [documentation](https://zensical.org/docs/authoring/icons-emojis/) | ||
|
|
||
| - :sparkles: `:sparkles:` | ||
| - :rocket: `:rocket:` | ||
| - :tada: `:tada:` | ||
| - :memo: `:memo:` | ||
| - :eyes: `:eyes:` | ||
|
|
||
| ## Maths | ||
|
|
||
| > Go to [documentation](https://zensical.org/docs/authoring/math/) | ||
|
|
||
| $$ | ||
| \cos x=\sum_{k=0}^{\infty}\frac{(-1)^k}{(2k)!}x^{2k} | ||
| $$ | ||
|
|
||
| !!! warning "Needs configuration" | ||
|
|
||
| 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. | ||
|
|
||
| <script id="MathJax-script" async src="https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js"></script> | ||
| <script> | ||
| window.MathJax = { | ||
| tex: { | ||
| inlineMath: [["\\(", "\\)"]], | ||
| displayMath: [["\\[", "\\]"]], | ||
| processEscapes: true, | ||
| processEnvironments: true | ||
| }, | ||
| options: { | ||
| ignoreHtmlClass: ".*|", | ||
| processHtmlClass: "arithmatex" | ||
| } | ||
| }; | ||
| </script> | ||
|
|
||
| ## Task Lists | ||
|
|
||
| > Go to | ||
| > [documentation](https://zensical.org/docs/authoring/lists/#using-task-lists) | ||
|
|
||
| - [x] Install Zensical | ||
| - [x] Configure `zensical.toml` | ||
| - [x] Write amazing documentation | ||
| - [ ] Deploy anywhere | ||
|
|
||
| ## Tooltips | ||
|
|
||
| > Go to [documentation](https://zensical.org/docs/authoring/tooltips/) | ||
|
|
||
| [Hover me][example] | ||
|
|
||
| [example]: https://example.com "I'm a tooltip!" |
109 changes: 109 additions & 0 deletions
109
...cutter.project_name}}/docs/{% if cookiecutter.docs == 'zensical' %}markdown.md{% endif %}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| --- | ||
| icon: simple/markdown | ||
| --- | ||
|
|
||
| # Markdown in 5min | ||
|
|
||
| ## Headers | ||
|
|
||
| ``` | ||
| # H1 Header | ||
| ## H2 Header | ||
| ### H3 Header | ||
| #### H4 Header | ||
| ##### H5 Header | ||
| ###### H6 Header | ||
| ``` | ||
|
|
||
| ## Text formatting | ||
|
|
||
| ``` | ||
| **bold text** | ||
| *italic text* | ||
| ***bold and italic*** | ||
| ~~strikethrough~~ | ||
| `inline code` | ||
| ``` | ||
|
|
||
| ## Links and images | ||
|
|
||
| ``` | ||
| [Link text](https://example.com) | ||
| [Link with title](https://example.com "Hover title") | ||
|  | ||
|  | ||
| ``` | ||
|
|
||
| ## Lists | ||
|
|
||
| ``` | ||
| Unordered: | ||
| - Item 1 | ||
| - Item 2 | ||
| - Nested item | ||
|
|
||
| Ordered: | ||
| 1. First item | ||
| 2. Second item | ||
| 3. Third item | ||
| ``` | ||
|
|
||
| ## Blockquotes | ||
|
|
||
| ``` | ||
| > This is a blockquote | ||
| > Multiple lines | ||
| >> Nested quote | ||
| ``` | ||
|
|
||
| ## Code blocks | ||
|
|
||
| ```` | ||
| ```javascript | ||
| function hello() { | ||
| console.log("Hello, world!"); | ||
| } | ||
| ``` | ||
| ```` | ||
|
|
||
| ## Tables | ||
|
|
||
| ``` | ||
| | Header 1 | Header 2 | Header 3 | | ||
| |----------|----------|----------| | ||
| | Row 1 | Data | Data | | ||
| | Row 2 | Data | Data | | ||
| ``` | ||
|
|
||
| ## Horizontal rule | ||
|
|
||
| ``` | ||
| --- | ||
| or | ||
| *** | ||
| or | ||
| ___ | ||
| ``` | ||
|
|
||
| ## Task lists | ||
|
|
||
| ``` | ||
| - [x] Completed task | ||
| - [ ] Incomplete task | ||
| - [ ] Another task | ||
| ``` | ||
|
|
||
| ## Escaping characters | ||
|
|
||
| ``` | ||
| Use backslash to escape: \* \_ \# \` | ||
| ``` | ||
|
|
||
| ## Line breaks | ||
|
|
||
| ``` | ||
| End a line with two spaces | ||
| to create a line break. | ||
|
|
||
| Or use a blank line for a new paragraph. | ||
| ``` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/index.md,docs/markdown.mdandzensical.tomlare all provided byzensical new .