This repository has been archived by the owner on Feb 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): view example source files inline
- generate meta.json file that describes the known examples. - render the main page from meta.json file. - include highlightjs in the client page.
- Loading branch information
1 parent
0da02fe
commit a8c1ba2
Showing
25 changed files
with
588 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
dist/ | ||
out/ | ||
site/ | ||
public/meta.json | ||
|
||
ng2-material/**/*.css | ||
ng2-material/**/*.css.map | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
import {CONST_EXPR, Type} from 'angular2/src/facade/lang'; | ||
import CardBasicUsage from './components/card/basic_usage'; | ||
import CardInCardActions from './components/card/in_card_actions'; | ||
import CardActionButtons from './components/card/card_action_buttons'; | ||
// | ||
// Do not edit this file, it is autogenerated by the `site-meta` grunt task. | ||
// See Gruntfile.js for more information. | ||
// | ||
|
||
import {CONST_EXPR, Type} from 'angular2/src/facade/lang'; | ||
|
||
// --=> EXAMPLES_IMPORT_START | ||
import CardBasicUsage from './components/card/basic_usage'; | ||
import CardInlineActions from './components/card/inline_actions'; | ||
import CardActionButtons from './components/card/action_buttons'; | ||
import ToolbarBasicUsage from './components/toolbar/basic_usage'; | ||
|
||
|
||
import ProgressCircularBasicUsage from './components/progress_circular/basic_usage'; | ||
import ProgressLinearBasicUsage from './components/progress_linear/basic_usage'; | ||
|
||
import RadioBasicUsage from './components/radio/basic_usage'; | ||
|
||
import SwitchBasicUsage from './components/switch/basic_usage'; | ||
// --=> EXAMPLES_IMPORT_END | ||
|
||
/** | ||
* Collection of Material Design component directives. | ||
*/ | ||
export const DEMO_DIRECTIVES: Type[] = CONST_EXPR([ | ||
CardBasicUsage, CardInCardActions, CardActionButtons, | ||
// --=> EXAMPLES_EXPORT_START | ||
CardBasicUsage, CardInlineActions, CardActionButtons, | ||
RadioBasicUsage, | ||
SwitchBasicUsage, | ||
ToolbarBasicUsage, | ||
ProgressCircularBasicUsage, | ||
ProgressLinearBasicUsage | ||
// --=> EXAMPLES_EXPORT_END | ||
]); | ||
|
||
export * from './example'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
.card-media { | ||
background-color: #999999; | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {View, Component} from 'angular2/core'; | ||
import {MATERIAL_DIRECTIVES} from '../../base'; | ||
|
||
@Component({selector: 'card-inline-actions'}) | ||
@View({ | ||
templateUrl: 'examples/components/card/inline_actions.html', | ||
styleUrls: ['examples/components/card/inline_actions.css'], | ||
directives: [MATERIAL_DIRECTIVES] | ||
}) | ||
export default class CardInlineActions { | ||
} |
Oops, something went wrong.