Skip to content

Conversation

shihaohong
Copy link
Contributor

@shihaohong shihaohong commented Jun 7, 2019

Description

  • Organize dartdoc generation README
  • Add code samples section to README
  • Add screenshots to README to show difference between code sample and code snippet
  • Add a section on how to generate API documentation to verify code sample changes are showing as planned
  • Add explanation regarding interpolation in templates for sections such as preamble and imports

The image links seem broken because they are relative links. See https://github.com/shihaohong/flutter/tree/dartdocs/dev/snippets for how they would actually turn out.

Related Issues

Fixes #32725

@shihaohong shihaohong added framework flutter/packages/flutter repository. See also f: labels. d: api docs Issues with https://api.flutter.dev/ labels Jun 7, 2019
@shihaohong shihaohong requested review from gspencergoog and Piinks June 7, 2019 21:12
Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

This is great! 🎉
You can choose to ignore most of these nits if you like.
As I was reading through, I got lost a few times around code blocks, examples, samples, snippets - samples of samples kind of thing.. 😜
I tried to make them more uniform in the suggestions below. Here's how I appraoched formatting them:

  • block = finished product that is seen in the API documentation
  • example = an example of one of the tools in use
  • snippets = the tool
  • sample = the tool
  • sample = the literal/copiable code within the finished block

Let me know what you think!

@shihaohong
Copy link
Contributor Author

Those suggestions are great! Honestly, I was getting lost in my head too with the mix-and-match of samples, snippets, examples, and blocks.

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

LGTM!
With one nit of the 'the the' variety... 😉

@shihaohong
Copy link
Contributor Author

Addresses #31628 as well

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
d: api docs Issues with https://api.flutter.dev/ framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API docs snippet generation instructions could be more accessible
3 participants