sphinx: update docbook->rst conversion script match C domain spec
authorJani Nikula <jani.nikula@intel.com>
Thu, 26 May 2016 07:15:18 +0000 (10:15 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 30 May 2016 10:38:53 +0000 (13:38 +0300)
Function references should include the parens (), struct references
should not include "struct".

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Documentation/sphinx/convert_template.sed

index d53bb8220a264a399afa9cb72f26e59b3042e5e3..0553eabeac793a714bbd242a0cce60ade5c746f0 100644 (file)
@@ -4,10 +4,10 @@
 #
 # Use "$bq" instead of "`" so that pandoc won't mess with it.
 #
-s%<function>\([^<(]\+\)()</function>%:c:func:$bq\1$bq%g
-s%<function>\([^<(]\+\)</function>%:c:func:$bq\1$bq%g
-s%<structname>struct *\([^<]\+\)</structname>%:ref:$bqstruct \1$bq%g
-s%<structname>\([^<]\+\)</structname>%:ref:$bqstruct \1$bq%g
+s%<function>\([^<(]\+\)()</function>%:c:func:$bq\1()$bq%g
+s%<function>\([^<(]\+\)</function>%:c:func:$bq\1()$bq%g
+s%<structname>struct *\([^<]\+\)</structname>%:c:type:$bq\1$bq%g
+s%<structname>\([^<]\+\)</structname>%:c:type:$bq\1$bq%g
 #
 # Wrap docproc directives in para and code blocks.
 #