summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-05-19 15:38:20 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-05-22 14:18:18 +0100
commitf23b72d19a60283f49d3531acde8eadd6dd19455 (patch)
tree9d773ac04fb5c94d09781e42940483c836e77cf0
parentb74d75b964c60a927f67fd784156852990e6dba6 (diff)
downloadpango-f23b72d19a60283f49d3531acde8eadd6dd19455.tar.gz
Simplify the documentation build
Now that we don't have to care about Autotools, we can simplify the documentation build, by removing bits and pieces from ages past.
-rw-r--r--docs/meson.build15
-rw-r--r--docs/pango-docs.xml (renamed from docs/pango-docs.sgml)9
-rw-r--r--docs/pango-markup.xml (renamed from docs/pango_markup.sgml)0
-rw-r--r--docs/version.xml.in1
4 files changed, 7 insertions, 18 deletions
diff --git a/docs/meson.build b/docs/meson.build
index 336903bd..d74b3ad7 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -1,11 +1,5 @@
subdir('xml')
-version_xml_conf = configuration_data()
-version_xml_conf.set('PANGO_VERSION', meson.project_version())
-configure_file(input: 'version.xml.in',
- output: 'version.xml',
- configuration: version_xml_conf)
-
private_headers = [
'ftglue.h',
'modules.h',
@@ -51,8 +45,7 @@ if host_system != 'windows'
endif
content_files = [
- 'pango_markup.sgml',
- 'version.xml',
+ 'pango-markup.xml',
]
html_images = [
@@ -81,7 +74,7 @@ cairo_docpath = join_paths(cairo_prefix, 'share', 'gtk-doc', 'html')
docpath = join_paths(pango_datadir, 'gtk-doc', 'html')
gnome.gtkdoc('pango',
- main_xml: 'pango-docs.sgml',
+ main_xml: 'pango-docs.xml',
src_dir: [
join_paths(meson.source_root(), 'pango'),
join_paths(meson.build_root(), 'pango'),
@@ -94,10 +87,6 @@ gnome.gtkdoc('pango',
'--ignore-decorators=_PANGO_EXTERN',
'--ignore-headers=' + ' '.join(private_headers),
],
- mkdb_args: [
- '--sgml-mode',
- '--output-format=xml',
- ],
fixxref_args: [
'--html-dir=@0@'.format(docpath),
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')),
diff --git a/docs/pango-docs.sgml b/docs/pango-docs.xml
index 3c74d4ad..245af123 100644
--- a/docs/pango-docs.sgml
+++ b/docs/pango-docs.xml
@@ -2,13 +2,14 @@
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
-<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
-<!ENTITY version SYSTEM "version.xml">
+ <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
+ <!ENTITY % gtkdocentities SYSTEM "xml/gtkdocentities.ent">
+ %gtkdocentities;
]>
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
<bookinfo>
<title>Pango Reference Manual</title>
- <releaseinfo>for Pango &version;</releaseinfo>
+ <releaseinfo>for Pango &package_version;</releaseinfo>
</bookinfo>
<chapter id="pango">
@@ -18,7 +19,7 @@
<xi:include href="xml/fonts.xml"/>
<xi:include href="xml/text-attributes.xml"/>
<xi:include href="xml/tab-stops.xml"/>
- <xi:include href="pango_markup.sgml"/>
+ <xi:include href="pango-markup.xml"/>
<xi:include href="xml/layout.xml"/>
<xi:include href="xml/scripts.xml"/>
<xi:include href="xml/bidi.xml"/>
diff --git a/docs/pango_markup.sgml b/docs/pango-markup.xml
index c2ba377c..c2ba377c 100644
--- a/docs/pango_markup.sgml
+++ b/docs/pango-markup.xml
diff --git a/docs/version.xml.in b/docs/version.xml.in
deleted file mode 100644
index 8f556477..00000000
--- a/docs/version.xml.in
+++ /dev/null
@@ -1 +0,0 @@
-@PANGO_VERSION@