-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 1.22 KB
/
Copy pathMakefile
File metadata and controls
42 lines (30 loc) · 1.22 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
EXAMPLE_INTERLINKS=quartodoc/tests/example_interlinks
README.md: README.qmd
quarto render $<
# These 2 rules are used to generate the example_interlinks folder,
# which contains a full example for the interlinks filter to be tested
$(EXAMPLE_INTERLINKS): scripts/filter-spec/generate_files.py
uv run python $<
$(EXAMPLE_INTERLINKS)/test.qmd: scripts/filter-spec/generate_test_qmd.py
uv run python $<
$(EXAMPLE_INTERLINKS)/test.md: $(EXAMPLE_INTERLINKS)/test.qmd _extensions/interlinks/interlinks.lua
cd $(EXAMPLE_INTERLINKS) && quarto render test.qmd --to gfm
docs-build-readme: export BUILDING_README = 1
docs-build-readme:
# note that the input file is named GITHUB.qmd, because quart does not
# render files named README.qmd, and it is very cumbersome to work around
# this very strange behavior
cd docs \
&& quarto render GITHUB.qmd \
--to gfm \
--output README.md \
--output-dir ..
docs-build: export PLUM_SIMPLE_DOC=1
docs-build:
cd docs && uv run quartodoc build --verbose
cd docs && uv run quartodoc interlinks
cd docs && quarto add --no-prompt ..
uv run quarto render docs
test-overview-template:
uv run python scripts/build_tmp_starter.py
test-interlinks: quartodoc/tests/example_interlinks/test.md