summaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2022-08-28 14:16:35 +0200
committerCarlos Garnacho <carlosg@gnome.org>2022-08-30 16:56:47 +0000
commit051359acecdab6eedc36c781217de54bcb5c2d06 (patch)
tree597a5f3d0e585268e87728d2fa332556c22072ff /docs/reference
parent9d22a62e80d073e8cf108002d0651846d242062c (diff)
downloadtracker-051359acecdab6eedc36c781217de54bcb5c2d06.tar.gz
docs: Avoid warnings doubly parsing base ontology
Separate ontology parsing so that we can provide separate locations for .ontology and .description files, so that we can avoid doubly parsing the base ontology just for the sake of parsing the description files. This avoids redefinition warnings by the ontology docgen tool while generating the docs for the base ontology.
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/libtracker-sparql/meson.build12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/reference/libtracker-sparql/meson.build b/docs/reference/libtracker-sparql/meson.build
index 72c03e352..b6dad9c9a 100644
--- a/docs/reference/libtracker-sparql/meson.build
+++ b/docs/reference/libtracker-sparql/meson.build
@@ -13,8 +13,10 @@ base_ontology_docs = custom_target('ontology-docgen',
output: ['dc-ontology.md'],
command: [tracker_docgen,
'--md',
- '-d', join_paths(source_root, 'src/ontologies/'),
- '-o', join_paths(meson.current_build_dir())],
+ '--ontology-dir', meson.current_build_dir(), # Directory without ontology files
+ '--output-dir', meson.current_build_dir(),
+ '--introduction-dir', meson.current_source_dir(),
+ '--ontology-description-dir', join_paths(source_root, 'src/ontologies/')],
depends: tracker_docgen,
depend_files: [base_ontology],
build_by_default: true,
@@ -24,9 +26,9 @@ nepomuk_ontology_docs = custom_target('nepomuk-docgen',
output: ['nie-ontology.md'],
command: [tracker_docgen,
'--md',
- '-d', join_paths(source_root, 'src/ontologies/nepomuk'),
- '-o', join_paths(meson.current_build_dir()),
- '-e', meson.current_source_dir()],
+ '--ontology-dir', join_paths(source_root, 'src/ontologies/nepomuk'),
+ '--output-dir', meson.current_build_dir(),
+ '--introduction-dir', meson.current_source_dir()],
depends: tracker_docgen,
depend_files: [base_ontology],
build_by_default: true,