From 3052ab10c00c5c46d94d46a8aa136293699aed79 Mon Sep 17 00:00:00 2001 From: Simon Clark <52653938+jsimonclark@users.noreply.github.com> Date: Fri, 29 Mar 2024 00:55:58 +0100 Subject: [PATCH] Update doc.yml --- .github/workflows/doc.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 13aaeee..53d400c 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -41,6 +41,21 @@ jobs: docs-folder: "sphinx/" pre-build-command: "apt-get update -y; apt-get install -y pandoc" + - name: Create context file from ttl + run: python sphinx/ttl_to_context.py + + - name: Check if HTML context directory exists + run: | + if [ ! -d "sphinx/_build/html/context/" ]; then + echo "Creating HTML context directory" + sudo mkdir -p sphinx/_build/html/context/ + else + echo "HTML context directory already exists" + fi + + - name: Copy context file to HTML directory + run: sudo cp context/context.json sphinx/_build/html/context/ + - name: Upload artifacts uses: actions/upload-artifact@v4 with: