Skip to content

Commit a26b010

Browse files
Add small documentation README
1 parent d842138 commit a26b010

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

docs/README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Generating and Previewing Documentation
2+
3+
## Adding Documentation
4+
5+
`Documenter.jl` is used to generate package documentation.
6+
7+
The general guidelines are to have documentation split into meaningful sections,
8+
none of which are too long. If a new functionality is added then create a new
9+
documentation page in `src`. Then map that markdown file to the a section in the
10+
documentation in `make.jl` in the `pages` map.
11+
12+
## Previewing Documenation
13+
14+
From the `docs` directory:
15+
16+
```julia
17+
julia --project
18+
_
19+
_ _ _(_)_ | Documentation: https://docs.julialang.org
20+
(_) | (_) (_) |
21+
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
22+
| | | | | | |/ _` | |
23+
| | |_| | | | (_| | | Version 1.11.1 (2024-10-16)
24+
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
25+
|__/ |
26+
27+
julia> include("make.jl")
28+
[ Info: SetupBuildDirectory: setting up build directory.
29+
[ Info: Doctest: running doctests.
30+
[ Info: ExpandTemplates: expanding markdown templates.
31+
[ Info: CrossReferences: building cross-references.
32+
[ Info: CheckDocument: running document checks.
33+
[ Info: Populate: populating indices.
34+
[ Info: RenderDocument: rendering document.
35+
[ Info: HTMLWriter: rendering HTML pages.
36+
┌ Warning: Generated HTML over size_threshold_warn limit: lib/internal.md
37+
│ Generated file size: 128.16 (KiB)
38+
│ size_threshold_warn: 100.0 (KiB)
39+
│ size_threshold: 200.0 (KiB)
40+
│ HTML file: lib/internal/index.html
41+
└ @ Documenter.HTMLWriter ~/.julia/packages/Documenter/C1XEF/src/html/HTMLWriter.jl:1828
42+
[ Info: Automatic `version="0.4.3"` for inventory from ../Project.toml
43+
┌ Warning: Documenter could not auto-detect the building environment. Skipping deployment.
44+
└ @ Documenter ~/.julia/packages/Documenter/C1XEF/src/deployconfig.jl:76
45+
46+
julia> using LiveServer
47+
48+
julia> LiveServer.serve(dir="build/")
49+
✓ LiveServer listening on http://localhost:8000/ ...
50+
(use CTRL+C to shut down)
51+
```

0 commit comments

Comments
 (0)