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

User DartDoc to generate documentation #8

Merged
merged 39 commits into from Dec 9, 2021

Conversation

Josiassejod1
Copy link

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

Comment on lines 1 to 3



Copy link

@Doetheman Doetheman Dec 3, 2021

Choose a reason for hiding this comment

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

remove spacing

Copy link

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.

Comment on lines 26 to 31






Choose a reason for hiding this comment

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

remove spacing

@Josiassejod1 Josiassejod1 requested a review from a team December 3, 2021 21:36
Copy link

@Doetheman Doetheman left a comment

Choose a reason for hiding this comment

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

LGTM

],
),
Component(
componentName: 'List',
states: [
ComponentState(
docName: 'ListExample',

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

),
),
);
return ListExample();

Choose a reason for hiding this comment

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

use expression function => ListExample(),

builder: (BuildContext context, AsyncSnapshot<String> text) {
return Tooltip(
message: "Click To Copy",
child: Markdown(

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?

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

Choose a reason for hiding this comment

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

Suggested change
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

- 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"

Choose a reason for hiding this comment

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

nit:

Suggested change
- 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"

Copy link

@devbrandonlong devbrandonlong 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 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, 
 😅,

lib/src/editor/ui/doc_markdown.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/editor.dart Show resolved Hide resolved
lib/src/editor/ui/editor.dart Show resolved Hide resolved
lib/src/editor/ui/editor.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/editor_tabs.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/editor_tabs.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/editor_tabs.dart Outdated Show resolved Hide resolved
lib/src/navigation/models/organizers.dart Outdated Show resolved Hide resolved
lib/src/navigation/models/organizers.dart Outdated Show resolved Hide resolved
example/lib/main.dart Outdated Show resolved Hide resolved
example/lib/list_example.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/doc_markdown.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/doc_component.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/doc_component.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/doc_component.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/editor_tabs.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/editor_tabs.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/editor.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/editor.dart Outdated Show resolved Hide resolved
lib/src/editor/ui/editor_tabs.dart Show resolved Hide resolved
lib/src/navigation/models/organizers.dart Outdated Show resolved Hide resolved
Dalvin Josias Sejour and others added 8 commits December 8, 2021 16:32
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>
Copy link

@devbrandonlong devbrandonlong left a 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!

Copy link

@DAL80 DAL80 left a 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.

Dalvin Josias Sejour and others added 3 commits December 9, 2021 09:56
Co-authored-by: Brandon Long <37224947+devbrandonlong@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants