-
Notifications
You must be signed in to change notification settings - Fork 117
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
pass in url for site #30
Conversation
Directory out; | ||
Set<LibraryElement> libraries = new Set(); | ||
HtmlGenerator generator; | ||
|
||
DartDoc(this._rootDir, this._excludes); | ||
DartDoc(this._rootDir, this._excludes, this._url); |
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 _url be optional?
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.
Could make it optional, but then would have to check whether to pass it in or not. Don't know which is the better approach 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.
We could say that URL is a property of the backend. From an API perspective, URL really only belongs in HtmlGenerator.
How is this DartDoc class intended to be used? I don't think DartDoc class should have a reference to HtmlGenerator. Instead:
- Create one or more generators, and configure them
- Give the list of generators to DartDoc
Thoughts?
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.
Yes, the url is for the HtmlGenerator. Like the idea of separation and configuring the generator based on user args. Will refactor next time around.
@sethladd