You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.6 KiB
1.6 KiB
[6. Interaction with Documenter.jl](@id Interaction-with-Documenter)
Literate can be used for any purpose, it spits out regular markdown files,
and notebooks. Typically, though, these files will be used to render documentation
for your package. The generators (Literate.markdown, Literate.notebook
and Literate.script) supports a keyword argument documenter that lets
the generator perform some extra things, keeping in mind that the source code have been
written with Documenter.jl in mind. So let's take a look at what will happen
if we set documenter = true:
Literate.markdown:
- The default code fence will change from
```julia # code ```to Documenters
@exampleblocks:```@examples $(name) # code ``` - The following
@metablock will be added to the top of the markdown page, which redirects the "Edit on GitHub" link on the top of the page to the source file rather than the generated.mdfile:```@meta EditURL = "$(relpath(inputfile, outputdir))" ```
Literate.notebook:
- Documenter style
@refs and@idwill be removed. This means that you can use@refand@idin the source file without them leaking to the notebook. - Documenter style markdown math
```math \int f dx ```is replaced with notebook compatible
$$ \int f dx $$
Literate.script:
- Documenter style
@refs and@idwill be removed. This means that you can use@refand@idin the source file without them leaking to the script.