index.html
5.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title></title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../iron-doc-viewer.html">
<style>
body {
margin: 16px;
}
iron-doc-viewer {
margin: 0 auto;
max-width: 48em;
}
</style>
</head>
<body>
<!-- You can also bake documentation into the doc viewer: -->
<iron-doc-viewer></iron-doc-viewer>
<script>
var descriptor = {
"properties": [
{
"name": "marshal",
"type": "Function",
"desc": "Renders this element into static HTML for offline use.\n\nThis is mostly useful for debugging and one-off documentation generation.\nIf you want to integrate doc generation into your build process, you\nprobably want to be calling `hydrolysis.Analyzer.analyze()` directly.\n",
"params": [],
"function": true,
"return": {
"type": "string",
"desc": "HTML for this element with all state baked in.\n "
}
},
{
"name": "src",
"type": "string",
"desc": "The URL to an import that declares (or transitively imports) the\nelements that you wish to see documented.\n\nIf the URL is relative, it will be resolved relative to the master\ndocument.\n\nIf you change this value after the `<iron-doc-viewer>` has been\ninstantiated, you must call `load()`.\n ",
"published": true
},
{
"name": "transitive",
"type": "boolean",
"desc": "Whether _all_ dependencies should be loaded and documented.\n\nTurning this on will probably slow down the load process dramatically.\n ",
"published": true
},
{
"name": "_activeElement",
"type": "!hydrolysis.ElementDescriptor",
"desc": "The currently displayed element.\n",
"published": true,
"private": true
},
{
"name": "_analyzer",
"type": "!hydrolysis.Analyzer",
"desc": "The hydrolysis analyzer.\n",
"published": true,
"private": true
},
{
"name": "_analyzerChanged",
"type": "Function",
"params": [],
"private": true,
"function": true
},
{
"name": "_loading",
"type": "Object",
"desc": "Whether the analyzer is loading source. ",
"published": true,
"private": true
},
{
"name": "_loadingChanged",
"type": "Function",
"params": [],
"private": true,
"function": true
},
{
"name": "_onTapNavItem",
"type": "Function",
"desc": "Activates the element that the user selected.\n",
"params": [
{
"name": "event",
"type": "!Event",
"desc": null
}
],
"private": true,
"function": true
},
{
"name": "enableCustomStyleProperties",
"type": "boolean",
"private": true,
"configuration": true
}
],
"is": "doc-demo",
"desc": "This is an example of how `iron-doc-viewer` will render various types of\ninformation. You can use it as a style guide to see how various data will be\nrepresented. Markdown is used to format descriptive text throughout.\n\n# Level 1 Heading\n\nThis is a level one heading. **Bold text** and *italic text* are represented\nappropriately. [Links](#) have black underlines.\n\n## Level 2 Heading\n\nThis is a level two heading. `inline code` can be represented.\n\n <html>\n <p>This is a code block. Its syntax is highlighted automatically.</p>\n </html>\n\n### Level 3 Heading\n\nLists can also be used as you'd expect:\n\n* Unordered Lists\n * With Nesting\n* Or without nesting\n\nYou can also use ordered lists:\n\n1. First item\n2. Second item\n\n#### Level 4 Heading\n\nHeadings can be used all the way down to level 5.\n\n##### Level 5 Heading\n\nThis concludes our quick rundown of the various styles that you can commonly use."
}
document.querySelector('iron-doc-viewer').descriptor = descriptor;
</script>
</body>
</html>