This package provides a Markdown / MkDocs backend to Documenter.jl.
The package can be added using the Julia package manager. From the Julia REPL, type ] to enter the Pkg REPL mode and run
pkg> add DocumenterVitepressTo enable the backend:
- Import the package in
make.jl, - Pass
format = DocumenterVitepress.MarkdownVitepress(...)tomakedocslike so:
using Documenter
using DocumenterVitepress
makedocs(;
format=DocumenterVitepress.MarkdownVitepress(repo = "...", devbranch = "...", devurl = "dev"),
)and enjoy the fruits of your labour!
Or even better, start from scratch with a generated template.
Tip
To get a fully customizable build, run
DocumenterVitepress.generate_template("/path/to/YourPackage/docs", "YourPackage")to populate all of the files which Vitepress requires.
And keep an eye for custom domains.
Caution
If you are deploying from a custom URL, like geo.makie.org,
please provide the entire URL to the deploy_url = "geo.makie.org" keyword argument
of MarkdownVitepress!
Otherwise, the documentation will not render correctly.
Because this is based on the Vitepress static site generator, you have to use NodeJS to view this site locally:
docs> npm idocs> npm run docs:dev and edit your make.jl file to add build_vitepress = false as a keyword argument to the MarkdownVitepress config, to save time. If you keep this running, perhaps in a separate Terminal window, it will automatically rebuild whenever you run make.jl.
The documentation needs documentation.
-a Bellevue Linux Users Group member, 2005-
