mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +02:00
Add support for a custom CSS file that is configurable from siteConfig.js
This commit is contained in:
parent
8e9808c0f4
commit
9c6fe348d6
4 changed files with 10 additions and 1 deletions
|
@ -39,6 +39,11 @@ class Head extends React.Component {
|
|||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"
|
||||
/>}
|
||||
{this.props.config.customCssFileName &&
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href={this.props.config.baseUrl + "css/" + this.props.config.customCssFileName}
|
||||
/>}
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href={this.props.config.baseUrl + "css/main.css"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue