From 19cae928935af9dfd5b5706f0de163875a8ac2f3 Mon Sep 17 00:00:00 2001 From: Tropicar <59098811+tropicar@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:02:14 +0100 Subject: [PATCH 01/10] New translations create-a-blog-post.md (French) --- French/create-a-blog-post | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 French/create-a-blog-post diff --git a/French/create-a-blog-post b/French/create-a-blog-post new file mode 100644 index 0000000..4485a8a --- /dev/null +++ b/French/create-a-blog-post @@ -0,0 +1,25 @@ +--- +title: Create a Blog Post +--- + +This page will help you on how to create blog posts in Docusaurus. + +## Create a Blog Post + +Create a file at `blog/2021-02-28-greetings.md`: + +```md title="blog/2021-02-28-greetings.md" +--- +title: Greetings! +author: Steven Hansel +author_title: Docusaurus Contributor +author_url: https://github.com/ShinteiMai +author_image_url: https://github.com/ShinteiMai.png +--- + +Congratulations, you have made your first post! + +Feel free to play around and edit this post as much you like. +``` + +A new blog post is now available at `http://localhost:3000/blog/greetings`. From 8faf6858d883b65476828a97798247cd118678d2 Mon Sep 17 00:00:00 2001 From: Tropicar <59098811+tropicar@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:02:15 +0100 Subject: [PATCH 02/10] New translations create-a-document.md (French) --- French/create-a-document | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 French/create-a-document diff --git a/French/create-a-document b/French/create-a-document new file mode 100644 index 0000000..7922129 --- /dev/null +++ b/French/create-a-document @@ -0,0 +1,38 @@ +--- +title: Create a Document +--- + +Documents are pages with a **sidebar**, a **previous/next navigation** and many other useful features. + +## Create a Document + +Create a markdown file at `docs/my-doc.md`: + +```mdx title="docs/hello.md" +--- +title: Hello, World! +--- + +## Hello, World! + +This is your first document in **Docusaurus**, Congratulations! +``` + +A new document is now available at `http://localhost:3000/docs/hello`. + +## Add your document to the sidebar + +Add `hello` to the `sidebars.js` file: + +```diff title="sidebars.js" +module.exports = { + docs: [ + { + type: 'category', + label: 'Docusaurus Tutorial', +- items: ['getting-started', 'create-a-doc', ...], ++ items: ['getting-started', 'create-a-doc', 'hello', ...], + }, + ], +}; +``` From aa827517173bd7bebaca34790aa3edb50cfea0a4 Mon Sep 17 00:00:00 2001 From: Tropicar <59098811+tropicar@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:02:16 +0100 Subject: [PATCH 03/10] New translations create-a-page.md (French) --- French/create-a-page | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 French/create-a-page diff --git a/French/create-a-page b/French/create-a-page new file mode 100644 index 0000000..1056090 --- /dev/null +++ b/French/create-a-page @@ -0,0 +1,45 @@ +--- +title: Create a Page +--- + +Any React or Markdown file created under `src/pages` directory is converted into a website page: + +- `src/pages/index.js` -> `localhost:3000/` +- `src/pages/foo.md` -> `localhost:3000/foo` +- `src/pages/foo/bar.js` -> `localhost:3000/foo/bar` + +## Create a React Page + +Create a file at `src/pages/my-react-page.js`: + +```jsx title="src/pages/my-react-page.js" +import React from 'react'; +import Layout from '@theme/Layout'; + +function HelloWorld() { + return ( + +

My React page

+

This is a React page

