Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Edit this page links to bottom #24

Merged
merged 1 commit into from Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/intro.md
Expand Up @@ -42,4 +42,4 @@ Run the development server:
npm run dev
```

The `npm run dev` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:8080/.
The `npm run dev` command builds your website locally and serves it through a development server, ready for you to view at [localhost:8080](http://localhost:8080).
35 changes: 33 additions & 2 deletions docusaurus.config.js
Expand Up @@ -342,13 +342,44 @@ ${content}`,
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl: 'https://github.com/resonatecoop/docs/tree/main/packages/create-docusaurus/templates/shared/',
editUrl: ({ docPath }) => {
switch (true) {
case docPath.includes('stream'):
return 'https://github.com/resonatecoop/stream/edit/development/README.md';
case docPath.includes('website'):
return 'https://github.com/resonatecoop/website/edit/develop/README.md';
case docPath.includes('id'):
return 'https://github.com/resonatecoop/id/edit/develop/README.md';
case docPath.includes('user-api'):
return 'https://github.com/resonatecoop/user-api/edit/master/README.md';
case docPath.includes('user-api-client'):
return 'https://github.com/resonatecoop/user-api-client/edit/master/README.md';
case docPath.includes('verifiable-credentials'):
return 'https://github.com/resonatecoop/verifiable-credentials/edit/master/readme.md';
case docPath.includes('search'):
return 'https://github.com/resonatecoop/search/edit/development/README.md';
case docPath.includes('upload'):
return 'https://github.com/resonatecoop/upload/edit/main/README.md';
case docPath.includes('audio-process-queue'):
return 'https://github.com/resonatecoop/audio-process-queue/edit/main/README.md';
case docPath.includes('image-process-queue'):
return 'https://github.com/resonatecoop/image-process-queue/edit/main/README.md';
case docPath.includes('beam'):
return 'https://github.com/simonv3/beam/edit/main/README.md';
case docPath.includes('stream-app'):
return 'https://github.com/peterklingelhofer/beam/edit/stream-app/README.md';
default:
return `https://github.com/resonatecoop/documentation/edit/main/docs/${docPath}`;
}
},
showLastUpdateAuthor: false,
showLastUpdateTime: false,
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl: 'https://github.com/resonatecoop/docs/tree/main/packages/create-docusaurus/templates/shared/',
// editUrl: 'https://github.com/resonatecoop/documentation/edit/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down