mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-04 11:52:39 +02:00
feat(v2): allow to use array of files in customCss field (#3474)
* feat(v2): allow to use array of files in customCss field * customCss array: - fix bug (push instead of concat) - update docs - add theme config validation + tests Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
cc31567459
commit
ae2c063929
8 changed files with 53 additions and 7 deletions
|
@ -95,7 +95,7 @@ module.exports = {
|
|||
sidebarPath: require.resolve('./sidebars.js'),
|
||||
},
|
||||
theme: {
|
||||
customCss: require.resolve('./src/css/custom.css'),
|
||||
customCss: [require.resolve('./src/css/custom.css')],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
@ -220,7 +220,7 @@ module.exports = {
|
|||
'@docusaurus/preset-classic',
|
||||
{
|
||||
theme: {
|
||||
customCss: require.resolve('./src/css/custom.css'),
|
||||
customCss: [require.resolve('./src/css/custom.css')],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
@ -97,7 +97,7 @@ module.exports = {
|
|||
debug: undefined,
|
||||
// Will be passed to @docusaurus/theme-classic.
|
||||
theme: {
|
||||
customCss: require.resolve('./src/css/custom.css'),
|
||||
customCss: [require.resolve('./src/css/custom.css')],
|
||||
},
|
||||
// Will be passed to @docusaurus/plugin-content-docs (false to disable)
|
||||
docs: {},
|
||||
|
|
|
@ -19,7 +19,7 @@ module.exports = {
|
|||
{
|
||||
// highlight-start
|
||||
theme: {
|
||||
customCss: require.resolve('./src/css/custom.css'),
|
||||
customCss: [require.resolve('./src/css/custom.css')],
|
||||
},
|
||||
// highlight-end
|
||||
},
|
||||
|
@ -164,7 +164,7 @@ module.exports = {
|
|||
{
|
||||
// ...
|
||||
theme: {
|
||||
customCss: require.resolve('./src/css/custom.scss'),
|
||||
customCss: [require.resolve('./src/css/custom.scss')],
|
||||
},
|
||||
// ...
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue