Julia Documentation
Use this skill for the full documentation workflow: docs site setup, docstrings, doctests, and citations.
Quick Start
using Pkg
Pkg.activate("docs")
Pkg.add("Documenter")
Pkg.develop(path=pwd())
using Documenter
using MyPackage
DocMeta.setdocmeta!(MyPackage, :DocTestSetup, :(using MyPackage); recursive=true)
makedocs(
sitename = "MyPackage.jl",
modules = [MyPackage],
pages = ["Home" => "index.md", "API" => "api.md"],
)
julia -tauto --project=docs docs/make.jl
What Lives Here
- Documentation site structure and
docs/make.jl - Docstring conventions and templates
- Doctest authoring and Documenter-specific setup
- Citations and bibliography integration
Run doctests via julia-tests; use this skill for how to write and configure
them.
References
references/page-templates.mdreferences/docstring-templates.mdreferences/doctests.mdreferences/makedocs-options.mdreferences/at-blocks.mdreferences/citations-examples.md
Checklist
-
docs/Project.tomlexists and includes doc dependencies -
docs/make.jlloads all relevant modules and extensions -
DocMeta.setdocmeta!is configured for doctests - Inline doctest filters use Documenter's
filter = ...syntax when the scope should be a single block - Docstring-specific setup uses block
setup = ...or module-levelDocMeta, not ad hoc assumptions -
JULIA_DEBUG=Documenteris used when filter behavior is unclear - Citation setup is added if the docs cite papers or books
Source: krastanov/juliallmagentskills — distributed by TomeVault.