Thank you for helping make the Stellar developer docs better! 🎉
This document covers how we work: what makes a PR easy to merge, the conventions we hold the content to, and the policies we apply to changes to the site itself. For environment setup, repository structure, and Mintlify components, see the README.
Before diving in, please read the org-wide Stellar Contribution Guide and Code of Conduct.
Important
The site moved from Docusaurus to Mintlify in October 2026. If you contributed before then, skim MIGRATING.md first. The change you'll notice most: we now write internal links as root-relative paths with no extension.
- Contributing to the Stellar Docs
- Fix something small (typos, broken links, code errors): open a PR directly.
- Suggest missing content or structural changes: open an issue first, and search existing issues to avoid duplicates.
- Pick up existing work: issues labeled
good first issueorhelp wantedare great entry points. Comment on the issue before starting so we can assign it. - Not sure? Ask in the Stellar Developer Discord. There's even a
#docschannel!
These guidelines exist because they're the difference between a PR that merges in days and one that sits for months.
- One concern per PR. A PR should do one describable thing. "Fix the broken links on the Hubble pages" merges fast; "clean up various things across 900 files" cannot be reviewed at all. If your change is mechanical and large, propose it in an issue first so we can agree on the approach (and possibly split it) before you do the work.
- Branch from current
main, and don't stack. Don't base a PR on another unmerged PR, and don't submit changes that depend on anchors, pages, or components that only exist in your other open PRs. Every PR must stand alone againstmain. - Discuss before building, for anything non-trivial. New components, styling that affects the whole site, tooling or config changes, and restructured URLs: open an issue and get a nod before writing code. This protects your time more than ours.
- Keep a reasonable number of PRs in flight. A handful of focused, active PRs gets better review attention than dozens of parallel ones.
We use pnpm. See the README for full setup.
pnpm install # install dependencies
pnpm start # Mintlify dev server (mint dev) at http://localhost:3000
pnpm format:mdx # format all md/mdx content
pnpm check # formatting, component padding, mint validate, and links
pnpm check:links # broken links, anchors, redirects, and snippetsA husky pre-commit hook runs the formatting and padding checks; if it fails, run pnpm format:mdx and re-commit. CI runs the same checks plus mint validate and the link check. Mintlify builds a preview deployment for PRs to main and comments with the link; for PRs from forks, a maintainer approves the preview first.
We follow Mintlify's conventions wherever we can. The notes below cover the places people most often trip, and the few rules that are ours.
- Internal links are root-relative URL paths with no file extension:
[fees](/docs/learn/fundamentals/fees-resource-limits-metering#inclusion-fee). This is a change from what we asked for under Docusaurus. Use a path from the site root rather than a relative one (../), and leave off the.mdxor.mdextension. - A section's landing page is its URL: link to
/docs/build, not toindex.mdxorREADME.mdx. - Run
pnpm check:linksbefore opening a PR. It catches broken links and anchors, whichmint validatedoesn't, and CI fails on them. It checks site pages withmint broken-linksand the agent skills in.mintlify/skills/withscripts/check-skill-links.mjs, since Mintlify serves those as raw Markdown, not pages. - Older pages still contain relative links. Converting them is welcome when you're already editing that area; please don't add new ones.
- External links to other Stellar properties use
https://stellar.org/...(nowww). - Links inside the specs in
openapi/andopenrpc/use fullhttps://developers.stellar.org/...URLs, so external consumers of those specs can resolve them.
- Every page needs an entry in
docs.jsonundernavigation. There's no autogenerated sidebar,_category_.json, orsidebar_position: the order indocs.jsonis the order in the sidebar. A page left out still builds and has a URL, but nobody will find it. - A folder's landing page is
index.mdx, set as its group'srootindocs.json. - Every page has frontmatter
titleanddescription(used for SEO, link previews, and the AI-facingllms.txt). Thetitleis the page's H1, so start the body at##. UsesidebarTitlewhen the sidebar needs a shorter label. - Pin anchors that other pages or external sites link to:
## SDEX {#sdex}. Otherwise an edited heading silently breaks every link to it. - Pages that shouldn't be published (drafts, contributor docs) go in
.mintignore. A page that should be reachable by URL but kept out of the sidebar and search engines can usehidden: trueinstead. - See Mintlify's pages and navigation docs for every frontmatter and navigation option.
- Files are served from their path in the repo. Put new images in
assets/<section>/and reference them with a root-relative path:. Older images live inimg/and are referenced via/img/.... - Always include meaningful alt text.
- Paths are case-sensitive.
- Use Mintlify's built-in components (callouts,
<Tabs>,<CodeGroup>,<Accordion>,<Steps>,<Card>, and so on). They need no imports. - Leave a blank line after every opening component tag and before every closing one.
pnpm format:mdxadds them, and the pre-commit hook checks. - Callouts (
<Note>,<Tip>,<Info>,<Warning>,<Danger>) take no title. Make the first line bold instead. - Multi-language examples use
<CodeGroup>: one fenced block per language, each with a title after the language (```js JavaScript). Single-language examples are plain fenced code blocks. See the README for an example. - Reusable content goes in
snippets/and is imported with a root path:import Security from "/snippets/anchor-platform/security.mdx";. - In multi-part guides, show imports and shared setup in the first snippet; later snippets on the same page may assume them.
- Generic example assets are
astroDollar(and use a second clearly named non-native asset when you need two).
- Each meeting is a page at
meetings/YYYY/MM/DD.mdx, titled with its date (2026-05-07), uniformly across the series. Copy an existing note for the layout, including the video embed. - Each note also needs an
<Update>entry onmeetings/index.mdx(newest first) withrss={{ date: "YYYY-MM-DD" }}, so the RSS feed carries the meeting date, and an entry indocs.jsonnavigation.
- "Stellar network": lowercase network. Likewise asset and anchor are not capitalized.
- Write SEP and CAP references without zero-padding (for example,
SEP-1andCAP-1, notSEP-0001andCAP-0001). Keep canonical filenames and URLs unchanged (for example,sep-0001.mdandcap-0001.md).
- We don't accept promotional contributions. PRs that add payment addresses, donation appeals, referral links, or marketing copy for a contributor's own product will be closed without review. This includes rewriting an existing page to center a specific project.
- Third-party tools and services belong on the pages built for them. Several pages exist to list ecosystem tooling and providers. Entries there are descriptive rather than promotional: what the thing does and how it works with Stellar, not why a reader should choose it. If your project clearly fits into one of these list pages, feel free to directly open a PR. If you're uncertain where or if your project fits, feel free to open an issue proposing it.
The bar for changes to the site itself (components, styling, docs.json, scripts, and dependencies) is deliberately higher than for content.
The Horizon, Anchor Platform, and Stellar Disbursement Platform API reference pages are rendered by Mintlify from the bundled OpenAPI specs in openapi/. Edit the spec sources, then run pnpm api:bundle, and commit the sources and the updated bundles together. Each endpoint page is a small .mdx file whose frontmatter names the spec and the endpoint (openapi: "openapi/horizon/bundled.yml GET /accounts"); adding an endpoint means adding one of those pages and a docs.json entry.
Stellar RPC and the Anchor Platform's JSON-RPC API are specified in openrpc/. Edit the spec sources, then run pnpm rpcspec:build (or pnpm rpcspec:validate) and commit the sources and the rebuilt *.openrpc.json files together. Their method pages are generated MDX: don't hand-edit the generated part of a method page (between the rpc-method comments). Run pnpm rpcspec:docs after the build to regenerate the pages, and commit them too. CI fails if the built specs or the pages are out of date with the sources. See openrpc/README.md.
Three groups of pages under docs/tools/cli/ are copies of content maintained in stellar/stellar-cli:
- The cookbook guides (
docs/tools/cli/cookbook/*.mdx) come from thecookbook/directory. - The CLI manual (
docs/tools/cli/stellar-cli.mdx) comes fromFULL_HELP_DOCS.md, which is itself generated from the CLI's--helptext (make docsin that repo). - The plugin list (
docs/tools/cli/plugins-list.mdx) is rebuilt byscripts/stellar_cli_plugins.mjsfrom the public GitHub repositories that carry thestellar-cli-plugintopic. To get a plugin listed, add that topic to its repository.
Automatic regeneration of the cookbook and manual is paused while the scripts are updated for Mintlify. Until then, the copies here are committed files: fix a mistake here and in stellar-cli, so the next regeneration doesn't bring it back.
To the extent possible, anything that changes a page's URL needs a redirect. Redirects are entries in config/redirects.json ({ "source": "/old/path", "destination": "/new/path" }; wildcards use :slug*). If your PR moves or renames pages, add the redirects and call it out in the description. pnpm check:links checks that redirect destinations exist.
We keep custom code on this site as small as possible, and prefer Mintlify's built-in components and settings. When something seems to need custom code, work down this list and stop at the first rung that works:
- Use what Mintlify provides: a built-in component, a
docs.jsonsetting, or a frontmatter option. - Ask Mintlify: file a request or report a bug, so the fix happens upstream.
- Write a snippet component: a
.jsxfile insnippets/. Don't add npm packages. - Site-wide CSS or JavaScript: only with prior discussion. Every
.cssand.jsfile in the repo loads on every page, so a stray script is a site-wide change. List any.jsor.cssfile that isn't meant for the site (repo tooling, for example) in.mintignore.
PRs that add site-wide styling or scripts without prior discussion in an issue will generally be closed with a request to follow this ladder.
Don't commit editor configuration (.vscode/, etc.) or machine-specific build settings. If the build genuinely needs a change (and CI demonstrates it), propose it in an issue.
- You can expect a first response from a docs maintainer within one week (usually faster).
- PRs need maintainer approval to merge. CI must pass: formatting, component padding,
mint validate, and the link check. A maintainer checks the Mintlify preview (for PRs from forks, after approving it). - If we ask for changes and the conversation goes quiet for a long stretch, we may close the PR to keep the queue honest. Closed is not rejected, and you're welcome to reopen when you're ready to continue.
- We close PRs that don't fit the conventions above, and we try to always say why and what a mergeable version would look like. Policy closes are about the change, never about you.
This guide was seeded in part by conventions proposed in #1044. Thanks to the community members who pushed for written standards.