mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-19 19:22:28 +02:00
* docs: audit grammar mistakes * fix code block language * revert change * let's get another
31 lines
581 B
Markdown
31 lines
581 B
Markdown
# Docusaurus Theme Classic
|
|
|
|
The classic theme for Docusaurus.
|
|
|
|
## Installation
|
|
|
|
Add `docusaurus/theme-classic` to your package:
|
|
|
|
```bash
|
|
npm i @docusaurus/theme-classic
|
|
# or
|
|
yarn add @docusaurus/theme-classic
|
|
```
|
|
|
|
Modify your `docusaurus.config.js`:
|
|
|
|
```diff
|
|
module.exports = {
|
|
...
|
|
+ themes: ['@docusaurus/theme-classic'],
|
|
...
|
|
}
|
|
```
|
|
|
|
## Swizzling components
|
|
|
|
```bash
|
|
$ npm swizzle @docusaurus/theme-classic [component name]
|
|
```
|
|
|
|
All components used by this theme can be found [here](https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-theme-classic/src/theme)
|