summaryrefslogtreecommitdiff
path: root/xsd/doc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-10-05 11:31:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-10-05 11:32:11 +0200
commit55fc7e7eaf7ee659964d4d2308ba610bee88aadb (patch)
tree80ac5023c2de59360554527bc9a14e8cd3850354 /xsd/doc
parentc7c2bfc1d6542a56dd65d0ba5fed92d0a8029989 (diff)
Minor documentation fixes
Diffstat (limited to 'xsd/doc')
-rw-r--r--xsd/doc/buildfile10
-rw-r--r--xsd/doc/cxx/tree/manual/index.xhtml.in6
-rw-r--r--xsd/doc/xsd-prologue.xhtml5
3 files changed, 11 insertions, 10 deletions
diff --git a/xsd/doc/buildfile b/xsd/doc/buildfile
index 3d2b949..271d17e 100644
--- a/xsd/doc/buildfile
+++ b/xsd/doc/buildfile
@@ -27,6 +27,12 @@ svg{*}: extension = svg
./: css{default} xsd{custom-literals} {png svg}{**}
+# Note: doc_version is also used in the man pages and the manual.
+#
+doc_version = [string] "$version.major.$version.minor.$version.patch"
+if $version.pre_release
+ doc_version += "-$version.pre_release_string"
+
# Man pages.
#
@@ -51,10 +57,6 @@ pregenerated/{man1 xhtml}{*}: dist = (!$develop)
if $develop
{
- doc_version = [string] "$version.major.$version.minor.$version.patch"
- if $version.pre_release
- doc_version += "-$version.pre_release_string"
-
# Let's take the last four-digit number to cover 2000-2021,2022.
#
doc_year = $regex.replace($copyright, '.+[-, ]([0-9][0-9][0-9][0-9]) .+', '\1')
diff --git a/xsd/doc/cxx/tree/manual/index.xhtml.in b/xsd/doc/cxx/tree/manual/index.xhtml.in
index 5a7240a..5274229 100644
--- a/xsd/doc/cxx/tree/manual/index.xhtml.in
+++ b/xsd/doc/cxx/tree/manual/index.xhtml.in
@@ -8,7 +8,7 @@
<meta name="copyright" content="&#169; @copyright@"/>
<meta name="keywords" content="xsd,xml,schema,c++,mapping,data,binding,tree,serialization,guide,manual,examples"/>
<meta name="description" content="C++/Tree Mapping User Manual"/>
- <meta name="revision" content="4.1.0"/>
+ <meta name="revision" content="@doc_version@"/>
<link rel="stylesheet" type="text/css" href="../../../default.css" />
@@ -441,9 +441,9 @@
called C++/Tree.
</p>
- <p>Revision 4.1.0<br/> <!-- Remember to change revision in other places -->
+ <p>Revision @doc_version@<br/>
This revision of the manual describes the C++/Tree
- mapping as implemented by CodeSynthesis XSD version 4.1.0.
+ mapping as implemented by CodeSynthesis XSD version @doc_version@.
</p>
<p>This document is available in the following formats:
diff --git a/xsd/doc/xsd-prologue.xhtml b/xsd/doc/xsd-prologue.xhtml
index e52e1fc..6782a32 100644
--- a/xsd/doc/xsd-prologue.xhtml
+++ b/xsd/doc/xsd-prologue.xhtml
@@ -1,10 +1,9 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-
+<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>$project$ $version$ Compiler Command Line Manual</title>
+ <meta charset="UTF-8"/>
<meta name="version" content="$version$"/>
<meta name="copyright" content="&#169; $copyright$"/>
<meta name="keywords" content="xsd,xml,schema,c++,mapping,data,binding,code,generator,manual,man,page"/>