From bb5cc95b10300c8f61ef403710b3a8e3b3349f66 Mon Sep 17 00:00:00 2001 From: nojaf Date: Tue, 13 Jan 2026 14:27:43 +0100 Subject: [PATCH] Try fix playground --- .github/workflows/gh-pages.yml | 4 ++++ .gitignore | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 580bf50..20cda42 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -35,6 +35,10 @@ jobs: - name: Export playground run: npx tree-sitter playground --export ./public + - name: Set LANGUAGE_BASE_URL for GitHub Pages + run: | + sed -i 's|LANGUAGE_BASE_URL = ""|LANGUAGE_BASE_URL = "/tree-sitter-rescript"|' ./public/index.html + - name: Setup Pages uses: actions/configure-pages@v5 diff --git a/.gitignore b/.gitignore index cb2240f..3b3596f 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,6 @@ zig-out/ # Others log.html test_wild/ + +# Playground +public/