From 9567c45a54986746b562969936fadd562c387a2d Mon Sep 17 00:00:00 2001 From: Dan Benitah Date: Sun, 11 Feb 2024 23:22:43 +0000 Subject: [PATCH] ensuring samples get deployed as part of the docs too --- .github/workflows/6-jekyll-gh-pages.yml | 6 ++++++ casdk-docs/docs/samples/_category_.json | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 casdk-docs/docs/samples/_category_.json diff --git a/.github/workflows/6-jekyll-gh-pages.yml b/.github/workflows/6-jekyll-gh-pages.yml index bb74431ff..91234bdca 100644 --- a/.github/workflows/6-jekyll-gh-pages.yml +++ b/.github/workflows/6-jekyll-gh-pages.yml @@ -33,6 +33,12 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 + + - name: Copy Files + run: | + # Moving the samples folder at build& deploy time of the docs so that it appears in the end result + cp -r samples/* casdk-docs/docs/ + working-directory: ./casdk-docs - name: Install dependencies run: yarn install --frozen-lockfile diff --git a/casdk-docs/docs/samples/_category_.json b/casdk-docs/docs/samples/_category_.json new file mode 100644 index 000000000..8a7c9b36f --- /dev/null +++ b/casdk-docs/docs/samples/_category_.json @@ -0,0 +1,7 @@ +{ + "label": "Samples", + "position": 10, + "link": { + "type": "generated-index" + } +}