-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Docusaurus Plugin DocsMenu | ||
|
||
DocsMenu data provider for Docusaurus Theme Nonepress. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Docusaurus Plugin GetSidebar | ||
|
||
Sidebar data provider for Docusaurus Theme Nonepress. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
# Docusaurus Theme Nonepress | ||
|
||
The nonepress theme for Docusaurus. | ||
[![GitHub](https://img.shields.io/github/license/nonebot/docusaurus-theme-nonepress)](https://github.com/nonebot/docusaurus-theme-nonepress/blob/master/LICENSE) | ||
[![npm](https://img.shields.io/npm/v/@nullbot/docusaurus-theme-nonepress)](https://www.npmjs.com/package/@nullbot/docusaurus-theme-nonepress) | ||
|
||
## Installation | ||
|
||
### Use `docusaurus-preset-nonepress` | ||
|
||
See [docusaurus-preset-nonepress](https://www.npmjs.com/package/docusaurus-preset-nonepress) | ||
|
||
### Manually Install | ||
|
||
Add `docusaurus-theme-nonepress` to your package: | ||
|
||
```bash | ||
npm i --save docusaurus-theme-nonepress@latest | ||
npx create-docusaurus@latest website classic | ||
yarn add @nullbot/docusaurus-preset-nonepress | ||
``` | ||
|
||
Modify your `docusaurus.config.js`: | ||
|
||
```diff | ||
module.exports = { | ||
... | ||
+ themes: ["docusaurus-theme-nonepress"], | ||
+ plugins: [ | ||
+ "@docusaurus/plugin-content-docs", | ||
+ "@docusaurus/plugin-content-pages", | ||
+ ], | ||
+ presets: [ | ||
+ [ | ||
+ "@nullbot/docusaurus-preset-nonepress", | ||
+ /** @type {import('@nullbot/docusaurus-preset-nonepress').Options} */ | ||
+ ({docs: docConfig, pages: pageConfig}), | ||
+ ] | ||
+ ] | ||
... | ||
} | ||
``` |