-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: improve contribute section documentation #2085
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2085 +/- ##
==========================================
+ Coverage 86.24% 86.65% +0.40%
==========================================
Files 90 90
Lines 10274 10274
==========================================
+ Hits 8861 8903 +42
+ Misses 1413 1371 -42 |
Moving to ready for review to check generated documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small suggestions
BUILD_API = True if os.environ.get("BUILD_API", "true") == "true" else False | ||
if not BUILD_API: | ||
extensions.remove("ansys_sphinx_theme.extension.autoapi") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extensions.remove("ansys_sphinx_theme.extension.autoapi") | |
extensions.extend("ansys_sphinx_theme.extension.autoapi") |
Add the extension only if there is env variable, remove it from extensions
# Optionally exclude api or example documentation generation. | ||
BUILD_API = True if os.environ.get("BUILD_API", "true") == "true" else False | ||
if not BUILD_API: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not BUILD_API: | |
if BUILD_API: |
if not BUILD_EXAMPLES: | ||
extensions.remove("sphinx_gallery.gen_gallery") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BUILD_EXAMPLES = True if os.environ.get("BUILD_EXAMPLES", "true") == "true" else False | |
if not BUILD_EXAMPLES: | |
extensions.remove("sphinx_gallery.gen_gallery") | |
BUILD_EXAMPLES = True if os.environ.get("BUILD_EXAMPLES", "true") == "true" else False | |
if BUILD_EXAMPLES: | |
extensions.extend("sphinx_gallery.gen_gallery") |
same here
@@ -109,6 +111,7 @@ | |||
"sphinx.ext.todo", | |||
"sphinx_copybutton", | |||
"sphinx_design", | |||
"sphinx_jinja", | |||
"sphinx_gallery.gen_gallery", | |||
'sphinx_reredirects', | |||
"ansys_sphinx_theme.extension.autoapi", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ansys_sphinx_theme.extension.autoapi", |
@@ -109,6 +111,7 @@ | |||
"sphinx.ext.todo", | |||
"sphinx_copybutton", | |||
"sphinx_design", | |||
"sphinx_jinja", | |||
"sphinx_gallery.gen_gallery", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"sphinx_gallery.gen_gallery", |
Summary
As stated in the title
Details
The following have been done: