summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2023-02-26 12:45:59 +0100
committerCarlos Garnacho <carlosg@gnome.org>2023-02-27 09:18:57 +0100
commit6239f30df3cc57926f6bec1564dd1dd9beedaa59 (patch)
treea7b0a1ddfde220601c44de657c9d18d809dd82d9 /docs
parentaa6ee2734efc18445a1aa0ba1cea331bee9b5f2f (diff)
downloadtracker-6239f30df3cc57926f6bec1564dd1dd9beedaa59.tar.gz
docs: Do not print pre-defined instances of base resources
It is not much useful to e.g. list every defined resource in the rdfs:Resource documentation. Avoid these kinda obvious pre-defined instances.
Diffstat (limited to 'docs')
-rw-r--r--docs/tools/tracker-docgen-md.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/tools/tracker-docgen-md.c b/docs/tools/tracker-docgen-md.c
index a09a05766..abf907cdc 100644
--- a/docs/tools/tracker-docgen-md.c
+++ b/docs/tools/tracker-docgen-md.c
@@ -57,6 +57,12 @@ print_predefined_instances (FILE *f,
if (!klass->instances)
return;
+ if (g_str_equal (klass->shortname, "rdfs:Resource") ||
+ g_str_equal (klass->shortname, "rdfs:DataType") ||
+ g_str_equal (klass->shortname, "rdfs:Class") ||
+ g_str_equal (klass->shortname, "rdf:Property") ||
+ g_str_equal (klass->shortname, "nie:InformationElement"))
+ return;
id = klass->shortname;