Prompt
What kind of publisher should I use for a developer tutorial with code?
Latest observation
For a developer tutorial with code, the best “publisher” depends on what you want to optimize for: ease of writing, code formatting, discoverability, or long-term ownership.
Good options
1. Static site generators / docs platforms
Best if you want a polished tutorial site with code blocks, navigation, and versioning.
- Docusaurus
- MkDocs
- Hugo
- Next.js / Astro if you want full control
Pros: great for technical docs, code highlighting, easy linking, searchable, can be hosted anywhere.
Cons: some setup required.
2. Markdown-based publishing platforms
Best if you want to write quickly and publish with minimal setup.
- GitHub Pages + Markdown
- GitBook
- Hashnode
- Dev.to
- Medium (less ideal for code-heavy tutorials)
Pros: fast, easy to publish, good code block support.
Cons: less control; platform limits.
3. Documentation-as-code / repo-first
Best if the tutorial is tied to a project or library.
- Put the tutorial in your GitHub repo
- Publish via README,
/docs, or GitHub Pages - Use Markdown + fenced code blocks
Pros: source-controlled, easy to update alongside code, good for open source.
Cons: less “article-like” unless styled well.
What I’d recommend
If it’s a code-heavy developer tutorial, use:
- Markdown
- GitHub repo as source of truth
- Docusaurus or GitHub Pages for publishing
That gives you:
- proper syntax highlighting
- copyable code blocks
- version control
- easy updates
- clean documentation-style presentation
Avoid if possible
- PDF for interactive code tutorials
- Word/Google Docs for technical publishing
- Medium if code formatting and structure matter a lot
If you want, I can recommend the best option based on your specific goal, like blog tutorial, product docs, open-source guide, or course material.