mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 14:51:00 +07:00
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:
parent
89a66d7610
commit
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.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user