Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
add docs for core-doc-viewer
Browse files Browse the repository at this point in the history
Demo is now a demonstration that it reads itself!
  • Loading branch information
dfreedm committed May 13, 2014
1 parent 08a1c67 commit dfe2a0a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
27 changes: 25 additions & 2 deletions core-doc-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Displays formatted source documentation scraped from input urls.
@class core-doc-viewer
@homepage github.io
-->

<polymer-element name="core-doc-viewer" attributes="sources route url">
Expand Down Expand Up @@ -37,8 +38,30 @@
<script>

Polymer('core-doc-viewer', {

/**
* A single file to parse for docs
*
* @attribute url
* @type Array
* @default ''
*/

/**
* Class documentation extracted from the parser
*
* @property classes
* @type Array
* @default []
*/
classes: [],

/**
* Files to parse for docs
*
* @attribute sources
* @type Array
* @default []
*/
sources: [],

ready: function() {
Expand Down Expand Up @@ -93,4 +116,4 @@

</script>

</polymer-element>
</polymer-element>
4 changes: 3 additions & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
<body unresolved>

<core-doc-viewer sources='[
"../core-doc-viewer/core-doc-viewer.html",
"../core-ajax/core-ajax.html",
"../core-ajax/core-xhr.html"
"../core-ajax/core-xhr.html",
"../core-icon/core-icon.html"
]'></core-doc-viewer>

</body>
Expand Down

0 comments on commit dfe2a0a

Please sign in to comment.