mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
feat(v2): allow easy css override with custom css (#1559)
* feat(v2): allow easy css override with custom css * lint * fix(v2): use back require for client modules
This commit is contained in:
parent
e35c1efdf8
commit
b789624d2e
8 changed files with 9 additions and 43 deletions
|
@ -106,15 +106,10 @@ module.exports = {
|
|||
path: '../website-1.x/blog',
|
||||
postsPerPage: 3,
|
||||
},
|
||||
theme: {
|
||||
customCss: require.resolve('./css/custom.css'),
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
plugins: [
|
||||
{
|
||||
module: require('path').resolve(
|
||||
__dirname,
|
||||
'./plugins/plugin-infima-overrides',
|
||||
),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2017-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
const path = require('path');
|
||||
|
||||
module.exports = function() {
|
||||
return {
|
||||
name: 'docusaurus-plugin-website-infima',
|
||||
getClientModules() {
|
||||
return [path.resolve(__dirname, './infima-overrides')];
|
||||
},
|
||||
};
|
||||
};
|
|
@ -1,8 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2017-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import './infima-variables.css';
|
Loading…
Add table
Add a link
Reference in a new issue