-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Adding docs-page blueprint. #343
Conversation
I'm definitely plus one on this, seems like it could help cut down on a lot of boilerplate work 😄 |
I was starting to write some nice tests for this functionality using I'm open to still adding tests, but will have to do a bunch of fandangling to make it work. Thoughts on the importance of adding tests for this blueprint, @dfreeman, @samselikoff, @pzuraq? (I have guilt just asking that...). |
Could you document the generator somewhere? |
Absolutely. I’ll add to the docs. |
Agreed that it's probably fine to go ahead and merge this—if it does break, at least it won't bring down people's documentation. Thank you for proposing this, @scalvert! Separately, we might want to consider migrating our node tests to mocha at some point, since that's more aligned with what most projects are using for that. |
@dfreeman if a port to mocha does proceed, I'll circle back and add tests for this blueprint. They're fairly trivial to add once I can use the existing test packages. |
I'm +1 on merging this for now, haven't had time to review in depth but I trust y'all, and like @dfreeman said it won't break existing things 😄 |
OK @samselikoff, I've added docs via the Quickstart. When the directions call for adding the |
BTW, I would have use |
I'm just going run through some manual testing of the blueprint prior to you merging. I'll ping back here once I've ensured everything is generated in the right way. |
OK, tested out the following scenarios: Non-pods:
Pods:
These will form the basis for tests if updated to mocha for node tests, as @dfreeman suggested. |
@dfreeman @pzuraq @samselikoff this is good to merge once CI passes. I'll circle back on the testing front in a subsequent PR. |
You rock brotha! Nice work 🤙 |
Wanted to push up this WIP PR that adds blueprint support for adding a docs page.
I've been on a bit of a tear updating all my addons to use
ember-cli-addon-docs
, and I absolutely love it. One thing that feels like it's missing though is a blueprint for adding a docs page. I want it to be able todocs
{{nav.item ...}}
to thedocs.hbs
(if it exists)Sample usage:
Generates:
Docs update: