Integrates snipsync into the docusaurus build process.
In the same directory as your docusaurus installation run:
npm install docusaurus-plugin-snipsync
-- Or --
yarn add docusaurus-plugin-snipsync
Add the plugin to the list of plugins in your docusaurus.config.js
module.exports = {
// ...
plugins: [
[
'docusaurus-plugin-snipsync',
{
origins: [
{
files: ['../*/src/*.ts', '../create-project/samples/*.ts'],
},
],
target: 'docs',
features: {
enable_source_link: false,
},
},
],
],
};