Skip to content

Commit c0e9161

Browse files
refactor: ♻️ delete whole references folder pre and post render (#142)
# Description This PR makes the pre and post render steps delete the whole `references` folder, not just the `qmd` files. This PR needs a quick review. ## Checklist - [x] Added or updated tests - [x] Updated documentation - [x] Ran `just run-all` --------- Co-authored-by: Luke W. Johnston <lwjohnst86@users.noreply.github.com>
1 parent a360e54 commit c0e9161

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

template/_quarto.yml.jinja

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
project:
22
# TODO: change to extension name if using a custom extension
33
type: website
4-
# Delete auto-generated files from `quartodoc`
5-
post-render: rm -f docs/reference/*.qmd
64
render:
75
- "docs/*"
86
- "index.qmd"

template/justfile.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ build-website:
6161
export QUARTO_PYTHON=.venv/bin/python3
6262
# Delete any previously built files from quartodoc.
6363
# -f is to not give an error if the files don't exist yet.
64-
rm -f docs/reference/*.qmd
64+
rm -rf docs/reference
6565
uv run quartodoc build
6666
uv run quarto render --execute
6767

0 commit comments

Comments
 (0)