Skip to content

Commit

Permalink
Documentation: remove old .html and .dox files
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 23, 2019
1 parent 8f3ab93 commit a6fc25e
Show file tree
Hide file tree
Showing 277 changed files with 16 additions and 62,805 deletions.
5 changes: 2 additions & 3 deletions gdal/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ INPUT = port \
frmts/gdalallregister.cpp \
alg \
frmts/vrt \
doc/doxygen \
apps \
ogr \
ogr/ogrsf_frmts \
Expand Down Expand Up @@ -456,7 +455,7 @@ EXAMPLE_RECURSIVE = NO
# directories that contain image that are included in the documentation (see
# the \image command).

IMAGE_PATH = doc/doxygen/grid
IMAGE_PATH =

# The INPUT_FILTER tag can be used to specify a program that doxygen should
# invoke to filter for each input file. Doxygen will invoke the filter program
Expand Down Expand Up @@ -577,7 +576,7 @@ HTML_HEADER =
# each generated HTML page. If it is left blank doxygen will generate a
# standard footer.

HTML_FOOTER = doc/doxygen/gdal_footer.html
HTML_FOOTER =

# Custom layout (see http://www.stack.nl/~dimitri/doxygen/manual/customize.html)
LAYOUT_FILE = DoxygenLayout.xml
Expand Down
38 changes: 5 additions & 33 deletions gdal/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,44 +158,16 @@ GDALmake.opt: GDALmake.opt.in config.status
config.status: configure
./config.status --recheck

doxygen:
doxygen

docs:
(cd html; rm -f *.*)
# Generate translated docs. Should go first, because index.html page should
# be overwritten with the main one later
doxygen -w html html/header.html html/footer.html html/stylesheet.css
sed -e 's,iso-8859-1,utf-8,g' html/header.html > html/header_ru.html
cp html/header.html html/header_br.html
(cd doc/doxygen/ru ; doxygen ; cp html/*.* ../../../html/. )
(cd doc/doxygen/br ; doxygen ; cp html/*.* ../../../html/. )
# Generate HTML docs
# Current DoxygenLayout.xml works only with Doxygen >= 1.8
@if [ `doxygen --version | awk -F . '{print $$1}'` -eq "1" ] && [ `doxygen --version | awk -F . '{print $$2}'` -lt "8" ]; then \
echo "Using deprecated doxygen version. Removing custom layout"; \
(cat Doxyfile; echo "LAYOUT_FILE=/dev/null") | doxygen -; \
else \
doxygen Doxyfile; \
fi
cp data/gdalicon.png html
cp doc/images/*.* html
cp doc/doxygen/grid/*.png html
cp frmts/*.html frmts/*/frmt_*.html frmts/*/drv_*.html html
cp frmts/openjpeg/*.xml html
cp frmts/wms/frmt_*.xml html
cp ogr/ogrsf_frmts/*/frmt_*.html html
cp ogr/ogrsf_frmts/*/drv_*.html html
cp ogr/ogrsf_frmts/ogr_formats.html html
cp ogr/*.html html
cp ogr/ogrsf_frmts/gpkg/geopackage_aspatial.html html
cp ogr/*.gif html
cp ogr/*.png html
(cd doc; make html)

.PHONY: man

man:
# Generate man pages
(cat Doxyfile ; echo "ENABLED_SECTIONS=man"; echo "INPUT=apps swig/python/scripts"; echo "FILE_PATTERNS=*.cpp *.dox"; echo "GENERATE_HTML=NO"; echo "GENERATE_MAN=YES" ; echo "LAYOUT_FILE=/dev/null") | doxygen -
# Remove "Directory reference" file. Not sure if there's a better way of doing it.
@find man -name '_home_*_gdal_apps_.1' -exec rm {} \;
(cd doc; make man)

all: default ogr-all

Expand Down

0 comments on commit a6fc25e

Please sign in to comment.