-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
I want support for rst
, as well as markdown, in extraDocs
#230
Comments
@mirisuzanne How are you imagining this should work? Right now we just take an array of file paths, or objects with As a starting place, I could imagine something like: extraDocs: [
{ name: 'Configuration', path: './CONFIGURATION.md' }, // parsed as .md
'./CHANGELOG', // parsed as .md
'./CONTRIBUTING.rst', // parsed as .rst
{ name: 'Another', path: './ANOTHER.md', format: 'rst' }, // parsed as .rst
], That is, we decide based on the following, in order:
Or maybe we should default to |
@jgerigmeyer I like your suggested approach. |
@mirisuzanne Do you think we should automatically parse as markdown (which is what we're doing now), or only if the user specifies The former (doing it automatically) fits with SassDoc -- and shouldn't usually cause problems -- but the latter is a clearer API, I think. |
I think either is fine. I don't mind having an implied default. That's pretty standard for an API. |
There currently isn't a good rST parser for node.js. https://github.com/frantic1048/Est is the best I've found, but it still doesn't handle links or images very well. I'm not sure it's worth putting more time into this. |
No description provided.
The text was updated successfully, but these errors were encountered: