diff --git a/nuxt/content/handbook/company/guides/git.md b/nuxt/content/handbook/company/guides/git.md index 51d357a02d..92580b5e5e 100644 --- a/nuxt/content/handbook/company/guides/git.md +++ b/nuxt/content/handbook/company/guides/git.md @@ -28,7 +28,7 @@ If you are comfortable with Git and the command line, you can contribute directl 1. Check out the latest `main` branch. 2. Create a new branch with a descriptive `kebab-case` name. -3. Edit files under `src/handbook/` (the source of truth for handbook content). +3. Edit files under `nuxt/content/handbook/` (the source of truth for handbook content). 4. Commit your changes and push the branch. 5. Open a Pull Request on GitHub and assign a reviewer. 6. Once approved, the reviewer merges the PR. diff --git a/nuxt/content/handbook/index.md b/nuxt/content/handbook/index.md index a296bba9ae..67e147580b 100644 --- a/nuxt/content/handbook/index.md +++ b/nuxt/content/handbook/index.md @@ -38,7 +38,7 @@ shared in this handbook. The handbook can be edited by anyone at FlowFuse using **Nuxt Studio**, our CMS. Click **"Edit this page"** on any handbook page to open the editor, make your changes, and submit them for review. No Git knowledge required. -Engineers and others comfortable with Git can also contribute directly via pull-request on [GitHub](https://github.com/FlowFuse/website/tree/main/src/handbook). +Engineers and others comfortable with Git can also contribute directly via pull-request on [GitHub](https://github.com/FlowFuse/website/tree/main/nuxt/content/handbook). The handbook is here for the whole company to help maintain. **Contributions are welcome and strongly encouraged**. diff --git a/nuxt/pages/handbook/[...slug].vue b/nuxt/pages/handbook/[...slug].vue index a9272a9a8e..518747287e 100644 --- a/nuxt/pages/handbook/[...slug].vue +++ b/nuxt/pages/handbook/[...slug].vue @@ -49,6 +49,13 @@ const githubEditUrl = computed(() => { return `https://github.com/FlowFuse/website/edit/main/nuxt/content/${stem}.md` }) +// Studio mounts its editor on whichever page you are viewing once you have a session, so +// this link only has to carry you through sign-in and back. `?redirect=` is the parameter +// Studio's own keyboard shortcut uses. Docs pages keep their GitHub link, since that +// markdown lives in FlowFuse/flowfuse and Studio is configured for this repository. +const studioRoute = useRuntimeConfig().public.studio?.route || '/_studio' +const studioEditUrl = computed(() => `${studioRoute}?redirect=${encodeURIComponent(route.path)}`) + const breadcrumbItems = computed(() => { // findPageBreadcrumb excludes the current page unless told otherwise - `current: true` // includes it so it can be the last, unlinked crumb below. @@ -108,9 +115,17 @@ defineOgImage('Default', {
- + + +
+ Edit this page + + GitHub +
+