Skip to content

Commit f438555

Browse files
committed
Make sure to run everything through poetry when building documentation.
1 parent fef91a3 commit f438555

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828

2929
- name: Building documentation
3030
run: |
31-
cd docs && make clean && make html
31+
cd docs && poetry run make clean && poetry run make html
3232
3333
- name: Publishing documentation
3434
run: |
35-
ghp-import -f -n docs/_build/html
35+
poetry run ghp-import -f -n docs/_build/html
3636
3737
- name: Publishing
3838
env:

docs/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ BUILDDIR = _build
1212
help:
1313
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1414

15-
import:
16-
ghp-import -n -c flask-babel.tkte.ch "$(BUILDDIR)/html"
17-
1815
.PHONY: help Makefile
1916

2017
# Catch-all target: route all unknown targets to Sphinx using the new

flask_babel/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class BabelConfiguration:
4040

4141
def get_babel(app=None) -> 'BabelConfiguration':
4242
app = app or current_app
43+
if not hasattr(app, 'extensions'):
44+
app.extensions = {}
4345
return app.extensions['babel']
4446

4547

0 commit comments

Comments
 (0)