website: Update edit URL

This commit is contained in:
Kevin Kandlbinder 2022-03-02 16:30:32 +01:00
parent 9302a04b43
commit 92ae9fe6bd

View file

@ -27,12 +27,15 @@ const config = {
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/Unkn0wnCat/matrix-veles/tree/main/website/',
editUrl: ({locale, versionDocsDirPath, docPath}) => {
if (locale !== "en") {
return `https://crowdin.com/project/matrix-veles/${locale}`;
}
return `https://github.com/Unkn0wnCat/matrix-veles/tree/main/website/${versionDocsDirPath}/${docPath}`;
},
},
/*blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},*/