+
+ ); +} +``` + +A new page is now available at `http://localhost:3000/my-react-page`. + +## Create a Markdown Page + +Create a file at `src/pages/my-markdown-page.md`: + +```mdx title="src/pages/my-markdown-page.md" +--- +title: My Markdown page +--- + +# My Markdown page + +This is a Markdown page +``` + +A new page is now available at `http://localhost:3000/my-markdown-page`. From 126484b4911f1763cd1d716a89fa9fd04ae91751 Mon Sep 17 00:00:00 2001 From: Tropicar <59098811+tropicar@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:02:16 +0100 Subject: [PATCH 04/10] New translations getting-started.md (French) --- French/getting-started | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 French/getting-started diff --git a/French/getting-started b/French/getting-started new file mode 100644 index 0000000..43df86a --- /dev/null +++ b/French/getting-started @@ -0,0 +1,28 @@ +--- +title: Getting Started +slug: / +--- + +## Step 1: Generate a new Docusaurus site + +If you haven't already, generate a new Docusaurus site using the classic template: + +```shell +npx @docusaurus/init@latest init my-website classic +``` + +## Step 2: Start your Docusaurus site + +Run the development server in the newly created `my-website` folder: + +```shell +cd my-website + +npx docusaurus start +``` + +Open `docs/getting-started.md` and edit some lines. The site reloads automatically and display your changes. + +## That's it! + +Congratulations! You've successfully run and modified your Docusaurus project. From a332ae0bc9be16e48f6ca2d14ddd5ed7f0053ad1 Mon Sep 17 00:00:00 2001 From: Tropicar <59098811+tropicar@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:02:17 +0100 Subject: [PATCH 05/10] New translations thank-you.md (French) --- French/thank-you | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 French/thank-you diff --git a/French/thank-you b/French/thank-you new file mode 100644 index 0000000..808847e --- /dev/null +++ b/French/thank-you @@ -0,0 +1,17 @@ +--- +title: Thank you! +--- + +Congratulations on making it this far! + +You have learned the **basics of Docusaurus** and made some changes to the **initial template**. + +But Docusaurus has **much more to offer**! + +## What's next? + +- [Read the official documentation](https://v2.docusaurus.io/). +- [Design and Layout your Docusaurus site](https://v2.docusaurus.io/docs/styling-layout) +- [Integrate a search bar into your site](https://v2.docusaurus.io/docs/search) +- [Find inspirations in Docusaurus showcase](https://v2.docusaurus.io/showcase) +- [Get involved in the Docusaurus Community](https://v2.docusaurus.io/community/support) From a7ed398eeb6f673bfb9635df096f98d2160a61ce Mon Sep 17 00:00:00 2001 From: Tropicar <59098811+tropicar@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:02:18 +0100 Subject: [PATCH 06/10] New translations create-a-blog-post.md (Spanish) --- Spanish/create-a-blog-post | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Spanish/create-a-blog-post diff --git a/Spanish/create-a-blog-post b/Spanish/create-a-blog-post new file mode 100644 index 0000000..af61a2b --- /dev/null +++ b/Spanish/create-a-blog-post @@ -0,0 +1,25 @@ +--- +title: Create a Blog Post +--- + +Esta página le ayudará en cómo crear entradas en el blog en Docusaurus. + +## Create a Blog Post + +Create a file at `blog/2021-02-28-greetings.md`: + +```md title="blog/2021-02-28-greetings.md" +--- +title: Greetings! +author: Steven Hansel +author_title: Docusaurus Contributor +author_url: https://github.com/ShinteiMai +author_image_url: https://github.com/ShinteiMai.png +--- + +Congratulations, you have made your first post! + +Feel free to play around and edit this post as much you like. +``` + +A new blog post is now available at `http://localhost:3000/blog/greetings`. From d60311392d5827e1c3d062a9e9ddaed39cea1a83 Mon Sep 17 00:00:00 2001 From: Tropicar <59098811+tropicar@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:02:19 +0100 Subject: [PATCH 07/10] New translations create-a-document.md (Spanish) --- Spanish/create-a-document | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Spanish/create-a-document diff --git a/Spanish/create-a-document b/Spanish/create-a-document new file mode 100644 index 0000000..7922129 --- /dev/null +++ b/Spanish/create-a-document @@ -0,0 +1,38 @@ +--- +title: Create a Document +--- + +Documents are pages with a **sidebar**, a **previous/next navigation** and many other useful features. + +## Create a Document + +Create a markdown file at `docs/my-doc.md`: + +```mdx title="docs/hello.md" +--- +title: Hello, World! +--- + +## Hello, World! + +This is your first document in **Docusaurus**, Congratulations! +``` + +A new document is now available at `http://localhost:3000/docs/hello`. + +## Add your document to the sidebar + +Add `hello` to the `sidebars.js` file: + +```diff title="sidebars.js" +module.exports = { + docs: [ + { + type: 'category', + label: 'Docusaurus Tutorial', +- items: ['getting-started', 'create-a-doc', ...], ++ items: ['getting-started', 'create-a-doc', 'hello', ...], + }, + ], +}; +``` From d98d0e191a61229fde8eb545e5fd4780901ac5bd Mon Sep 17 00:00:00 2001 From: Tropicar <59098811+tropicar@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:02:20 +0100 Subject: [PATCH 08/10] New translations create-a-page.md (Spanish) --- Spanish/create-a-page | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Spanish/create-a-page diff --git a/Spanish/create-a-page b/Spanish/create-a-page new file mode 100644 index 0000000..1056090 --- /dev/null +++ b/Spanish/create-a-page @@ -0,0 +1,45 @@ +--- +title: Create a Page +--- + +Any React or Markdown file created under `src/pages` directory is converted into a website page: + +- `src/pages/index.js` -> `localhost:3000/` +- `src/pages/foo.md` -> `localhost:3000/foo` +- `src/pages/foo/bar.js` -> `localhost:3000/foo/bar` + +## Create a React Page + +Create a file at `src/pages/my-react-page.js`: + +```jsx title="src/pages/my-react-page.js" +import React from 'react'; +import Layout from '@theme/Layout'; + +function HelloWorld() { + return ( + +

