aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Nikula2016-05-26 10:15:18 +0300
committerJani Nikula2016-05-30 13:38:53 +0300
commit2e83ecb834ca923806fd58fab17d9f405767e1d9 (patch)
treee9b9e9bec7b49b6a19c2db88829d0ecda9bf4cd1
parent89a66d76109935aad387a5058f120aeb8246ae40 (diff)
sphinx: update docbook->rst conversion script match C domain spec
Function references should include the parens (), struct references should not include "struct". Signed-off-by: Jani Nikula <jani.nikula@intel.com>
-rw-r--r--Documentation/sphinx/convert_template.sed8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/sphinx/convert_template.sed b/Documentation/sphinx/convert_template.sed
index d53bb8220a26..0553eabeac79 100644
--- a/Documentation/sphinx/convert_template.sed
+++ b/Documentation/sphinx/convert_template.sed
@@ -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.
#