Document code snippets baseDir

Summary: Explained how to use baseDir, and also made the site actually use proper code snippets, embedding the flipper site as an example.

Reviewed By: fabiomassimo

Differential Revision: D30572679

fbshipit-source-id: aae3dd07225eb9e147f8bf73529b02bfcb6be9d2
This commit is contained in:
John Knox
2021-08-26 04:01:39 -07:00
committed by Facebook GitHub Bot
parent 28085211e8
commit e14f3b2368

View File

@@ -179,6 +179,11 @@ const siteConfig = {
theme: {
customCss: require.resolve('./static/css/custom.css'),
},
staticDocsProject: 'flipper',
trackingFile: 'xplat/staticdocs/WATCHED_FILES',
'remark-code-snippets': {
baseDir: '..',
},
enableEditor: true,
},
],