-
Notifications
You must be signed in to change notification settings - Fork 847
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
No dedicated documentation #9
Comments
When you say dedicated docs, do you mean something beyond the README? Are you thinking GH pages, or an actual site? |
Good call. Thanks for opening this issue to get the ball rolling. |
Btw, if you can get tj to move the repo, it would go a long way getting people to the right place. You can delete this one, have tj move his t you here, and then just replace it's contents with your current git code. This way the tj/ejs URL would redirect here and all the issues would too :) |
@dougwilson +1 |
I didn't really want to take that approach because I wanted to be super respectful of TJ's authorship of v1, and because the v2 is actually an older version of EJS of mine (circa 2008 or so) with a completely different implementation and its own commit history. I suppose it would be possible to do something like that and preserve the history of both repos. |
Ah. I didn't realize they don't even share the same history, though :) I just saw a really large number of commits here, haha. The other repo could probably at least have a notice added to the top of the readme, if not already there. The biggest thing is I see that people keep filing new issues over there, but at least I see you're watching to repo :D |
I did add a notice to the top of the README, but it could be made more obvious. Maybe replace the entire README. |
Ah, yea, but it's probably confusing. It sounds like you're just pointing people to some future module. It should probably be clearer that your module replaces that and issues shouldn't even be filed there (unless you plan to make 1.x bug fix releases or something). |
Even more confusing: https://www.npmjs.com/package/ejs2 |
@dougwilson Good call. Probably just blowing the README away and replacing it with nothing but a single clear message that says v2 has replaced v1 completely, and no further maintenance is happening there. @TimothyGu Oh, wow. This is pretty terrible. Maybe we can convince him to unpublish. |
@mde simontabor/serenity-ejs#2 Back to the original topic of documentation. I can add some JSDoc inline docs and maybe move the documentation in README to a GH pages. I'll submit a PR when I finished. |
Can you advice a safe & simple way, to distinguish between 2.x and older versions? Needed for transparent legacy support. |
@TimothyGu This is great. I'm back and forth with the owner of ejs.co, but the cost might be prohibitively high. |
@puzrin, I assume you mean something other than the package.json? You want something that lives on the exported object? |
https://github.com/nodeca/mincer/blob/master/lib/mincer/engines/less_engine.js#L99 see example for Sometime it's not acceptable to have strict versions dependencies. So, adapter has to detect library version somehow, to make proper call. Library can be passed via params, we can't rely on var ejs; // here can be v1.x or v2.x
/* How to distinguish? */ I'm asking in docs, because question seems related to "migration guide" |
I've done something like this before, making it part of the build/release process: https://github.com/mde/timezone-js/blob/master/src/date.js#L58 It makes total sense for client-side use. Could you open a GH Issue for this? |
Looks like we'll be getting ejs.co for our doc site. I have just have to finalize the payment arrangements. |
@mde oh wow, thanks |
@mde thanks! |
Site is on the way. First cut of it lives here for now: https://github.com/mde/ejs-site |
New site is up at http://ejs.co -- not much there yet, basically just brochureware with a copy of what's in the README. But a step in the right direction. |
@mde Already looking nice though. Nice job! :) |
@mde Do you still have push access to tj/ejs? If so, how about putting a notice like this at the top of the README:
|
It would be great to see the existing documentation built upon. Perhaps as a result of features being added/removed over the years, or perhaps that it's easy to forget while writing docs that others may not have the same insights/familiarity, some of the existing wording is not very comprehensible unless already familiar with the topic. An example:
Both of the above sections skip a few links in the 'what, why, where, when, how' chain of understanding; both discussing very specific syntax without a explaining the basic function and use cases. Working on the docs is a time investment that pays back in less "how does this work?" issues being filed, and a much nicer time for users. |
I am sure this is on someone's TODO list but just adding a bug to track it. By dedicated documentation, I mean a website with all the API methods, options, etc., like Jade's.
The text was updated successfully, but these errors were encountered: