Skip to content

Commit

Permalink
Merge pull request #1374 from mathbunnyru/asalikhov/docs_build_process
Browse files Browse the repository at this point in the history
Make docs build process less obscure
  • Loading branch information
mathbunnyru committed Jun 21, 2021
2 parents 7db544f + 28f4035 commit 34992fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 60 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- master
- main
paths:
- "docs/**"
- ".github/workflows/sphinx.yml"
Expand Down Expand Up @@ -35,11 +36,10 @@ jobs:
- name: Build Documentation
run: make docs
- name: Extract Source Strings
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
working-directory: docs
run: |
make gettext
sphinx-intl update -p _build/gettext -l en
sphinx-build -M gettext ./ ./_build/
sphinx-intl update -p ./_build/gettext -l en
- name: Push Strings to Master
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
run: make git-commit
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dev-env: ## install libraries required to build docs and run tests
@pip install -r requirements-dev.txt

docs: ## build HTML documentation
make -C docs html
sphinx-build docs/ docs/_build/

git-commit: LOCAL_PATH?=.
git-commit: GITHUB_SHA?=$(shell git rev-parse HEAD)
Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

36 changes: 0 additions & 36 deletions docs/make.bat

This file was deleted.

0 comments on commit 34992fe

Please sign in to comment.