tests/Makefile
doc/Makefile
doc/manual/Makefile
+ doc/manual/version.xml
gobject-introspection/Makefile
vapigen/vapigen.pc
vapigen/Makefile
+version.xml
html/
devhelp/
endif
$(builddir)/devhelp/*: devhelp
-devhelp: manual.xml devhelp.xsl xhtml.xsl
+devhelp: manual.xml version.xml devhelp.xsl xhtml.xsl
@$(MKDIR_P) $@
$(AM_V_GEN)$(XSLTPROC) \
- --xinclude $(srcdir)/devhelp.xsl \
- $(srcdir)/manual.xml \
- > $(builddir)/devhelp/$(BOOK_NAME).devhelp2
+ --xinclude \
+ --output $@/$(BOOK_NAME).devhelp2 \
+ $(srcdir)/devhelp.xsl \
+ $(srcdir)/manual.xml
@$(XSLTPROC) \
--xinclude \
- --stringparam outdir $@ \
--output $@/index.html \
$(srcdir)/xhtml.xsl \
$(srcdir)/manual.xml
@cp $(srcdir)/default.css $@
@touch $@
-html: manual.xml xhtml.xsl
+html: manual.xml version.xml xhtml.xsl
@$(MKDIR_P) $@
$(AM_V_GEN)$(XSLTPROC) \
--xinclude \
- --stringparam outdir $@ \
--output $@/index.html \
$(srcdir)/xhtml.xsl \
$(srcdir)/manual.xml
rm -rf devhelp
rm -rf html
+CLEANFILES = \
+ version.xml \
+ $(NULL)
+
EXTRA_DIST = \
common.xsl \
default.css \
white-space: pre-wrap;
}
+.c-document_version { border: solid 2px #ccc;
+ border-radius: 4px;
+ width: 100%;
+ font-sizde: 95%;
+}
+.c-document_version tr td:first-child { text-align: right; }
+.c-document_version tr:nth-child(odd) { background-color: #f0f0f0; }
+
blockquote span.literal {
font-family: monospace;
font-weight: bold;
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN' 'http://www.docbook.org/xml/4.4/docbookx.dtd'>
+<articleinfo>
+<abstract>
+<para>The Vala programming language is a high level language that produces binaries for the native platform. The binaries maintain the C Application Binary Interface (ABI) and so can be built as either an application or a library.</para>
+<para>The Vala Reference Manual gives details on Vala's syntax and type system, including polymorphism using interfaces and type parameters (generics). Vala includes additional code generation routines, for example D-Bus inter-process communication and GTK+3 composite templates, these are only referred to in the Attributes section. The reference manual does not provide a tutorial for these features.</para>
+<para>Vala is developed in a collaborative and self-supporting way by its users. They provide bug reports, documentation, patches, patch reviews and core development. Following this model of development the manual has an editable version at <ulink url="https://wiki.gnome.org/Projects/Vala/Manual">https://wiki.gnome.org/Projects/Vala/Manual</ulink> .</para>
+</abstract>
+<edition>@PACKAGE_SUFFIX@</edition>
+<releaseinfo>@VERSION@
+<remark>Draft, document contains omissions and might contain errors</remark>
+</releaseinfo>
+<copyright><holder>The GNOME Project</holder></copyright>
+<legalnotice><ulink url="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International</ulink></legalnotice>
+</articleinfo>
version="1.0"
xmlns:str="http://exslt.org/strings"
xmlns:exsl="http://exslt.org/common"
+ xmlns:date="http://exslt.org/dates-and-times"
extension-element-prefixes="exsl"
- exclude-result-prefixes="str"
+ exclude-result-prefixes="str date"
>
<xsl:import href="common.xsl"/>
<xsl:template match="article/section" mode="toc">
<xsl:apply-templates select="title"/>
+ <xsl:apply-templates select="document('version.xml')/articleinfo" mode="toc"/>
<ul class="toc">
<xsl:for-each select="section">
<li>
<xsl:apply-templates select="section"/>
</xsl:template>
+ <xsl:template match="articleinfo" mode="toc">
+ <xsl:apply-templates select="abstract"/>
+ <table class="c-document_version">
+ <tr><td>Vala version:</td><td><xsl:apply-templates select="str:replace(edition, '-', '')"/></td></tr>
+ <tr><td>Release:</td><td><xsl:apply-templates select="releaseinfo/text()"/></td></tr>
+ <tr><td>Status:</td><td><xsl:apply-templates select="releaseinfo/remark"/></td></tr>
+ <tr><td>Copyright:</td>
+ <td>
+ <xsl:text>© </xsl:text>
+ <xsl:apply-templates select="copyright/holder"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="date:year()"/>
+ </td>
+ </tr>
+ <tr><td>License:</td><td><xsl:apply-templates select="legalnotice"/></td></tr>
+ </table>
+ </xsl:template>
+
<xsl:template match="article/section/section/title">
<h2><xsl:value-of select="."/></h2>
</xsl:template>