docs: use one Quarto source for README and Pages

This commit is contained in:
wassname
2026-06-25 13:06:12 +08:00
parent 024fb3d545
commit cfcb57b9ce
20 changed files with 533 additions and 2000 deletions
+2 -4
View File
@@ -8,10 +8,8 @@ model-matrix:
readme:
uv run python scripts/summarize_model_matrix.py
QUARTO_PYTHON="$(uv run python -c 'import sys; print(sys.executable)')" quarto render README.qmd --to gfm
PSTL_DOC_TARGET=gfm QUARTO_PYTHON="$(uv run python -c 'import sys; print(sys.executable)')" quarto render README.qmd --to gfm
pages:
uv run python scripts/summarize_model_matrix.py
QUARTO_PYTHON="$(uv run python -c 'import sys; print(sys.executable)')" quarto render docs/index.qmd --to html --output-dir _site
mkdir -p docs/_site/out/model_matrix
cp out/model_matrix/refusal_probe_seed24_n1_model_matrix.svg docs/_site/out/model_matrix/
PSTL_DOC_TARGET=html QUARTO_PYTHON="$(uv run python -c 'import sys; print(sys.executable)')" quarto render README.qmd --to html --output-dir docs/_site --output index.html