Skip to content
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

Merged
merged 13 commits into from
Jan 30, 2024

Conversation

rwaskiewicz
Copy link
Contributor

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

Copy link

vercel bot commented Jan 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stencil-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2024 9:29pm

@rwaskiewicz rwaskiewicz force-pushed the rwaskiewicz/readme branch 2 times, most recently from fd41dce to 3e164d4 Compare January 26, 2024 21:33
@rwaskiewicz rwaskiewicz marked this pull request as ready for review January 26, 2024 21:33
@rwaskiewicz rwaskiewicz requested a review from a team as a code owner January 26, 2024 21:33
@rwaskiewicz rwaskiewicz requested review from alicewriteswrongs and tanner-reits and removed request for a team January 26, 2024 21:33
| `--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 |
Copy link
Contributor Author

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

@christian-bromann
Copy link
Member

Is there a preview link? The View Deployment points to a version that doesn't seem to have these updates: https://stencil-docs-ddjemtg47-ionic1.vercel.app/docs/docs-readme

@rwaskiewicz
Copy link
Contributor Author

Copy link
Member

@christian-bromann christian-bromann left a 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?

@rwaskiewicz
Copy link
Contributor Author

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

Copy link
Member

@tanner-reits tanner-reits left a 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

docs/documentation-generation/docs-readme.md Outdated Show resolved Hide resolved
docs/documentation-generation/docs-readme.md Outdated Show resolved Hide resolved
docs/documentation-generation/docs-readme.md Outdated Show resolved Hide resolved
@rwaskiewicz
Copy link
Contributor Author

Alright, I need to backport these docs - I'll do that when I get a moment.

Copy link
Contributor

@alicewriteswrongs alicewriteswrongs left a 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 👍

docs/documentation-generation/docs-readme.md Outdated Show resolved Hide resolved

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:
Copy link
Contributor

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

Copy link
Contributor

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)

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Docs Subcommand' maybe?

Copy link
Contributor Author

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

rwaskiewicz and others added 9 commits January 30, 2024 16:15
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
@rwaskiewicz rwaskiewicz merged commit 50c3f74 into main Jan 30, 2024
5 checks passed
@rwaskiewicz rwaskiewicz deleted the rwaskiewicz/readme branch January 30, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants