From 957e76e1a1564cc0573fae58c26b312718fde5a5 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 14 Nov 2024 15:38:17 +0100 Subject: [PATCH] Simplify docsnapper invocation --- .github/workflows/build_docs.yaml | 3 +-- docs/README.md | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_docs.yaml b/.github/workflows/build_docs.yaml index 751393cf033..8607f8d8234 100644 --- a/.github/workflows/build_docs.yaml +++ b/.github/workflows/build_docs.yaml @@ -83,8 +83,7 @@ jobs: cp -r target/aarch64-linux-android/doc/i_slint_backend_testing/ target/doc/ - name: "Generate Screenshots for Example Snippets" - working-directory: docs - run: cargo run -p slint-docsnapper -- src/content --overwrite + run: cargo run -p slint-docsnapper -- docs/src/content --overwrite - name: "Install Node dependencies for Slint and Node docs" run: pnpm install --frozen-lockfile - name: "Slint Language Documentation" diff --git a/docs/README.md b/docs/README.md index 0468cf4e2c8..4001cbd3fc9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -42,8 +42,7 @@ not be processed and optimized by Starlight. The docs use a lot of autogenerated content. First create all the screenshots which will be placed at `src/assets/generated/`. ```bash -cd docs -cargo run -p slint-docsnapper -- src/content --overwrite +cargo run -p slint-docsnapper -- docs/src/content --overwrite ``` Then generate the slint auto generated content.