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>
This commit is contained in:
Родитель
89a66d7610
Коммит
2e83ecb834
|
@ -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.
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче