2021-03-08 12:22:01 +00:00
|
|
|
const path = require('path');
|
|
|
|
const autolinkHeadings = require('remark-autolink-headings');
|
|
|
|
const refractor = require('refractor');
|
|
|
|
const prism = require('@mapbox/rehype-prism');
|
|
|
|
|
|
|
|
refractor.alias('handlebars', 'hbs');
|
|
|
|
refractor.alias('shell', 'sh');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
remarkHbsOptions: {
|
|
|
|
escapeCurliesCode: false
|
|
|
|
},
|
|
|
|
remarkPlugins: [
|
|
|
|
autolinkHeadings,
|
|
|
|
{
|
|
|
|
behavior: 'wrap'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
rehypePlugins: [
|
|
|
|
prism
|
|
|
|
],
|
|
|
|
sources: [
|
2021-03-17 15:58:17 +00:00
|
|
|
{
|
|
|
|
root: path.resolve(__dirname, 'docs'),
|
|
|
|
pattern: '**/*.mdx',
|
|
|
|
urlSchema: 'auto',
|
|
|
|
urlPrefix: 'docs',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
root: path.resolve(__dirname, 'app/modifiers'),
|
|
|
|
pattern: '**/*.mdx',
|
|
|
|
urlSchema: 'auto',
|
|
|
|
urlPrefix: 'docs/modifiers',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
root: path.resolve(__dirname, 'app/helpers'),
|
|
|
|
pattern: '**/*.mdx',
|
|
|
|
urlSchema: 'auto',
|
|
|
|
urlPrefix: 'docs/helpers',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
root: path.resolve(__dirname, 'app/services'),
|
|
|
|
pattern: '**/*.mdx',
|
|
|
|
urlSchema: 'auto',
|
|
|
|
urlPrefix: 'docs/services',
|
|
|
|
},
|
2021-03-08 12:22:01 +00:00
|
|
|
{
|
|
|
|
root: path.resolve(__dirname, 'app/components'),
|
2021-03-17 15:58:17 +00:00
|
|
|
pattern: '**(!consul)/README.mdx',
|
2021-03-08 12:22:01 +00:00
|
|
|
urlSchema: 'auto',
|
|
|
|
urlPrefix: 'docs/components',
|
2021-03-17 15:58:17 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
root: path.resolve(__dirname, 'app/components/consul'),
|
|
|
|
pattern: '**/README.mdx',
|
|
|
|
urlSchema: 'auto',
|
|
|
|
urlPrefix: 'docs/consul',
|
2021-03-08 12:22:01 +00:00
|
|
|
}
|
|
|
|
],
|
2021-03-17 15:58:17 +00:00
|
|
|
labels: {
|
|
|
|
"consul": "Consul Components"
|
|
|
|
}
|
2021-03-08 12:22:01 +00:00
|
|
|
};
|