-
Notifications
You must be signed in to change notification settings - Fork 72
refactor sphinxcontrib.needs.api.need #201
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
Conversation
I have so many questions after going through I think it would be much tidier if the I'm deeply confused by a few blocks in |
# Adding of basic Need node.
############################
# Title and meta data information gets added alter during event handling via
# process_need_nodes(). We just add a basic need node and render the rst-based
# content, because this can not be done later.
# style_classes = ['need', type_name, 'need-{}'.format(type_name.lower())]
# # Used < 0.4.4
style_classes = ["need", "need-{}".format(need_type_info.directive.lower())]
if style:
style_classes.append(style) if this is only "Used < 0.4.4", can it be removed? |
dc60432
to
f3b7c88
Compare
rebased on master |
f3b7c88
to
ada0d18
Compare
rebase on master |
ada0d18
to
73b4e54
Compare
that was a messy rebase. will see what the CI says |
Hi @danieleades, I looked through your changes and I personally like where this is going. Is there any momentum behind getting this PR reviewed and merged in? |
I wanted to do a little more, but it's probably worth merging as is. |
73b4e54
to
b09096a
Compare
rebased on master |
as far as i'm concerned this is mergeable. I'm not really intending to make any further changes on this pull request. CI is failing on python3.5, seems like a dependencies issue, so i don't think it's anything to do with this pull request. |
Reviewd it and it looks good. So I have introduced 2 conflictes, sorry. |
i'm tempted to abandon this, and maybe revisit another time. The rebase proved to be non-trivial |
Not sure, the only change I made was to check if - tags = [tag.strip() for tag in re.split(";|,", tags)]
+ # tags should be a string, but it can also be already a list,which can be used.
+ if isinstance(tags, str):
+ tags = [tag.strip() for tag in re.split(";|,", tags)] - for link in re.split(";|,", links_string):
+ # Check if links_string is really a string, otherwise it will be a list, which can be used
+ # without modifications
+ if isinstance(links_string, str):
+ link_list = re.split(";|,", links_string)
+ else:
+ link_list = links_string
+ for link in link_list: You moved this part in an extra function, therefore it looks like a bigger change. I can do it as well (at least the conflict is my fault), but I think I don't have permission to add commits to this PR / your fork, right? |
Do we still need this? |
directives/need
andapi/need
api/need
using Black