-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: improve theming documentation #613
Comments
Idea: create a dgeni process that can parse comments in scss files. // Action Sheet
// --------------------------------------------------
// @description action-sheets default width
$action-sheet-width: 100% !default;
// @description action-sheets maximum width
$action-sheet-max-width: 500px !default; We already have dgeni documenting APIs, seems fitting that it would do scss too. |
Thanks Brandy! While I defer to yourselves, even if this was manual, if errors crept in, I am sure the community would correct, hence either manual or automated would provide sufficiently useful, accurate, information and be appreciated by the wider users |
Another idea is to do something similar to Foundation's Customize With Sass sections where it lists the variables related to each component and what they do. |
Also need to clarify that a |
Brandy and I just chatted about this. I'd like to add an new set of documentation attributes. Something like With the data, we can generate a new section in the applicable components. |
@perrygovier this is great. |
Do you think we could just have one attribute like |
I need to verify, but if your naming is consistent everywhere, we can just check to see if the files exist and not need any new attribute at all. |
I started adding documentation for the sass variables (see tabs.ios for example) so I'll just start adding them as I make changes and then when you guys let me know how we should link these to the API I can add that. I'm thinking we have a Sass Variables section, similar to how input properties is set up, that shows which variables affect all modes (if |
I've been discussing this with @briandennis. The syntax will look like the following:
and that will automatically add the name, default, and description of the variable to the API docs. The tabs component has this added now: ionic-team/ionic-framework@b7c4548 I want to go through issue ionic-team/ionic-framework#5651 as part of this issue. |
Support for the syntax @brandyscarney described has been added with ionic-team/ionic-framework@d5da8ab |
Yay! Now we just need to update all of the Sass files (nbd). 😄 http://ionic-site-staging.herokuapp.com/docs/v2/nightly/api/components/tabs/Tabs/#sass-variables Great job Brian! 🎉 |
🎉 🎉 🎉 |
Keeping the issue open until all of the variables have been converted over |
references #5651 references #7466 references ionic-team/ionic-site#613
So I don't know the best way this can be achieved, but it would be good to improve the documentation behind which Sass variables control what.
A great recommendation by @alexbainbridge:
I'm not sure how maintaining this would be, but it is something to think about. Please add any thoughts on this here! cc @adamdbradley @mhartington @jgw96 @danbucholtz
The text was updated successfully, but these errors were encountered: