📦 tema-clássico
O tema clássico para Docusaurus.
You can refer to the theme configuration page for more details on the configuration.
- npm
- Yarn
- pnpm
npm install --save @docusaurus/theme-classic
yarn add @docusaurus/theme-classic
pnpm add @docusaurus/theme-classic
tip
Se você instalou o @docusaurus/preset-classic, você não precisa instalá-lo como uma dependência.
Configuração
Campos aceitos:
| Option | Type | Padrão | Descrição |
|---|---|---|---|
customCss | string[] | string | [] | Stylesheets to be imported globally as client modules. Relative paths are resolved against the site directory. |
note
Most configuration for the theme is done in themeConfig, which can be found in theme configuration.
Configuração de exemplo
You can configure this theme through preset options or plugin options.
tip
A maioria dos usuários do Docusaurus configura este plugin através das configurações de predefinição.
- Preset options
- Plugin options
If you use a preset, configure this plugin through the preset options:
docusaurus.config.js
module.exports = {
presets: [
[
'@docusaurus/preset-classic',
{
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};
If you are using a standalone plugin, provide options directly to the plugin:
docusaurus.config.js
module.exports = {
plugins: [
[
'@docusaurus/theme-classic',
{
customCss: require.resolve('./src/css/custom.css'),
},
],
],
};