Skip to content

Commit

Permalink
update Makefile and requirement.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichigmf committed Jul 2, 2024
1 parent 1fe18c9 commit d9af4e1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ SPHINXOPTS ?= --keep-going -j auto -W
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
LA = en
SPHINXINTL ?= sphinx-intl

# Use O="-D enable_redirects=1" with "make html" to create redirects

Expand Down Expand Up @@ -71,9 +73,13 @@ generated_rst_files: $(BUILDDIR)/.doxygen_up_to_date
$(PYTHON) "$(SOURCEDIR)/build_driver_summary.py" "$(SOURCEDIR)/drivers/raster" raster_driver_summary "$(SOURCEDIR)/drivers/raster/driver_summary.rst"
$(PYTHON) "$(SOURCEDIR)/build_driver_summary.py" "$(SOURCEDIR)/drivers/vector" vector_driver_summary "$(SOURCEDIR)/drivers/vector/driver_summary.rst"

update: gettext
$(SPHINXINTL) update -d $(SOURCEDIR)/locale -p $(BUILDDIR)/gettext -l $(LA)

.PHONY: html latexpdf
html: generated_rst_files
$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
echo "$(SPHINXOPTS) $(SPHINXINTLOPTS) $(LA)"
$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)/$(LA)" $(SPHINXOPTS) $(O)
# Hack to hide the TOC
sed 's/<div class="toctree-wrapper compound">/<div class="toctree-wrapper compound" style="display: none;">/' < "$(BUILDDIR)/html/drivers/raster/index.html" > "$(BUILDDIR)/html/drivers/raster/index.html.mod"
mv "$(BUILDDIR)/html/drivers/raster/index.html.mod" "$(BUILDDIR)/html/drivers/raster/index.html"
Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ recommonmark
sphinx-markdown-tables
sphinxcontrib-spelling
sphinxcontrib-jquery
sphinx-intl
Binary file modified doc/source/locale/ja/LC_MESSAGES/faq.mo
Binary file not shown.
2 changes: 2 additions & 0 deletions doc/source/locale/ja/LC_MESSAGES/faq.po
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ msgid ""
"To some extent this is now covered by the :ref:`raster_driver_tut` and "
":ref:`vector_driver_tut`"
msgstr ""
"現在ある程度は :ref:`raster_driver_tut` と "
":ref:`vector_driver_tut` で説明されています。"

#: ../../source/faq.rst:91
msgid "Is GDAL thread-safe ?"
Expand Down

0 comments on commit d9af4e1

Please sign in to comment.