diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2021-08-21 17:26:00 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2021-08-21 17:26:00 +0900 |
| commit | 21f476588c5deedbfef87073d3860b78abed3991 (patch) | |
| tree | 3582c1bf385bce39624bcd65459099329532f55c | |
| parent | da3b2ff457a4faa2c04120d6202741d8f8528729 (diff) | |
Fix sphinx build errorrelease-1.36.0
| -rwxr-xr-x | doc/manual-src/en/mkapiref.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/manual-src/en/mkapiref.py b/doc/manual-src/en/mkapiref.py index 0504d20a..0b351aa4 100755 --- a/doc/manual-src/en/mkapiref.py +++ b/doc/manual-src/en/mkapiref.py @@ -130,7 +130,7 @@ def make_api_ref(infiles): if doctype == '@function': functions.append(process_function('function', infile)) if doctype == '@functypedef': - types.append(process_function('c:type', infile)) + types.append(process_function('type', infile)) elif doctype == '@typedef': types.append(process_typedef(infile)) elif doctype in ['@class', '@struct', '@union']: @@ -238,6 +238,7 @@ def process_function(domain, infile): func_proto = ''.join(func_proto) func_proto = re.sub(r';\n$', '', func_proto) func_proto = re.sub(r'\s+', ' ', func_proto) + func_proto = re.sub(r'typedef ', '', func_proto) return FunctionDoc(func_proto, content, domain) def process_typedef(infile): @@ -254,6 +255,7 @@ def process_typedef(infile): typedef = ''.join(lines) typedef = re.sub(r';\n$', '', typedef) typedef = re.sub(r'\s+', ' ', typedef) + typedef = re.sub(r'typedef ', '', typedef) return TypedefDoc(typedef.split()[-1], content) def read_content(infile): |
