+ {/* TODO: remove this in the future */}
+
+ Docusaurus 2 is still work in progress. Do not
+ use it in production yet!
+
+
diff --git a/website/docs/introduction.md b/website/docs/introduction.md
new file mode 100644
index 0000000000..604d9ec5ac
--- /dev/null
+++ b/website/docs/introduction.md
@@ -0,0 +1,15 @@
+---
+id: introduction
+title: Introduction
+---
+
+
+
+
+Docusaurus is a **painless static site generator** powered by React.
+
+
+## Installation
+
+TODO
+
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index 5d71dfc694..ac63f09151 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -13,7 +13,8 @@ module.exports = {
baseUrl: '/',
url: 'https://docusaurus-2.netlify.com',
headerLinks: [
- {url: 'docs/installation', label: 'Docs'},
+ {url: 'docs-legacy/installation', label: 'Docs V1'},
+ {url: 'docs/introduction', label: 'Docs'},
{url: 'blog', label: 'Blog'},
{url: 'feedback/', label: 'Feedback'},
],
@@ -29,7 +30,7 @@ module.exports = {
'@docusaurus/preset-classic',
{
docs: {
- path: '../docs',
+ path: 'docs',
sidebarPath: require.resolve('./sidebars.json'),
},
blog: {
@@ -38,4 +39,14 @@ module.exports = {
},
],
],
+ plugins: [
+ {
+ name: '@docusaurus/plugin-content-docs',
+ options: {
+ path: '../docs',
+ routeBasePath: 'docs-legacy',
+ sidebarPath: require.resolve('./sidebars-legacy.json'),
+ },
+ },
+ ],
};
diff --git a/website/sidebars-legacy.json b/website/sidebars-legacy.json
new file mode 100644
index 0000000000..632546c139
--- /dev/null
+++ b/website/sidebars-legacy.json
@@ -0,0 +1,25 @@
+{
+ "docs-legacy": {
+ "Getting Started": [
+ "installation",
+ "site-preparation",
+ "site-creation",
+ "publishing",
+ "docker"
+ ],
+ "Guides": [
+ "adding-blog",
+ "custom-pages",
+ "search",
+ "navigation",
+ "translation",
+ "versioning"
+ ],
+ "API": [
+ "commands",
+ "doc-markdown",
+ "api-pages",
+ "site-config"
+ ]
+ }
+}
diff --git a/website/sidebars.json b/website/sidebars.json
index da7246cf9a..8ba4ef3427 100644
--- a/website/sidebars.json
+++ b/website/sidebars.json
@@ -1,20 +1,7 @@
{
"docs": {
- "Getting Started": [
- "installation",
- "site-preparation",
- "site-creation",
- "publishing",
- "docker"
- ],
- "Guides": [
- "adding-blog",
- "custom-pages",
- "search",
- "navigation",
- "translation",
- "versioning"
- ],
- "API": ["commands", "doc-markdown", "api-pages", "site-config"]
+ "Quick Start": [
+ "introduction"
+ ]
}
}