-
Notifications
You must be signed in to change notification settings - Fork 4
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
Grammar helper #93
Grammar helper #93
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
The commit-log is a bit of a mess - feel free to squash the whole thing if that makes you happy. 😁 |
Pull Request Test Coverage Report for Build 5879923495
💛 - Coveralls |
That one uncovered line is the I don't know coveralls, and they don't seem to have any real docs - do you know how to mark the line for exclusion? I guess, ideally, the line shouldn't be there - I just feel safer having something that blows up, if someone breaks the code, rather than a silent failure... 🤔 |
Thanks, I'll get to this PR on weekends. |
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.
Overall looks good, but some minor changes wouldn't hurt.
Co-authored-by: Vladislav Mamon <[email protected]>
Co-authored-by: Vladislav Mamon <[email protected]>
Co-authored-by: Vladislav Mamon <[email protected]>
Co-authored-by: Vladislav Mamon <[email protected]>
Co-authored-by: Vladislav Mamon <[email protected]>
Co-authored-by: Vladislav Mamon <[email protected]>
By the way, quick question, do you have a reason for having both the hand-written markdown, as well as the very similar inline documentation in the classes? I'm a bit concerned about the amount of duplication here, the risk of divergence, and so on. I just noticed my inline and markdown docs+example are already quite different. I wonder if it would make more sense to extract the markdown from the inline doc-blocks? |
We looked into this earlier with @TheFedaikin, but decided to leave it as-is, because: - I'm not a fan of TypeDoc and the like. - I like VitePress and we couldn't find a nice way to wire docs to the code. VitePress allows to import code snippets from files, but it doesn't let you import comments. The right way would be to write a custom pre-build step for docs where we extract TSDocs and generate Markdown files, but this has its own pros/cons/tradeoffs. For instance, we would have to drop all bells and whistles VitePress gives us: badges, nice codeblocks, custom success/failure blocks and so on, because all of that wouldn't render correctly in inline docs. - We would need to author documentation in the comments, which kinda sucks compared to good old Markdown that can be previewed in real-time. - I wanted inline docs to only have the basic info and standalone docs to provide detailed information. Having identical inline and standalone docs kinda defeats the purpose of having standalone docs in the first place. |
FYI, there is a markdown plugin for typedoc with 250K weekly downloads. (I've looked at every other documentation generator I could find, plus at least 5 different generators designed specifically for Markdown, but I didn't find anything else that looks very dependable, maintained, complete, popular, etc.)
To my mind, docs are docs. I don't see any benefits to having so-so inline documentation, and then having to visit a website to get the whole story. I don't see any practical benefits to having two versions of documentation for the same things. Personally, I would try to solve those issues with TSDoc instead - add plugins, customize the theme, use inline HTML if necessary... to each his own though. Migrating it at this point would be a project in itself, I suppose. 😅 |
Thanks for the insight, maybe I'll reconsider. |
# [3.7.0](v3.6.5...v3.7.0) (2023-08-22) ### Features * add grammar helper ([#93](#93)) ([e8074be](e8074be))
This PR is included in version 3.7.0. |
Per #85 this is ready for review. 🙂