Improve Documentation
Clear documentation makes Storyteller accessible to everyone. Improving the docs is often the best way to get started as a contributor.
How to Contribute
You can improve the documentation by:
- Fixing typos, broken links, or formatting errors.
- Clarifying wording that feels confusing or overly technical.
- Writing new guides for missing topics.
Reporting Issues
If you spot an error but are unable to fix it yourself, please report it via GitLab.
- Ensure you have a GitLab account.
- Navigate to the Storyteller Issue Tracker.
- Click New Item to describe what needs to be fixed.
Editing in the Browser
Every page on this site has an Edit this page link at the bottom. It opens the docs studio, an editor that runs inside the docs site itself, so you do not need to clone the repository or run anything locally:
- Browse to the page you want to change and press Edit. You will be asked to sign in with GitLab.
- Pick a branch to work on. If you can push to the Storyteller repository the branch is created there, otherwise the studio creates a fork under your account and the branch lives in the fork.
- The tree on the left shows the pages the way the site's sidebar does (switch to Files to see the folders instead). The sidebar itself is edited right there: drag pages and categories to reorder or nest them, drop a page from Not in the sidebar into place, and use the buttons that appear when you hover a row to add, rename or remove categories. Moving or renaming a file works the same way, with the arrow button or by dragging it onto a folder in the Files view.
- Edit the Markdown on the left and see the page rendered exactly as on the
site on the right. Type
/for headings, admonitions, tables and other blocks, use the toolbar for formatting, links and images. Paste or drop an image and you will be asked where it should live and what it should be called. Edits stay in your browser until you commit them. - Commit formats your changes with Prettier and writes them to the branch. Changes shows a diff of what you changed, History shows earlier commits. If someone else changed the same file on the branch in the meantime, the studio shows you both versions and asks which one wins. Each page shows when it was last changed, and Blame in the toolbar shows who last touched every line.
- Merge request opens a merge request for the branch. Once it exists the panel shows its pipeline status, the files it changes and the review comments, which you can answer and resolve from the studio. Comments on a line show up in the editor's gutter.
The studio also renders any branch of the repository in view mode, which is handy for reading documentation that is not published yet.
Editing Documentation
The documentation uses Docusaurus. Check out their docs if you need help with formatting or structure.
If you need help writing documentation, you may find the following resources useful:
Running the Docs Server
Before running the docs server, complete the environment setup.
To preview your changes locally, start the documentation development server:
yarn dev:docs
This will start a local server where you can see your changes in real-time.