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/