Move demo page to docs #4
Some checks are pending
Publish / publish (push) Waiting to run

This commit is contained in:
david-swift 2025-04-12 14:27:05 +02:00
parent 6d68931b72
commit 2ef2fa97c6
8 changed files with 8 additions and 25 deletions

View File

@ -142,7 +142,6 @@ links = [
{ url = "@/docs/gettingstarted/index.md", name = "Docs" },
{ url = "@/blog/_index.md", name = "Blog" },
{ url = "@/subprojects/_index.md", name = "Subprojects" },
{ url = "@/demo/index.md", name = "Demo" },
]
[extra.footer]
@ -152,7 +151,6 @@ links = [
{ url = "@/docs/gettingstarted/index.md", name = "Docs" },
{ url = "@/blog/_index.md", name = "Blog" },
{ url = "@/subprojects/_index.md", name = "Subprojects" },
{ url = "@/demo/index.md", name = "Demo" },
{ url = "https://mastodon.de/@david_swift", name = "Developer" }
]
# Social links in the footer.

View File

@ -1,11 +0,0 @@
+++
title = "Cake Party"
+++
<img class="transparent no-hover" style="width: min(calc(var(--container-width) / 2), 100%)" src="https://i1.theportalwiki.net/img/0/0a/Portal_Cake.png"/>
Sadly, the cake is a _lie_
<div class="buttons">
<a href="../">Go Crying</a>
</div>

View File

@ -6,6 +6,7 @@ page_template = "documentation_page.html"
[extra]
sections = [
"Usage",
"Markdown",
"Advanced"
]
+++

View File

@ -1,25 +1,19 @@
+++
title = "Demo Page"
weight = 0
[extra]
section = 2
styles = ["demo/demo.css"]
scripts = ["demo/demo.js"]
katex = true
archive = "This page is in fact not archived. It is only here to demonstrate the archival statement."
trigger = "This page contains blackjack and hookers, and bad jokes such as this one."
disclaimer = """
- All tricks in this page are performed by the lab boys, don't try this at home.
- Don't expose yourself to 4000° kelvin.
- Don't take party escort submission position.
- Don't interact with asbestos and moon rocks.
"""
+++
The features presented in this page can be used in all types of pages - standalone pages, blog posts, subprojects and documentation pages.
## Markdown
Text can be **bold**, *italic*, ~~strikethrough~~, and ***~~all at the same time~~***.
[Link to another page](@/demo/page.md).
There should be whitespace between paragraphs[^1].
# Heading 1
@ -674,3 +668,4 @@ With `centered` and `big` classes:
<label for="color-picker-dark">Dark theme</label>
</div>
<!-- End -->

View File

@ -2,7 +2,7 @@
weight = 0
title = "Localization"
[extra]
section = 2
section = 3
+++
Duckling ships with a localization system based on one used in [tabi](https://github.com/welpo/tabi), which is easy to use and flexible at the same time.

View File

@ -2,7 +2,7 @@
weight = 1
title = "Styling"
[extra]
section = 2
section = 3
+++
To add your own or override existing styles, create a custom style and add it in the `config.toml`: