diff --git a/docs/api-site-config.md b/docs/api-site-config.md index fb4bd55d58..1ed091a814 100644 --- a/docs/api-site-config.md +++ b/docs/api-site-config.md @@ -92,6 +92,10 @@ customDocsPath: "website-docs" `gaTrackingId` - Google Analytics tracking ID to track page views. +`facebookAppId` - If you want Facebook Like/Share buttons at the bottom of your blog posts, provide a [Facebook application id](https://www.facebook.com/help/audiencenetwork/804209223039296), and the buttons will show up on all blog posts. + +`twitter` - set this to `true` if you want a Twitter social button to appear at the bottom of your blog posts. + `highlight` - [Syntax highlighting](api-doc-markdown.md) options: - `theme` is the name of the theme used by Highlight.js when highlighting code. @@ -169,8 +173,9 @@ const siteConfig = { } ], scripts: [ "https://docusaurus.io/slash.js" ], - stylesheets: [ "https://docusaurus.io/style.css" ] - + stylesheets: [ "https://docusaurus.io/style.css" ], + facebookAppId: "1615782811974223", + twitter: "true" }; module.exports = siteConfig; diff --git a/docs/guides-blog.md b/docs/guides-blog.md index b73f90cfc7..549abe4bad 100644 --- a/docs/guides-blog.md +++ b/docs/guides-blog.md @@ -72,4 +72,8 @@ Or this. Docusaurus provides a simple RSS feed for your blog posts. Both RSS and Atom feed formats are supported. This data is automatically to your website page's HTML tag. -A summary of the post's text is provided in the RSS feed up to the ``. If no `` tag is found, then all text up 250 chacters are used. \ No newline at end of file +A summary of the post's text is provided in the RSS feed up to the ``. If no `` tag is found, then all text up 250 chacters are used. + +## Social Buttons + +If you want Facebook and/or Twitter social buttons at the bottom of your blog posts, set the `facebookAppId` and/or `twitter` [site configuration](api-site-config.md) options in `siteConfig.js`. diff --git a/website/siteConfig.js b/website/siteConfig.js index c0c127c500..215ece50a8 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -102,7 +102,9 @@ const siteConfig = { theme: "solarized-dark" }, scripts: ["https://buttons.github.io/buttons.js"], - gaTrackingId: "UA-44373548-31" + gaTrackingId: "UA-44373548-31", + facebookAppId: "1615782811974223", + twitter: "true", }; module.exports = siteConfig;