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
User DartDoc to generate documentation #8
Conversation
948ba85
to
cb6306a
Compare
|
||
|
||
|
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.
remove spacing
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 believe this is an auto generated file so we don't have control over spacing.
|
||
|
||
|
||
|
||
|
||
|
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.
remove spacing
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.
LGTM
example/lib/main.dart
Outdated
], | ||
), | ||
Component( | ||
componentName: 'List', | ||
states: [ | ||
ComponentState( | ||
docName: 'ListExample', |
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.
this seems like it should be something like componentClassName
or something similar
example/lib/main.dart
Outdated
), | ||
), | ||
); | ||
return ListExample(); |
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.
use expression function => ListExample(),
lib/src/editor/ui/doc_markdown.dart
Outdated
builder: (BuildContext context, AsyncSnapshot<String> text) { | ||
return Tooltip( | ||
message: "Click To Copy", | ||
child: Markdown( |
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.
are we able to invert the colors on the rendered markdown so it's on a dark background?
lib/src/editor/ui/doc_markdown.dart
Outdated
const String _markdownData = """ | ||
## Could Not Find Doc For Documents | ||
|
||
If you are seeing this message, that means you have not generated docs for this component |
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.
If you are seeing this message, that means you have not generated docs for this component | |
If you are seeing this message, you have not generated docs for this component |
lib/src/editor/ui/doc_markdown.dart
Outdated
- add the latest version of dartdoc to your pubspec.yaml | ||
The --input is the path to your root directory in your project | ||
The --output is the path in your project where the assets need to stay | ||
- run dartdoc --format md --input "my_fake_project" --output "my_fake_project/assets/lib/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.
nit:
- run dartdoc --format md --input "my_fake_project" --output "my_fake_project/assets/lib/docs" | |
- run dartdoc --format md --input "my_fake_project" --output "my_fake_project/lib/assets/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.
This is looking really nice!
While I know you did not write this library, always contribute with the mindset to leave it better than you found it.
Lastly...
trailing,
comma,
😅,
Co-authored-by: Victor Rojas <Victorrent@users.noreply.github.com>
Co-authored-by: Victor Rojas <Victorrent@users.noreply.github.com>
Co-authored-by: Victor Rojas <Victorrent@users.noreply.github.com>
Co-authored-by: Victor Rojas <Victorrent@users.noreply.github.com>
Co-authored-by: Victor Rojas <Victorrent@users.noreply.github.com>
Co-authored-by: Victor Rojas <Victorrent@users.noreply.github.com>
Co-authored-by: Victor Rojas <Victorrent@users.noreply.github.com>
Co-authored-by: Victor Rojas <Victorrent@users.noreply.github.com>
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.
still a few minor things and then we should be good!
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.
Looking good. One minor comment.
Co-authored-by: Brandon Long <37224947+devbrandonlong@users.noreply.github.com>
…book into eng/djs/auto_generate
This pr introduces improvements to the currently introduced dart doc, instead of having to manually document code, we can now pull in changes using dartdoc to find the documentation on hosted asset
Screen.Recording.2021-12-03.at.12.03.39.PM.mov
s