Skip to content

Commit 34992fe

Browse files
authored
Merge pull request #1374 from mathbunnyru/asalikhov/docs_build_process
Make docs build process less obscure
2 parents 7db544f + 28f4035 commit 34992fe

File tree

4 files changed

+4
-60
lines changed

4 files changed

+4
-60
lines changed

.github/workflows/sphinx.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- master
11+
- main
1112
paths:
1213
- "docs/**"
1314
- ".github/workflows/sphinx.yml"
@@ -35,11 +36,10 @@ jobs:
3536
- name: Build Documentation
3637
run: make docs
3738
- name: Extract Source Strings
38-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
3939
working-directory: docs
4040
run: |
41-
make gettext
42-
sphinx-intl update -p _build/gettext -l en
41+
sphinx-build -M gettext ./ ./_build/
42+
sphinx-intl update -p ./_build/gettext -l en
4343
- name: Push Strings to Master
4444
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
4545
run: make git-commit

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dev-env: ## install libraries required to build docs and run tests
6060
@pip install -r requirements-dev.txt
6161

6262
docs: ## build HTML documentation
63-
make -C docs html
63+
sphinx-build docs/ docs/_build/
6464

6565
git-commit: LOCAL_PATH?=.
6666
git-commit: GITHUB_SHA?=$(shell git rev-parse HEAD)

docs/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/make.bat

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)