From 46597b679432de16d314a6d8ec809e826fa25e53 Mon Sep 17 00:00:00 2001 From: david-swift Date: Sat, 12 Apr 2025 14:27:05 +0200 Subject: [PATCH] Move demo page to docs --- config.toml | 2 -- content/demo/page.md | 11 ----------- content/docs/_index.md | 1 + content/{ => docs}/demo/demo.css | 0 content/{ => docs}/demo/demo.js | 0 content/{ => docs}/demo/index.md | 15 +++++---------- content/docs/localization/index.md | 2 +- content/docs/styling/index.md | 2 +- 8 files changed, 8 insertions(+), 25 deletions(-) delete mode 100644 content/demo/page.md rename content/{ => docs}/demo/demo.css (100%) rename content/{ => docs}/demo/demo.js (100%) rename content/{ => docs}/demo/index.md (97%) diff --git a/config.toml b/config.toml index b0b7b8f..4086f1c 100644 --- a/config.toml +++ b/config.toml @@ -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. diff --git a/content/demo/page.md b/content/demo/page.md deleted file mode 100644 index 7af1e0c..0000000 --- a/content/demo/page.md +++ /dev/null @@ -1,11 +0,0 @@ -+++ -title = "Cake Party" -+++ - - - -Sadly, the cake is a _lie_ - -
- Go Crying -
diff --git a/content/docs/_index.md b/content/docs/_index.md index 66f4b2b..392ce9a 100644 --- a/content/docs/_index.md +++ b/content/docs/_index.md @@ -6,6 +6,7 @@ page_template = "documentation_page.html" [extra] sections = [ "Usage", + "Markdown", "Advanced" ] +++ diff --git a/content/demo/demo.css b/content/docs/demo/demo.css similarity index 100% rename from content/demo/demo.css rename to content/docs/demo/demo.css diff --git a/content/demo/demo.js b/content/docs/demo/demo.js similarity index 100% rename from content/demo/demo.js rename to content/docs/demo/demo.js diff --git a/content/demo/index.md b/content/docs/demo/index.md similarity index 97% rename from content/demo/index.md rename to content/docs/demo/index.md index baea3d2..6180aee 100644 --- a/content/demo/index.md +++ b/content/docs/demo/index.md @@ -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: + diff --git a/content/docs/localization/index.md b/content/docs/localization/index.md index 584daf4..6108b80 100644 --- a/content/docs/localization/index.md +++ b/content/docs/localization/index.md @@ -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. diff --git a/content/docs/styling/index.md b/content/docs/styling/index.md index a892faa..58cc97b 100644 --- a/content/docs/styling/index.md +++ b/content/docs/styling/index.md @@ -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`: