Skip to content

Commit

Permalink
📝 Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Aug 30, 2023
1 parent 9aa5c7e commit 6f1a5ff
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 19 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Docusaurus Theme Nonepress

[![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

```bash
npx create-docusaurus@latest website classic
npm i --save docusaurus-preset-nonepress
yarn add @nullbot/docusaurus-preset-nonepress
```

Modify your `docusaurus.config.js`:
Expand All @@ -14,8 +17,8 @@ module.exports = {
...
+ presets: [
+ [
+ "docusaurus-preset-nonepress",
+ /** @type {import("docusaurus-preset-nonepress").Options} */
+ "@nullbot/docusaurus-preset-nonepress",
+ /** @type {import('@nullbot/docusaurus-preset-nonepress').Options} */
+ ({docs: docConfig, pages: pageConfig}),
+ ]
+ ]
Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-docsmenu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Docusaurus Plugin DocsMenu

DocsMenu data provider for Docusaurus Theme Nonepress.
3 changes: 3 additions & 0 deletions packages/plugin-getsidebar/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Docusaurus Plugin GetSidebar

Sidebar data provider for Docusaurus Theme Nonepress.
2 changes: 1 addition & 1 deletion packages/plugin-getsidebar/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nullbot/docusaurus-plugin-getsidebar",
"version": "2.1.0",
"description": "DocMenu plugin for Nonepress theme",
"description": "GetSidebar plugin for Nonepress theme",
"main": "lib/index.js",
"exports": {
"./lib/*": "./lib/*",
Expand Down
26 changes: 11 additions & 15 deletions packages/theme-nonepress/README.md
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}),
+ ]
+ ]
...
}
```

0 comments on commit 6f1a5ff

Please sign in to comment.