docusaurus/packages/docusaurus-theme-classic
Ben Myers 3990404419
fix(theme-classic): expose empty string alt text in navbar logos (#7659)
* fix: Expose empty string alt text in brand logos via nullish coalescing

* fix: Update boolean logic for fallbacks

* fix: Dogfood fix on Docusaurus brand logo

* refactor: Un-inline alt logic, and reduce chance of duplication in fallback
2022-06-23 11:42:52 +08:00
..
src fix(theme-classic): expose empty string alt text in navbar logos (#7659) 2022-06-23 11:42:52 +08:00
.npmignore refactor(theme-classic): migrate to tsc for build (#7447) 2022-05-18 20:08:09 +08:00
README.md docs: audit grammar issues (#6203) 2021-12-27 19:34:04 +08:00
package.json fix: make type-checking pass in Yarn PnP (#7521) 2022-05-28 23:52:05 +08:00
tsconfig.client.json refactor(theme-classic): migrate to tsc for build (#7447) 2022-05-18 20:08:09 +08:00
tsconfig.json chore: upgrade to TS 4.7, compile with NodeNext (#7586) 2022-06-15 19:15:11 +02:00

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