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