Merge branch 'doc/untrack-geany.html'

Closes PR#322.
This commit is contained in:
Colomban Wendling 2014-08-27 19:06:22 +02:00
commit 102169ee32
5 changed files with 32 additions and 6992 deletions

1
.gitignore vendored
View File

@ -99,6 +99,7 @@ Makefile.in
/doc/Doxyfile
/doc/Doxyfile.stamp
/doc/geany.1
/doc/geany.html
/doc/hacking.html
/doc/*.pdf
/doc/*.aux

View File

@ -56,16 +56,17 @@ geany.html: $(srcdir)/geany.css $(srcdir)/geany.txt
hacking.html: $(srcdir)/geany.css $(top_srcdir)/HACKING
$(AM_V_GEN)$(RST2HTML) -stg --stylesheet=$(srcdir)/geany.css $(top_srcdir)/HACKING $@
all-html-local: geany.html hacking.html
all-local: geany.html hacking.html
# clean on 'maintainer-clean' rather than 'clean' in case it was not
# built by Make but rather part of the distribution. This is fine even
# then, as configure will properly require what is needed to build it
# again if it is missing.
maintainer-clean-local: clean-html-local
clean-html-local:
-rm -f hacking.html
# FIXME: why is the generated HTML manual checked-in to VCS?
# -rm -f geany.html
-rm -f geany.html
else
all-html-local:;
clean-html-local:;
endif
# PDF user manual
@ -74,14 +75,12 @@ if WITH_RST2PDF
geany-$(VERSION).pdf: geany.txt
$(AM_V_GEN)$(RST2PDF) $(srcdir)/geany.txt -o $@
all-pdf-local: geany-$(VERSION).pdf
all-local: geany-$(VERSION).pdf
clean-local: clean-pdf-local
clean-pdf-local:
-rm -f geany-$(VERSION).pdf
else
all-pdf-local:;
clean-pdf-local:;
endif
# API Documentation
@ -100,19 +99,14 @@ doxygen_sources = \
Doxyfile.stamp: Doxyfile $(doxygen_sources)
$(AM_V_GEN)$(DOXYGEN) Doxyfile && echo "" > $@
all-api-docs-local: Doxyfile.stamp
all-local: Doxyfile.stamp
clean-local: clean-api-docs-local
clean-api-docs-local:
-rm -rf reference/ Doxyfile.stamp
else
all-api-docs-local:;
clean-api-docs-local:;
endif
all-local: all-html-local all-pdf-local all-api-docs-local
clean-local: clean-html-local clean-pdf-local clean-api-docs-local
uninstall-local:
rm -rf $(DOCDIR);

File diff suppressed because it is too large Load Diff

View File

@ -12,11 +12,19 @@ dnl For HTML documentation generation
dnl
AC_DEFUN([GEANY_CHECK_DOCUTILS_HTML],
[
AC_REQUIRE([GEANY_CHECK_REVISION])
dnl we require rst2html by default unless we don't build from Git
dnl and already have the HTML manual built in-tree
html_docs_default=yes
AS_IF([test "$REVISION" = "-1" && test -f "$srcdir/doc/geany.html"],
[html_docs_default=auto])
AC_ARG_ENABLE([html-docs],
[AS_HELP_STRING([--enable-html-docs],
[generate HTML documentation using rst2html [default=no]])],
[generate HTML documentation using rst2html [default=auto]])],
[geany_enable_html_docs="$enableval"],
[geany_enable_html_docs="no"])
[geany_enable_html_docs="$html_docs_default"])
AC_ARG_VAR([RST2HTML], [Path to Docutils rst2html executable])
AS_IF([test "x$geany_enable_html_docs" != "xno"],
[
@ -26,7 +34,9 @@ dnl TODO: try rst2html.py first
AS_IF([test "x$RST2HTML" != "xno"],
[geany_enable_html_docs="yes"],
[test "x$geany_enable_html_docs" = "xyes"],
[AC_MSG_ERROR([Documentation enabled but rst2html not found])],
[AC_MSG_ERROR([Documentation enabled but rst2html not found.
You can explicitly disable building of the HTML manual with --disable-html-docs,
but you then may not have a local copy of the HTML manual.])],
[geany_enable_html_docs="no"])
])
AM_CONDITIONAL([WITH_RST2HTML], [test "x$geany_enable_html_docs" != "xno"])
@ -40,9 +50,9 @@ AC_DEFUN([GEANY_CHECK_DOCUTILS_PDF],
[
AC_ARG_ENABLE([pdf-docs],
[AS_HELP_STRING([--enable-pdf-docs],
[generate PDF documentation using rst2pdf [default=no]])],
[generate PDF documentation using rst2pdf [default=auto]])],
[geany_enable_pdf_docs="$enableval"],
[geany_enable_pdf_docs="no"])
[geany_enable_pdf_docs="auto"])
AC_ARG_VAR([RST2PDF], [Path to Docutils rst2pdf executable])
AS_IF([test "x$geany_enable_pdf_docs" != "xno"],
[

View File

@ -514,6 +514,11 @@ def build(bld):
'top_builddir': bld.out_dir,
'top_srcdir': bld.top_dir,})
# build HTML documentation if it is not part of the tree already, as it is required for install
# FIXME: replace this with automatic building if source changed/destination is missing
if not bld.path.find_resource('doc/geany.html'):
htmldoc(bld)
###
# Install files
###