-
Notifications
You must be signed in to change notification settings - Fork 72
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 c.this_doc()
check for needextend
filters
#1393
Conversation
This allows for filtering of needs only in the same document as the `needextend` itself.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1393 +/- ##
==========================================
+ Coverage 86.87% 88.24% +1.36%
==========================================
Files 56 60 +4
Lines 6532 7155 +623
==========================================
+ Hits 5675 6314 +639
+ Misses 857 841 -16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Test case would be nice to have. |
current_docname
variable for needextend
filtersthis_doc
function for needextend
filters
done |
this_doc
function for needextend
filtersn.this_doc()
function for needextend
filters
n.this_doc()
function for needextend
filtersc.this_doc()
function for needextend
filters
Co-authored-by: Marco Heinemann <[email protected]>
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.
Good change
…ocks/sphinx-needs into needextend-current-docname
c.this_doc()
function for needextend
filtersc.this_doc()
function for needextend
filters
c.this_doc()
function for needextend
filtersc.this_doc()
check for needextend
filters
This allows for filtering of needs only in the same document as the
needextend
itself, e.g.Putting this under the
c
(for check) namespace allows for the possibility to add future special checks, without polluting the global namespace.cc @arwedus