diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2018-06-23 23:48:40 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2018-06-23 23:50:18 +0200 |
commit | bba45a3f7b865698553769d2e7c71f68ae37c161 (patch) | |
tree | b78e57c9bf175c48a10b75225650da6fb551ae05 /docs/reference/libtracker-sparql/meson.build | |
parent | 56c65a7103f84199f16dba4de57b39bb01001481 (diff) | |
download | tracker-bba45a3f7b865698553769d2e7c71f68ae37c161.tar.gz |
docs: Fix broken XIncludes in libtracker-sparql docs
Add missing example files to content, and generate ontology
docs for the builtin ontology bits.
Diffstat (limited to 'docs/reference/libtracker-sparql/meson.build')
-rw-r--r-- | docs/reference/libtracker-sparql/meson.build | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/docs/reference/libtracker-sparql/meson.build b/docs/reference/libtracker-sparql/meson.build index a6cd6e10e..aa6d1d564 100644 --- a/docs/reference/libtracker-sparql/meson.build +++ b/docs/reference/libtracker-sparql/meson.build @@ -2,8 +2,34 @@ version_xml = configure_file(input: 'version.xml.in', output: 'version.xml', configuration: conf) +generated = custom_target('base-ontology-doc-generated', + output: 'gen-doc.stamp', + command: [ttl2sgml, + '-d', join_paths(source_root, 'src/ontologies/'), + '-o', join_paths(meson.current_build_dir(), 'xml/')], + depends: ttl2sgml, + # FIXME: this shouldn't be necessary, but currently the 'dependencies' + # parameter to gnome.gtkdoc() doesn't actually trigger building of custom + # targets. + build_always: true +) + +example_files = [ + 'examples/ontologies/defining-cardinality-1.rq', 'examples/ontologies/defining-cardinality-2.txt', + 'examples/ontologies/defining-cardinality-3.rq', 'examples/ontologies/defining-classes-1.txt', + 'examples/ontologies/defining-classes-2.txt', 'examples/ontologies/defining-classes-3.rq', + 'examples/ontologies/defining-fts-indexes-1.txt', 'examples/ontologies/defining-fts-indexes-2.rq', + 'examples/ontologies/defining-indexes-1.txt', 'examples/ontologies/defining-namespaces-1.txt', + 'examples/ontologies/defining-properties-1.txt', 'examples/ontologies/defining-properties-2.txt', + 'examples/ontologies/defining-properties-3.txt', 'examples/ontologies/defining-properties-4.rq', + 'examples/ontologies/defining-uniqueness-1.txt', 'examples/ontologies/defining-uniqueness-2.rq', + 'examples/ontologies/example.description', 'examples/ontologies/predefined-elements-1.txt', + 'examples/ontologies/predefined-elements-2.rq' +] + gnome.gtkdoc('libtracker-sparql', src_dir: join_paths(meson.current_source_dir(), '..', '..', '..', 'src', 'libtracker-sparql'), main_sgml: 'libtracker-sparql-docs.sgml', - content_files: ['overview.sgml', 'examples.sgml', 'ontologies.sgml', 'private-store.xml', 'migrating-1to2.xml'], + content_files: ['overview.sgml', 'examples.sgml', 'ontologies.sgml', 'private-store.xml', 'migrating-1to2.xml', example_files], + dependencies: generated, install: true) |