summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-14 19:01:50 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-14 19:01:50 +0100
commitad8b7c2b7aa37460136a24175638f7f97fca40fc (patch)
treea10ef637a500e4fd95bfdead76ba61ad67ac597c /doc
parent00ed0bf0e75462f52633cf85884968976162cd7b (diff)
downloadgnutls-ad8b7c2b7aa37460136a24175638f7f97fca40fc.tar.gz
Added rules to build epub version.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am8
-rw-r--r--doc/epub.texi179
2 files changed, 187 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 28c16fafc1..ea4c37fde8 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -409,3 +409,11 @@ core.c.texi:
echo "(Guile not available, documentation not generated.)" > $@
endif !HAVE_GUILE
+
+gnutls.xml: epub.texi
+ makeinfo --docbook $<
+ sed -i 's/\&\#8226;//g' $@
+
+gnutls.epub: gnutls.xml
+ dbtoepub $<
+ epub-fix --delete-unmanifested gnutls.epub
diff --git a/doc/epub.texi b/doc/epub.texi
new file mode 100644
index 0000000000..3afe9798ac
--- /dev/null
+++ b/doc/epub.texi
@@ -0,0 +1,179 @@
+\input texinfo @c -*-texinfo-*-
+@comment %**start of header
+@setfilename gnutls.info
+@include version.texi
+@settitle The GnuTLS Manual
+
+@c don't indent the paragraphs.
+@paragraphindent 0
+
+@c Unify some of the indices.
+@syncodeindex tp fn
+@syncodeindex pg cp
+
+@comment %**end of header
+@c @finalout
+
+@copying
+Copyright @copyright{} 2001-2012 Free Software Foundation, Inc.
+
+@quotation
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with no
+Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
+copy of the license is included in the section entitled ``GNU Free
+Documentation License''.
+@end quotation
+@end copying
+
+@c reference to an internal function.
+@macro refint {func}
+@code{\func\}
+@end macro
+
+@macro xcite{ref}
+[@emph{\ref\}]
+@end macro
+
+@macro funcref{ref}
+@ref{\ref\}
+@end macro
+
+@macro funcintref{ref}
+@code{\ref\}
+@end macro
+
+@macro showfuncA{ref}
+@itemize
+@item @ref{\ref\}
+@end itemize
+@end macro
+
+@macro showfuncB{ref1,ref2}
+@itemize
+@item @ref{\ref1\}
+@item @ref{\ref2\}
+@end itemize
+@end macro
+
+@macro showfuncC{ref1,ref2,ref3}
+@itemize
+@item @ref{\ref1\}
+@item @ref{\ref2\}
+@item @ref{\ref3\}
+@end itemize
+@end macro
+
+@macro showfuncD{ref1,ref2,ref3,ref4}
+@itemize
+@item @ref{\ref1\}
+@item @ref{\ref2\}
+@item @ref{\ref3\}
+@item @ref{\ref4\}
+@end itemize
+@end macro
+
+@macro showfuncE{ref1,ref2,ref3,ref4,ref5}
+@itemize
+@item @ref{\ref1\}
+@item @ref{\ref2\}
+@item @ref{\ref3\}
+@item @ref{\ref4\}
+@item @ref{\ref5\}
+@end itemize
+@end macro
+
+@macro showfuncF{ref1,ref2,ref3,ref4,ref5,ref6}
+@itemize
+@item @ref{\ref1\}
+@item @ref{\ref2\}
+@item @ref{\ref3\}
+@item @ref{\ref4\}
+@item @ref{\ref5\}
+@item @ref{\ref6\}
+@end itemize
+@end macro
+
+@macro showfuncdesc{ref}
+@itemize
+@item @ref{\ref\}
+@end itemize
+@end macro
+
+@macro showenumdesc{ref,cap}
+@float Figure,\ref\
+@include enums/\ref\
+@caption{\cap\}
+@end float
+@end macro
+
+@contents
+
+@menu
+* Preface::
+* Introduction to GnuTLS::
+* Introduction to TLS::
+* Certificate authentication::
+* Shared-key and anonymous authentication::
+* More on certificate authentication::
+* How to use GnuTLS in applications::
+* GnuTLS application examples::
+* Other included programs::
+* Internal architecture of GnuTLS::
+* Support::
+* Error codes::
+* Supported ciphersuites::
+* API reference::
+* Copying Information::
+* Bibliography::
+* Function and Data Index::
+* Concept Index::
+@c * @mybibnode{}::
+@end menu
+
+@include cha-preface.texi
+
+@include cha-library.texi
+
+@include cha-intro-tls.texi
+
+@include cha-cert-auth.texi
+
+@include cha-shared-key.texi
+
+@include cha-cert-auth2.texi
+
+@include cha-gtls-app.texi
+
+@include cha-gtls-examples.texi
+
+@include cha-programs.texi
+
+@include cha-internals.texi
+
+@c appendices
+
+@include cha-support.texi
+
+@include cha-errors.texi
+
+@include cha-ciphersuites.texi
+
+@include cha-functions.texi
+
+@include cha-copying.texi
+
+@include cha-bib.texi
+
+@node Function and Data Index
+@unnumbered Function and Data Index
+
+@printindex fn
+
+@node Concept Index
+@unnumbered Concept Index
+
+@printindex cp
+
+@bye