diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 1cc8411..a3cce8f 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -5,7 +5,7 @@ on: - cron: '0 2 * * *' push: branches: - - 3.13 + - '*' workflow_dispatch: permissions: @@ -30,12 +30,16 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.13' - name: Setup virtual environment run: make venv working-directory: ./Doc + - name: Install custom Sphinx in Doc venv + run: | + ./Doc/venv/bin/pip install git+https://github.com/revisto/sphinx.git@stable/v8.2.3-rtl + - name: Checkout translation files uses: actions/checkout@v4 with: @@ -49,7 +53,7 @@ jobs: uses: sphinx-doc/github-problem-matcher@v1.1 - name: Build documentation - run: make -e SPHINXOPTS="--color -D language='fa' -D gettext_allow_fuzzy_translations=1 -W --keep-going" html + run: make -e SPHINXOPTS="--color -D language='fa' -D gettext_allow_fuzzy_translations=1 -D html_theme_options.is_rtl=True -W --keep-going" html working-directory: ./Doc - name: Setup Pages diff --git a/Makefile b/Makefile index 6a1c5a6..e199dda 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,7 @@ all: ensure_prerequisites -D latex_engine=xelatex \ -D latex_elements.inputenc= \ -D latex_elements.fontenc= \ + -D html_theme_options.is_rtl=True \ $(ADDITIONAL_ARGS)' \ SPHINXERRORHANDLING=$(SPHINXERRORHANDLING) \ $(MODE)