aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2021-03-13 22:04:10 +1300
committerMike Taves <mwtoews@gmail.com>2021-03-14 07:06:07 +1300
commit955bb4e9b6a1b6fe9cccd0e57aed573bd40ae8df (patch)
tree045de011faeef7957731efc5ecbfeab47edf59ba /docs
parentb2fde1adf499efd8ea27d396a6b63bec01fc64b2 (diff)
downloadPROJ-955bb4e9b6a1b6fe9cccd0e57aed573bd40ae8df.tar.gz
PROJ-955bb4e9b6a1b6fe9cccd0e57aed573bd40ae8df.zip
Set the container locale for spelling [skip ci]
Diffstat (limited to 'docs')
-rw-r--r--docs/docbuild/Dockerfile10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/docbuild/Dockerfile b/docs/docbuild/Dockerfile
index 4cd5b07c..f412cd26 100644
--- a/docs/docbuild/Dockerfile
+++ b/docs/docbuild/Dockerfile
@@ -4,12 +4,16 @@ RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3-dev python3-pip g++ doxygen dvipng latexmk \
cmake libjpeg8-dev zlib1g-dev texlive-latex-base \
texlive-latex-extra git latex-cjk-all texlive-lang-all \
- graphviz python3-matplotlib wget unzip enchant
+ graphviz python3-matplotlib wget unzip enchant locales
RUN python3 -m pip install Sphinx breathe \
sphinx_bootstrap_theme awscli sphinxcontrib-bibtex \
sphinx_rtd_theme recommonmark sphinx-markdown-tables \
sphinxcontrib-spelling
-# workaround for sphinxcontrib-spelling 7.1.0
-RUN sed -i '188s/except ImportError/except \(ImportError, UnicodeError\)/' /usr/local/lib/python3.6/dist-packages/sphinxcontrib/spelling/filters.py
+# Set the locale for spelling
+RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen && \
+ dpkg-reconfigure --frontend=noninteractive locales && \
+ update-locale LANG=en_GB.UTF-8
+
+ENV LANG en_GB.UTF-8