mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 09:43:10 +00:00
* fix: makes types DocusaurusConfig optional to match docs * add UserDocusaurusConfig with required keys for user config * convert UserDocusaurusConfig to use util type * Docusaurus website config should be type-checked by CI + fix all existing issues * add doc for config typechecking * Update template configs for TS autocompletion * fix last config typechecking bugs * reapply prettier * reapply prettier-docs * Fix TS doc: add missing () * fix some docu plugin types * add "const config" for simpler jsdoc annotation Co-authored-by: slorber <lorber.sebastien@gmail.com> |
||
|---|---|---|
| .. | ||
| codeTranslations | ||
| src | ||
| README.md | ||
| babel.config.js | ||
| package.json | ||
| tsconfig.json | ||
| update-code-translations.js | ||
| update-code-translations.test.js | ||
Docusaurus Theme Classic
The classic theme for Docusaurus.
Installation
Add docusaurus/theme-classic to your package:
npm i @docusaurus/theme-classic
# or
yarn add @docusaurus/theme-classic
Modify your docusaurus.config.js:
module.exports = {
...
+ themes: ['@docusaurus/theme-classic'],
...
}
Swizzling components
$ npm swizzle @docusaurus/theme-classic [component name]
All components used by this theme can be found here