fix(docs): add custom editUrl path for intro page (#31334)
Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
parent
cb78c778dd
commit
878c7f0267
|
|
@ -203,13 +203,18 @@ const config = {
|
||||||
({
|
({
|
||||||
docs: {
|
docs: {
|
||||||
sidebarPath: require.resolve('./sidebars.js'),
|
sidebarPath: require.resolve('./sidebars.js'),
|
||||||
editUrl: 'https://github.com/apache/superset/edit/master/docs',
|
editUrl:
|
||||||
|
({versionDocsDirPath, docPath}) => {
|
||||||
|
if (docPath === 'intro.md') {
|
||||||
|
return 'https://github.com/apache/superset/edit/master/README.md'
|
||||||
|
}
|
||||||
|
return `https://github.com/apache/superset/edit/master/docs/${versionDocsDirPath}/${docPath}`
|
||||||
|
}
|
||||||
},
|
},
|
||||||
blog: {
|
blog: {
|
||||||
showReadingTime: true,
|
showReadingTime: true,
|
||||||
// Please change this to your repo.
|
// Please change this to your repo.
|
||||||
editUrl:
|
editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/blog/',
|
||||||
'https://github.com/facebook/docusaurus/edit/main/website/blog/',
|
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
customCss: require.resolve('./src/styles/custom.css'),
|
customCss: require.resolve('./src/styles/custom.css'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue