From 8be02bf812a7de8ba0f54c4b136eaebcdbdf49ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E9=A3=8E?= Date: Sun, 23 Feb 2025 12:17:48 +0800 Subject: [PATCH] basics --- blog/2025-02-23-greeting.md | 18 ++++++++++ docs/hello.md | 8 +++++ docs/my-doc.md | 65 +++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 blog/2025-02-23-greeting.md create mode 100644 docs/hello.md create mode 100644 docs/my-doc.md diff --git a/blog/2025-02-23-greeting.md b/blog/2025-02-23-greeting.md new file mode 100644 index 0000000..7e76a86 --- /dev/null +++ b/blog/2025-02-23-greeting.md @@ -0,0 +1,18 @@ +--- +slug: greetings +title: Greetings! +authors: + - name: Joel Marcey + title: Co-creator of Docusaurus 1 + url: https://github.com/JoelMarcey + image_url: https://github.com/JoelMarcey.png + - name: Sébastien Lorber + title: Docusaurus maintainer + url: https://sebastienlorber.com + image_url: https://github.com/slorber.png +tags: [greetings] +--- + +Congratulations, you have made your first post! + +Feel free to play around and edit this post as much you like. \ No newline at end of file diff --git a/docs/hello.md b/docs/hello.md new file mode 100644 index 0000000..597bbd9 --- /dev/null +++ b/docs/hello.md @@ -0,0 +1,8 @@ +--- +sidebar_label: 'Hi!' +sidebar_position: 3 +--- + +# Hello + +This is my **first Docusaurus document**! \ No newline at end of file diff --git a/docs/my-doc.md b/docs/my-doc.md new file mode 100644 index 0000000..691e011 --- /dev/null +++ b/docs/my-doc.md @@ -0,0 +1,65 @@ +--- +id: my-doc-id +title: My document title +description: My document description +slug: /my-custom-url +--- + +## Markdown heading + +### Links + +Markdown text with [links](./hello.md) + +Let's see how to [Create a page](/create-a-page). + +Let's see how to [Create a page](./create-a-page.md). + +### Images + +![Docusaurus logo](/img/docusaurus.png) + +### CodeBlocks + +```jsx title="src/components/HelloDocusaurus.js" +function HelloDocusaurus() { + return ( +

Hello, Docusaurus!

+ ) +} +``` +### Admonitions + +:::tip My tip + +Use this awesome feature option + +::: + +:::danger Take care + +This action is dangerous + +::: + +### MDX + +export const Highlight = ({children, color}) => ( + { + alert(`You clicked the color ${color} with label ${children}`) + }}> + {children} + +); + +This is Docusaurus green ! + +This is Facebook blue ! \ No newline at end of file