How to Contribute
This is the practical guide for contributing to docs.mediakind.com. For writing style, see the Style Guide. For page templates and structure, see Page Structure.
All documentation is written in markdown (opens in a new tab). Alongside regular markdown, the site includes some custom components for rendering elements such as callouts, cards, and workflows.
See the Component Reference and Markdown Reference for more information.
How Publishing Works
- The documentation site is hosted in the https://dev.azure.com/mediakind/UX/_git/mk-online-doc (opens in a new tab) ADO repository.
mainis production (docs.mediakind.com). All approved PRs merge here.- Contributors create a feature branch, make changes, and open a PR into
mainone changes are ready to be approved. - PRs always require approval before merging.
- A Vercel preview URL is automatically posted to your PR so reviewers can check your changes in the browser before approving.
Rules
- Never commit directly to
main. - Always branch off the latest
main. - Keep PRs focused — one topic or section per PR where possible.
- If you changed a page URL, mention it in the PR description.
Quick Contributions via ADO UI (Non-Technical)
- Open the repo in Azure DevOps (mediakind / UX / Repos / Files / mk-online-doc).
- Make sure you are on the
mainbranch. - Navigate to the page you want to edit inside
pages/. - Click Edit and make your changes.
- When saving, choose Create a new branch and name it
docs/<short-description>. - Open a PR from your branch into
main. - Add a reviewer — any relevant team member plus the docs maintainer.
- A Vercel preview link will appear in the PR automatically. Include it in your review request so reviewers can check the rendered output.
- Once approved, merge.
Standard Workflow (Command Line)
Prerequisites
- Node.js (version 20 or higher)
- Clone the repo:
git clone <repo-url>
cd <repo-folder>- Install dependencies:
pnpm install
# npm install- Make sure you are on a fresh copy of
main:
git checkout main
git pull origin main- Create your feature branch:
git checkout -b docs/<short-description>-
Make your changes:
- Edit files inside
pages/. - If you create or remove a page, update the relevant
_meta.jsonso it appears correctly in the sidebar.
- Edit files inside
-
Run local checks before pushing:
pnpm dev # check it looks right in the browser
# npm run dev
pnpm build # check there are no build errors
#npm run build- Commit your changes:
git add -A
git commit -m "docs: <short summary of change>"- Push your branch:
git push -u origin docs/<short-description>-
Open a PR in ADO:
- Source:
docs/<short-description> - Target:
main - Add reviewers: relevant team members + docs maintainer.
- Source:
-
A Vercel preview URL will be posted automatically as a PR comment within a minute or two. Share this with your reviewers.
-
Once approved, merge. Your changes go live within 10 minutes.
Site Structure
| Concept | Detail |
|---|---|
| Doc pages | All pages live inside pages/ |
| URL mapping | File path → URL path (e.g. pages/mkio/getting-started.mdx → /mkio/getting-started) |
| Folder landing page | Name the file index.mdx |
| Sidebar order & labels | Controlled by _meta.json in each folder |
Common Mistakes
- Don't push to
maindirectly. - Don't forget to pull latest
mainbefore branching. - Don't change
_meta.jsonunless you're adding or removing a page. Sidebar order changes affect everyone. - Don't include
.mdxin internal links — use/mkio/getting-startednot/mkio/getting-started.mdx.
Further Reading
- Style Guide — writing tone and formatting rules
- Page Structure — templates and content types
- Component Reference — all available MDX components
- Markdown Reference — quick markdown cheat sheet