diff --git a/docs/api-site-config.md b/docs/api-site-config.md index 5641fb81d3..e5619476e1 100644 --- a/docs/api-site-config.md +++ b/docs/api-site-config.md @@ -80,8 +80,6 @@ headerLinks: [ `gaTrackingId` - Google Analytics tracking ID to track page views. -`sourceCodeButton` - the type of button to use for pointing to your source code. If this field is non-null, the site will pull in the appropriate button code in the header, for you to be able to render as you see fit. Currently accepted values: `"github"`, `"none"`. Defaults to `"github"`. - `highlight` - [Syntax highlighting](api-doc-markdown.md) options: - `theme` is the name of the theme used by Highlight.js when highlighting code. @@ -142,7 +140,6 @@ const siteConfig = { indexName: "github" }, gaTrackingId: "U-A2352", - sourceCodeButton: "github", highlight: { theme: 'default' }, diff --git a/examples/basics/core/Footer.js b/examples/basics/core/Footer.js index 7143571146..f93eac9502 100644 --- a/examples/basics/core/Footer.js +++ b/examples/basics/core/Footer.js @@ -10,10 +10,10 @@ const React = require("react"); const githubButton = ( diff --git a/examples/basics/siteConfig.js b/examples/basics/siteConfig.js index b0111fda30..f211d9f282 100644 --- a/examples/basics/siteConfig.js +++ b/examples/basics/siteConfig.js @@ -18,7 +18,7 @@ const users = [ const siteConfig = { title: "Test Site" /* title for your website */, tagline: "A website for testing", - url: "https://deltice.github.io" /* your github url */, + url: "https://deltice.github.io" /* your website url */, baseUrl: "/test-site/" /* base url for your project */, projectName: "test-site", headerLinks: [ @@ -45,7 +45,12 @@ const siteConfig = { highlight: { // Highlight.js theme to use for syntax highlighting in code blocks theme: "default" - } + }, + scripts: [ + "https://buttons.github.io/buttons.js" + ], + // You may provide arbitrary config keys to be used as needed by your template. + repoUrl: "https://github.com/deltice/test-site", }; module.exports = siteConfig; diff --git a/lib/core/Head.js b/lib/core/Head.js index c912faacb0..4201e6f790 100644 --- a/lib/core/Head.js +++ b/lib/core/Head.js @@ -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 && ( -