From 0b3fe73178ed89caa3440fce50bc78f012b68430 Mon Sep 17 00:00:00 2001 From: Kazuya Takei Date: Mon, 6 May 2024 19:57:15 +0900 Subject: [PATCH 1/2] ci: Use mini18n when deployment to github pages --- .github/workflows/deploy-demo.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml index 362a4be..f063e70 100644 --- a/.github/workflows/deploy-demo.yml +++ b/.github/workflows/deploy-demo.yml @@ -28,14 +28,15 @@ jobs: python tools/fetch_revealjs.py pip install ".[screenshot,demo]" playwright install - make -C demo demo + make -C demo mini18n-revealjs + touch demo/_build/mini18n-revealjs/.nojeykll env: GTAGJS_IDS: ${{ secrets.GTAGJS_IDS }} DEMO_URL_BASE: "https://attakei.github.io/sphinx-revealjs/" - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: - path: demo/_build/demo/ + path: demo/_build/mini18n-revealjs/ deploy: needs: build runs-on: ubuntu-latest From 0ca9d7d76406504a5fe38195a54acf216f63985d Mon Sep 17 00:00:00 2001 From: Kazuya Takei Date: Mon, 6 May 2024 19:57:49 +0900 Subject: [PATCH 2/2] demo: Remove target --- demo/Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/demo/Makefile b/demo/Makefile index 03749b5..d87d2ab 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -11,13 +11,7 @@ BUILDDIR = _build help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -.PHONY: help Makefile demo intl - -demo: - @$(SPHINXBUILD) -b dirrevealjs "$(SOURCEDIR)" "$(BUILDDIR)/demo/ja" $(SPHINXOPTS) $(O) -D language="ja" - @$(SPHINXBUILD) -b dirrevealjs "$(SOURCEDIR)" "$(BUILDDIR)/demo/en" $(SPHINXOPTS) $(O) - ./gen-index.py $(BUILDDIR)/demo - touch $(BUILDDIR)/demo/.nojekyll +.PHONY: help Makefile intl intl: @$(SPHINXBUILD) -M gettext "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)