Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doxygen command note and fix warning #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pybind11_mkdoc/mkdoc_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def process_comment(comment):
s = re.sub(r'[\\@]code\s?(.*?)\s?[\\@]endcode',
r"```\n\1\n```\n", s, flags=re.DOTALL)
s = re.sub(r'[\\@]warning\s?(.*?)\s?\n\n',
r'$.. warning::\n\n\1\n\n', s, flags=re.DOTALL)
r'\n\n$.. warning::\n\n\1\n\n', s, flags=re.DOTALL)
s = re.sub(r'[\\@]note\s?(.*?)\s?\n\n',
r'\n\n$.. note::\n\n\1\n\n', s, flags=re.DOTALL)
# Deprecated expects a version number for reST and not for Doxygen. Here the first word of the
# doxygen directives is assumed to correspond to the version number
s = re.sub(r'[\\@]deprecated\s(.*?)\s?(.*?)\s?\n\n',
Expand Down