Skip to content

Commit f2c52e1

Browse files
authored
Merge pull request #212 from revisit-studies/copilot/continue-work-on-pr-211
Add "Edit this page" to docs, blog, and about page
2 parents 83ba1ac + fec1772 commit f2c52e1

6 files changed

Lines changed: 20213 additions & 1384 deletions

File tree

docusaurus.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,22 @@ const config: Config = {
3535
{
3636
docs: {
3737
sidebarPath: './sidebars.ts',
38+
showLastUpdateTime: true,
39+
showLastUpdateAuthor: false,
40+
editUrl: ({versionDocsDirPath, docPath}) => {
41+
if (docPath.startsWith('typedoc/')) {
42+
return undefined;
43+
}
44+
return `https://github.com/revisit-studies/reVISit-studies.github.io/edit/main/${versionDocsDirPath}/${docPath}`;
45+
},
3846
lastVersion: 'current',
3947
versions: {
4048
current: { label: 'v2.4.0', path: '' },
4149
},
4250
},
51+
blog: {
52+
editUrl: 'https://github.com/revisit-studies/reVISit-studies.github.io/edit/main/',
53+
},
4354

4455
theme: {
4556
customCss: './src/css/custom.css',

0 commit comments

Comments
 (0)