Skip to content

Commit 1e1aec9

Browse files
author
Eric Lin
committed
feat(format): refactor and move
1 parent 4d53613 commit 1e1aec9

16 files changed

+12
-100
lines changed

babel.config.js

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
/**
2-
* Copyright (c) ConsenSys Software, Inc. and affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @format
8-
*/
91
module.exports = {
102
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
113
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "Configuration Files",
3+
"position": 4,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "Advanced customization of configuration files."
7+
}
8+
}
File renamed without changes.
File renamed without changes.

docs/advanced/index.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ sidebar_position: 1
33
---
44

55
# Customization
6-
7-
[versioning](../tutorial-extras/manage-docs-versions.md)

docs/tutorial-extras/manage-docs-versions.md docs/advanced/manage-docs-versions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 1
2+
sidebar_position: 2
33
---
44

55
# Manage Docs Versions

docs/tutorial-extras/translate-your-site.md docs/advanced/translate-your-site.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 2
2+
sidebar_position: 3
33
---
44

55
# Translate your site

docs/intro.md

-47
This file was deleted.

docs/tutorial-basics/congratulations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You have just learned the **basics of Docusaurus** and made some changes to the
88

99
Docusaurus has **much more to offer**!
1010

11-
Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**.
11+
Have **5 more minutes**? Take a look at **[versioning](../advanced/manage-docs-versions.md)** and **[i18n](../advanced/translate-your-site.md)**.
1212

1313
Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610)
1414

docs/tutorial-basics/markdown-features.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can use absolute paths to reference images in the static directory (`static/
5151

5252
![Docusaurus logo](/img/docusaurus.png)
5353

54-
You can reference images relative to the current file as well, as shown in [the extra guides](../tutorial-extras/manage-docs-versions.md).
54+
You can reference images relative to the current file as well, as shown in [the extra guides](../advanced/manage-docs-versions.md).
5555

5656
## Code Blocks
5757

docs/tutorial-extras/_category_.json

-7
This file was deleted.

docusaurus.config.js

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
/**
2-
* Copyright (c) ConsenSys Software, Inc. and affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @format
8-
*/
9-
101
const lightCodeTheme = require("prism-react-renderer/themes/github");
112
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
123

sidebars.js

-23
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
1-
/**
2-
* Copyright (c) ConsenSys Software, Inc. and affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @format
8-
*/
9-
101
// @ts-check
112

123
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
134
const sidebars = {
145
docSidebar: [
15-
"intro",
166
{
177
type: "category",
188
label: "Getting Started",
@@ -52,19 +42,6 @@ const sidebars = {
5242
},
5343
],
5444
},
55-
{
56-
type: "category",
57-
label: "Tutorial - Extras",
58-
link: {
59-
type: "generated-index",
60-
},
61-
items: [
62-
{
63-
type: "autogenerated",
64-
dirName: "tutorial-extras", // '.' means the current docs folder
65-
},
66-
],
67-
},
6845
],
6946
apiSidebar: [
7047
{

0 commit comments

Comments
 (0)