Merge pull request #1877 from nghttp2/sphinx-doc-enum

sphinx-doc understands :enum:
This commit is contained in:
Tatsuhiro Tsujikawa 2023-03-06 17:08:47 +09:00 committed by GitHub
commit 1e47a1984d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,6 @@ def arg_repl(matchobj):
def transform_content(content):
content = re.sub(r'^\s+\* ?', '', content)
content = re.sub(r'\|([^\s|]+)\|', arg_repl, content)
content = re.sub(r':enum:', ':macro:', content)
return content
if __name__ == '__main__':