Add codeblock buttons

Summary: Shamelessly ripped off from docusaurus.io

Reviewed By: jknoxville

Differential Revision: D15123501

fbshipit-source-id: 10451c72494e022af5887d4c78ef0db1ff581254
This commit is contained in:
Pascal Hartig
2019-04-29 15:39:47 -07:00
committed by Facebook Github Bot
parent ffea2ee30e
commit d41df85ab7
3 changed files with 105 additions and 1 deletions

View File

@@ -33,8 +33,12 @@ const siteConfig = {
highlight: {
theme: 'default',
},
scripts: [
'https://buttons.github.io/buttons.js',
'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
'/js/code-blocks-buttons.js',
],
repoUrl,
scripts: ['https://buttons.github.io/buttons.js'],
stylesheets: [],
onPageNav: 'separate',
};