My React page

+

This is a React page

+
+ ); +} +``` + +A new page is now available at `http://localhost:3000/my-react-page`. + +## Create a Markdown Page + +Create a file at `src/pages/my-markdown-page.md`: + +```mdx title="src/pages/my-markdown-page.md" +--- +title: My Markdown page +--- + +# My Markdown page + +This is a Markdown page +``` + +A new page is now available at `http://localhost:3000/my-markdown-page`. From ae92c5ffddba18ade395fe49f967e97f5f6e2d98 Mon Sep 17 00:00:00 2001 From: Tropicar <59098811+tropicar@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:02:21 +0100 Subject: [PATCH 09/10] New translations getting-started.md (Spanish) --- Spanish/getting-started | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Spanish/getting-started diff --git a/Spanish/getting-started b/Spanish/getting-started new file mode 100644 index 0000000..43df86a --- /dev/null +++ b/Spanish/getting-started @@ -0,0 +1,28 @@ +--- +title: Getting Started +slug: / +--- + +## Step 1: Generate a new Docusaurus site + +If you haven't already, generate a new Docusaurus site using the classic template: + +```shell +npx @docusaurus/init@latest init my-website classic +``` + +## Step 2: Start your Docusaurus site + +Run the development server in the newly created `my-website` folder: + +```shell +cd my-website + +npx docusaurus start +``` + +Open `docs/getting-started.md` and edit some lines. The site reloads automatically and display your changes. + +## That's it! + +Congratulations! You've successfully run and modified your Docusaurus project. From 20bf13f8a5fdbc4e6489c5a6376f371564048e26 Mon Sep 17 00:00:00 2001 From: Tropicar <59098811+tropicar@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:02:22 +0100 Subject: [PATCH 10/10] New translations thank-you.md (Spanish) --- Spanish/thank-you | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Spanish/thank-you diff --git a/Spanish/thank-you b/Spanish/thank-you new file mode 100644 index 0000000..808847e --- /dev/null +++ b/Spanish/thank-you @@ -0,0 +1,17 @@ +--- +title: Thank you! +--- + +Congratulations on making it this far! + +You have learned the **basics of Docusaurus** and made some changes to the **initial template**. + +But Docusaurus has **much more to offer**! + +## What's next? + +- [Read the official documentation](https://v2.docusaurus.io/). +- [Design and Layout your Docusaurus site](https://v2.docusaurus.io/docs/styling-layout) +- [Integrate a search bar into your site](https://v2.docusaurus.io/docs/search) +- [Find inspirations in Docusaurus showcase](https://v2.docusaurus.io/showcase) +- [Get involved in the Docusaurus Community](https://v2.docusaurus.io/community/support)