-
Notifications
You must be signed in to change notification settings - Fork 421
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
docs(docs-readme): fill out docs-readme output target #1332
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
fd41dce
to
3e164d4
Compare
docs/config/cli.md
Outdated
| `--debug` | Adds additional runtime code to help debug, and sets the log level for more verbose output. | | | ||
| `--dev` | Runs a development build. | | | ||
| `--docs-readme` | Generate `readme.md` docs based on the component types, properties, methods, events, JSDocs, CSS Custom Properties, etc. | | | ||
| Flag | Description | Alias | |
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.
My editor did all this whitespace formatting w/o asking me 💢
I can back this out if folks don't like it
Is there a preview link? The |
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.
I learned a lot reviewing this PR. This is overall a great feature and the new docs capture this well 👌
One optional suggestion: do we have references of open sourced generated readme files that we can maybe link here as example for users to see "the whole thing" given an actual component used in a real world project?
We don't - other than say, the Ionic Framework source code (but even then, that's likely to change over time). I think what I'd like for us to do at some point is to be able to embed a little component in the page, and show the compiled README file to the right of it (similar to the Ionic Framework Site's playgrounds). We're not there quite yet, but I'd like to get there sometime later this year |
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.
Just a few grammatical fixes
Alright, I need to backport these docs - I'll do that when I get a moment. |
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.
really big improvement over the old docs!
just had one question about the 'task' terminology, otherwise looks good to me 👍
|
||
If your project has a `docs-readme` output target configured in your Stencil configuration file, the Stencil [build task](../config/cli.md#stencil-build) is all that's needed to generate README docs: |
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.
Should we keep the 'build task' language here? I think maybe I would lean towards calling it the 'build subcommand' here, 'build task' seems like some internal terminology leaking out a bit here
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.
(there's another usage of it below on line 37 too)
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.
👍 updated in ef12b55
|
||
This will cause the Stencil compiler to perform a one-time build of your entire project, including README files. | ||
|
||
### Using the Docs Task |
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.
'Docs Subcommand' maybe?
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.
👍 updated in ef12b55 - I went with 'Command' here
add additional documentation concerning the behavior of the `docs-readme` output target. this commit is close to entire rewrite of the documentation - it looks to fill in all details concerning the output target regarding its behavior
Co-authored-by: Tanner Reits <[email protected]>
Co-authored-by: Tanner Reits <[email protected]>
Co-authored-by: Tanner Reits <[email protected]>
Co-authored-by: Alice Pote <[email protected]>
ef12b55
to
b1bd7de
Compare
add additional documentation concerning the behavior of the
docs-readme
output target. this commit is close to entire rewrite of the documentation - it looks to fill in all details concerning the output target regarding its behavior