From 381765f26b8a8357d04777942a4a86f2aeeb55ca Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 10 Feb 2024 16:33:29 -0600 Subject: [PATCH] add cog justfile command and generate when building docs --- .readthedocs.yaml | 5 +++++ Justfile | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 40baf96..aee21e3 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -4,6 +4,11 @@ version: 2 build: + apt_packages: + - just + jobs: + pre_build: + - just _cog os: ubuntu-22.04 tools: python: "3.12" diff --git a/Justfile b/Justfile index 5a6e848..198c494 100644 --- a/Justfile +++ b/Justfile @@ -71,6 +71,7 @@ migrate *ARGS: @docs-serve: #!/usr/bin/env sh + just _cog if [ -f "/.dockerenv" ]; then sphinx-autobuild docs docs/_build/html --host "0.0.0.0" else @@ -78,8 +79,12 @@ migrate *ARGS: fi @docs-build LOCATION="docs/_build/html": + just _cog sphinx-build docs {{ LOCATION }} +_cog: + cog -r docs/development/just.md + # ---------------------------------------------------------------------- # UTILS # ----------------------------------------------------------------------