mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-24 05:28:01 +02:00
Remove sourceCodeButton config key (#181)
This commit is contained in:
parent
db8daa635d
commit
ba666cc6ae
6 changed files with 10 additions and 18 deletions
|
@ -15,10 +15,6 @@ class Head extends React.Component {
|
|||
links.map(link => {
|
||||
if (link.blog) hasBlog = true;
|
||||
});
|
||||
const sourceCodeButton = this.props.config.sourceCodeButton;
|
||||
// defaults to GitHub, but other values may be allowed in the future
|
||||
const includeGitHubButton =
|
||||
sourceCodeButton === "github" || sourceCodeButton == null;
|
||||
|
||||
const highlightDefaultVersion = '9.12.0';
|
||||
const highlightConfig = this.props.config.highlight
|
||||
|
@ -82,9 +78,6 @@ class Head extends React.Component {
|
|||
title={this.props.config.title + " Blog RSS Feed"}
|
||||
/>
|
||||
)}
|
||||
{includeGitHubButton && (
|
||||
<script async defer src="https://buttons.github.io/buttons.js" />
|
||||
)}
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href={`//cdnjs.cloudflare.com/ajax/libs/highlight.js/${highlightVersion}/styles/${highlightTheme}.min.css`}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue