Conversation
GB609
left a comment
There was a problem hiding this comment.
I've got 2 issues i'd like to ask you to look at again.
Aside from that i think it is a useful addition.
shdoc
Outdated
| if (deprecated) { | ||
| debug("→ DEPRECATED") | ||
|
|
||
| deprecatedText = "**DEPRECATED**" |
There was a problem hiding this comment.
Please use deprecatedText = render("strong", "DEPRECATED") instead.
shdoc tries to keep rendering styles separate from content. It might currently only support the github md-style, but it'd like to keep the concept.
There was a problem hiding this comment.
I missed that that was possible. As a future thought it might be good to have a brief "contributing" guide that lays out things like this. I found myself having to read a lot more code than should be strictly necessary to understand how to add features
There was a problem hiding this comment.
You are right about the contribution guideline. To be honest, i haven't thought about this so far, since i never expected someone to actually start contributing to my fork.
I've only created the fork to get some more features in which i felt were missing in upstream, so i didn't touch most of the boilerplate files (readme is the only exception) as that quickly becomes annoying to deal with when creating PRs for upstream.
I'm in a similar situation to you though, i also 'inherited' most of the code and had/have to struggle with it on several levels.
I'm also not sure where to go with it on the long run... try to bring stuff upstream (which i normally prefer), keep as is or detach the fork.
There was a problem hiding this comment.
Upstream hasn't updated in 3 years with 18 open issues and 7 pull requests so it's probably safe to consider your fork the only active one. I find shdoc useful enough that I was about to start maintaining my own fork before I found yours
There was a problem hiding this comment.
Thats likely true, although the number of issues and PRs doesn't always say all that much because basically anyone can just put up whatever (nonsensical) request. Not reacting to anything at all for years, however, certainly hints at inactivity (or an insufficient notification setup).
Anyway, i'll try to get a few basics overhauled at the weekend if i manage to get to it. I'm pretty busy currently and there's a few other tasks i'd like to finish which i've delayed and neglected a bit longer than i'd actually like to.
|
Please rebase the branch |
This removes the need for the hack that ignores '@description' in a line that is already being processed as part of a description
d0785c9 to
6823f39
Compare
|
Rebased (and fixed my initial wrong fix) While testing this I keep seeing some oddities in how |
|
It might be good to create a minimal reproducer for your odd behavior and make an issue of it. The basic problem is likely related to the way |
Good idea. I'll work on that when I get a chance.
I expect there is a fix to all this but it's probably going to be a significant refactor. Which is worth it but will take some thought. I'll create an issue to track this later
That's basically what I've been noticing |
Add a
@deprecatedtag (original patch written by @hyperupcall) to functions that renders like this:deprecated-function
DEPRECATED Because it's old
A deprecated function