-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild-docs.just
More file actions
50 lines (39 loc) · 1.21 KB
/
build-docs.just
File metadata and controls
50 lines (39 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Make rustdoc warnings fatal
export RUSTDOCFLAGS := "-D warnings"
# Build all documentation, except old docs
all: cli-help file-format examples versions book api
# Build all documentation, including old docs
all_with_old: all old
# Build book
book:
@echo Building book
@mdbook build
# API documentation for Rust code
api:
@echo Generating API documentation
@cargo doc --no-deps --document-private-items
@# Put API documentation in with book
@rm -rf book/api
@mkdir -p book/api
@cp -r target/doc/* book/api
# Help for muse2 program
cli-help:
@echo Generating command-line help
@cargo run -- --markdown-help > docs/command_line_help.md
# Build documentation for file formats
file-format *ARGS:
@echo Building docs for file formats
@uv run docs/file_formats/generate_docs.py {{ARGS}}
# Build documentation for examples
examples:
@echo Building docs for examples
@uv run docs/generate_example_docs.py
# Build TOC for old versions
versions:
@echo Building TOC for old versions of documentation
@uv run docs/generate_versions_docs.py
# Build documentation for previous releases
old:
@# Clean output dir
@rm -rf book/release
@uv run docs/build_old_docs.py