diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-03-19 10:15:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-19 10:15:56 +0100 |
| commit | 663a77095defb6a3a96faf75995a77e1964c9843 (patch) | |
| tree | d2c68b609e3d1a25f8c695287559b57391f22043 /docs | |
| parent | d20145a979e32f0d2dc09398a4e8f9d2eccf8820 (diff) | |
| parent | 955bb4e9b6a1b6fe9cccd0e57aed573bd40ae8df (diff) | |
| download | PROJ-663a77095defb6a3a96faf75995a77e1964c9843.tar.gz PROJ-663a77095defb6a3a96faf75995a77e1964c9843.zip | |
Merge pull request #2575 from mwtoews/container-locale
Set the container locale for spelling
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/docbuild/Dockerfile | 10 |
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 |
