mirror of
https://github.com/google/pebble.git
synced 2025-05-22 03:14:52 +00:00
Import the pebble dev site into devsite/
This commit is contained in:
parent
3b92768480
commit
527858cf4c
1359 changed files with 265431 additions and 0 deletions
35
devsite/source/_includes/docs/c/define.html
Normal file
35
devsite/source/_includes/docs/c/define.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% assign data = include.define.data[include.platform] %}
|
||||
<div class="docs__item docs__item--define">
|
||||
{% if data.params.size > 0 %}
|
||||
<div class="docs__item__header">
|
||||
<span>#define {{ data.type }} </span><span class="docs__item__name">{{ include.define.name }} </span><span>(</span>{% for param in data.params %}<span class="docs__item__param">{% if param.type %}{{ param.type }}{% if param.name %} {% endif %}{% endif %}{% if param.name %} {{ param.name }}{% endif %}</span><span>{% unless forloop.last %}, {% endunless %}</span>{% endfor %}<span{% if data.params.size > 1 %} class="docs__item__param__end"{% endif %}>)</span>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="docs__item__header">#define <span class="docs__item__name">{{ include.define.name }} </span> {{ data.initializer }}</div>
|
||||
{% endif %}
|
||||
<div class="docs__item__body">
|
||||
{% include docs/c/elements/summary.html item=data %}
|
||||
{% include docs/c/elements/description.html item=data %}
|
||||
{% include docs/c/elements/note.html data=data %}
|
||||
{% include docs/c/elements/parameters.html data=data %}
|
||||
{% include docs/c/elements/returns.html data=data %}
|
||||
{% include docs/c/elements/see.html data=data %}
|
||||
</div>
|
||||
</div>
|
21
devsite/source/_includes/docs/c/elements/description.html
Normal file
21
devsite/source/_includes/docs/c/elements/description.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.item.description.size > 0 %}
|
||||
<div class="docs__item__description">
|
||||
{{ include.item.description }}
|
||||
</div>
|
||||
{% endif %}
|
21
devsite/source/_includes/docs/c/elements/missing.html
Normal file
21
devsite/source/_includes/docs/c/elements/missing.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
<section data-platform="{{ include.platform }}">
|
||||
<div class="docs__item docs__item--missing">
|
||||
<p>The {{ include.type }} <strong>{{ include.name }}</strong> does not exist in {{ include.platform | fake_platform }}.</p>
|
||||
</div>
|
||||
</section>
|
22
devsite/source/_includes/docs/c/elements/note.html
Normal file
22
devsite/source/_includes/docs/c/elements/note.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.data.note.size > 0 %}
|
||||
<div class="alert alert--docs-notes">
|
||||
<h5>Note{% if include.data.note.size > 1 %}s{% endif %}</h5>
|
||||
{% for note in include.data.note %}{{ note }}{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
25
devsite/source/_includes/docs/c/elements/parameters.html
Normal file
25
devsite/source/_includes/docs/c/elements/parameters.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.data.parameters.size > 0 %}
|
||||
<h4>Parameters</h4>
|
||||
<dl>
|
||||
{% for param in include.data.parameters %}
|
||||
<dt><span style="color: #777">{{ param.type}}</span> {{ param.name }}</dt>
|
||||
<dd>{{ param.summary }}</dt>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
{% endif %}
|
22
devsite/source/_includes/docs/c/elements/returns.html
Normal file
22
devsite/source/_includes/docs/c/elements/returns.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.data.return.size > 0 %}
|
||||
<h4>Returns</h4>
|
||||
{% for value in include.data.return %}
|
||||
{{ value }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
20
devsite/source/_includes/docs/c/elements/see.html
Normal file
20
devsite/source/_includes/docs/c/elements/see.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.data.see.size > 0 %}
|
||||
<h4>See Also</h4>
|
||||
{% for value in include.data.see %}{{ value }}{% unless forloop.last %}<br>{% endunless %}{% endfor %}
|
||||
{% endif %}
|
21
devsite/source/_includes/docs/c/elements/summary.html
Normal file
21
devsite/source/_includes/docs/c/elements/summary.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.item.summary.size > 0 %}
|
||||
<div class="docs__item__summary">
|
||||
{{ include.item.summary }}
|
||||
</div>
|
||||
{% endif %}
|
23
devsite/source/_includes/docs/c/elements/tabs.html
Normal file
23
devsite/source/_includes/docs/c/elements/tabs.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
<ul class="docs__item__tabs">
|
||||
{% for platform in page.platforms %}
|
||||
<li>
|
||||
<a href="javascript:void(0);" data-platform="{{ platform }}">{{ platform | fake_platform }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
49
devsite/source/_includes/docs/c/enum.html
Normal file
49
devsite/source/_includes/docs/c/enum.html
Normal file
|
@ -0,0 +1,49 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% assign data = include.enum.data[include.platform] %}
|
||||
<div class="docs__item docs__item--enum">
|
||||
<div class="docs__item__header">enum <span class="docs__item__name">{{ include.enum.name }}</span></div>
|
||||
<div class="docs__item__body">
|
||||
{% include docs/c/elements/summary.html item=data %}
|
||||
{% include docs/c/elements/description.html item=data %}
|
||||
{% include docs/c/elements/note.html data=data %}
|
||||
{% if include.enum.children.size > 0 %}
|
||||
<h4>Enumerators</h4>
|
||||
{% assign children = include.enum.children %}
|
||||
<dl>
|
||||
{% for child in children %}
|
||||
<span id="{{ child.name }}" class="docs__item__anchor"></span>
|
||||
{% if child.platforms contains include.platform %}
|
||||
<dt>{{ child.name }}</dt>
|
||||
<dd>
|
||||
{% if child.data[include.platform].note.size > 0 %}
|
||||
<div class="alert alert--docs-notes">
|
||||
<h5>Note</h5>
|
||||
{% for note in child.data[include.platform].note %}
|
||||
{{ note }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ child.data[include.platform].summary }}
|
||||
</dd>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</dl>
|
||||
{% endif %}
|
||||
{% include docs/c/elements/see.html data=data %}
|
||||
</div>
|
||||
</div>
|
31
devsite/source/_includes/docs/c/function.html
Normal file
31
devsite/source/_includes/docs/c/function.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% assign data = include.function.data[include.platform] %}
|
||||
<div class="docs__item docs__item--function">
|
||||
<div class="docs__item__header">
|
||||
<span>{{ data.type }} </span><span class="docs__item__name">{{ include.function.name }}</span><span>(</span>{% for param in data.params %}<span class="docs__item__param">{{ param.type }}{% if param.name %} {{ param.name }}{% endif %}</span><span>{% unless forloop.last %}, {% endunless %}</span>{% endfor %}<span{% if data.params.size > 1 %} class="docs__item__param__end"{% endif %}>)</span>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="docs__item__body">
|
||||
{% include docs/c/elements/summary.html item=data %}
|
||||
{% include docs/c/elements/description.html item=data %}
|
||||
{% include docs/c/elements/note.html data=data %}
|
||||
{% include docs/c/elements/parameters.html data=data %}
|
||||
{% include docs/c/elements/returns.html data=data %}
|
||||
{% include docs/c/elements/see.html data=data %}
|
||||
</div>
|
||||
</div>
|
25
devsite/source/_includes/docs/c/preview.html
Normal file
25
devsite/source/_includes/docs/c/preview.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
<!-- Remember to update this next preview! -->
|
||||
<div class="alert alert--large alert--fg-white alert--bg-dark-red">
|
||||
<p>
|
||||
This is the documentation for the developer preview of Pebble SDK 4.2.
|
||||
</p>
|
||||
<p>
|
||||
<strong>You should not publish apps built with this SDK to the Pebble appstore.</strong>
|
||||
</p>
|
||||
</div>
|
38
devsite/source/_includes/docs/c/struct.html
Normal file
38
devsite/source/_includes/docs/c/struct.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% assign data = include.struct.data[include.platform] %}
|
||||
<div class="docs__item docs__item--struct">
|
||||
<div class="docs__item__header">struct <span class="docs__item__name">{{ include.struct.name }}</span></div>
|
||||
<div class="docs__item__body">
|
||||
{% include docs/c/elements/summary.html item=data %}
|
||||
{% include docs/c/elements/description.html item=data %}
|
||||
{% include docs/c/elements/note.html data=data %}
|
||||
<h4>Data Fields</h4>
|
||||
<dl>
|
||||
{% for child in include.struct.children %}
|
||||
{% if child.platforms contains include.platform %}
|
||||
{% assign child_data=child.data[include.platform] %}
|
||||
<dt><span style="color: #777">{{ child_data['type'] }}</span> {{ child.name }}</dt>
|
||||
<dd>{{ child_data['summary'] }}
|
||||
{{ child_data['description'] }}</dt>
|
||||
{% include docs/c/elements/note.html data=child_data %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</dl>
|
||||
{% include docs/c/elements/see.html data=data %}
|
||||
</div>
|
||||
</div>
|
31
devsite/source/_includes/docs/c/typedef.html
Normal file
31
devsite/source/_includes/docs/c/typedef.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% assign data = include.typedef.data[include.platform] %}
|
||||
<div class="docs__item docs__item--typedef">
|
||||
<div class="docs__item__header">
|
||||
typedef {{ data.type }} <span class="docs__item__name">{{ include.typedef.name }}</span>{{ data.argsstring }}
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="docs__item__body">
|
||||
{% include docs/c/elements/summary.html item=data %}
|
||||
{% include docs/c/elements/description.html item=data %}
|
||||
{% include docs/c/elements/note.html data=data %}
|
||||
{% include docs/c/elements/parameters.html data=data %}
|
||||
{% include docs/c/elements/returns.html data=data %}
|
||||
{% include docs/c/elements/see.html data=data %}
|
||||
</div>
|
||||
</div>
|
65
devsite/source/_includes/docs/js/desc.html
Normal file
65
devsite/source/_includes/docs/js/desc.html
Normal file
|
@ -0,0 +1,65 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.desc.type == "root" %}
|
||||
{% for child in include.desc.children %}
|
||||
{% include docs/js/desc.html desc=child %}
|
||||
{% endfor %}
|
||||
|
||||
{% elsif include.desc.type == "paragraph" %}
|
||||
{% capture description %}{% for child in include.desc.children %}
|
||||
{% include docs/js/desc.html desc=child %}
|
||||
{% endfor %}{% endcapture %}
|
||||
<p>{{ description | strip_newlines }}</p>
|
||||
|
||||
{% elsif include.desc.type == "heading" %}
|
||||
{% capture description %}<p>{% for child in include.desc.children %}
|
||||
{% include docs/js/desc.html desc=child %}
|
||||
{% endfor %}</p>{% endcapture %}
|
||||
<h{{ include.desc.depth }}>{{ description | strip_newlines }}</h{{ include.desc.depth }}>
|
||||
|
||||
{% elsif include.desc.type == "list" %}
|
||||
{% capture description %}{% for child in include.desc.children %}
|
||||
{% include docs/js/desc.html desc=child %}
|
||||
{% endfor %}{% endcapture %}
|
||||
<{% if include.desc.ordered %}ol{% else %}ul{% endif %} class="desc-list">
|
||||
{{ description | strip_newlines }}
|
||||
</{% if include.desc.ordered %}ol{% else %}ul{% endif %}>
|
||||
|
||||
{% elsif include.desc.type == "listItem" %}
|
||||
{% capture description %}{% for child in include.desc.children %}
|
||||
{% include docs/js/desc.html desc=child %}
|
||||
{% endfor %}{% endcapture %}
|
||||
<li>{{ description | strip_newlines }}</li>
|
||||
|
||||
{% elsif include.desc.type == "strong" %}
|
||||
{% capture description %}{% for child in include.desc.children %}
|
||||
{% include docs/js/desc.html desc=child %}
|
||||
{% endfor %}{% endcapture %}
|
||||
<strong>{{ description | strip_newlines }}</strong>
|
||||
|
||||
{% elsif include.desc.type == "link" %}
|
||||
{% capture title %}{% for child in include.desc.children %}
|
||||
{% include docs/js/desc.html desc=child %}
|
||||
{% endfor %}{% endcapture %}
|
||||
<a href="{{ include.desc.url }}">{{ title | strip_newlines }}</a>
|
||||
|
||||
{% elsif include.desc.type == "inlineCode" %}
|
||||
<code>{{ include.desc.value }}</code>
|
||||
|
||||
{% elsif include.desc.type == "text" %}
|
||||
{{ include.desc.value }}
|
||||
{% endif %}
|
21
devsite/source/_includes/docs/js/examples.html
Normal file
21
devsite/source/_includes/docs/js/examples.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
<h3><a href="#{{ include.anchor }}">{{ include.title }}</a></h3>
|
||||
<ul class="toc">
|
||||
<li class="toc__item"><a href="/tutorials/js-watchface-tutorial/part1/">Watchface Tutorial</a></li>
|
||||
<li class="toc__item"><a href="https://github.com/pebble-examples/rocky-memorypressure">Memory Pressure</a></li>
|
||||
</ul>
|
41
devsite/source/_includes/docs/js/function.html
Normal file
41
devsite/source/_includes/docs/js/function.html
Normal file
|
@ -0,0 +1,41 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
<div class="docs__item__header">
|
||||
{% unless include.global %} {{ page.js_module.name }}.{% endunless %}<span class="docs__item__name">{{ include.child.name }}</span>({% for param in include.child.params %}<span class="docs__item__param">{{ param.name }}</span>{% unless forloop.last %}, {% endunless %}{% endfor %})
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="docs__item__body">
|
||||
{% include docs/js/desc.html desc=include.child.description %}
|
||||
{% if include.child.params.size > 0 %}
|
||||
<h4>Parameters</h4>
|
||||
<dl>
|
||||
{% for param in include.child.params %}
|
||||
<dt><span style="color: #777">{{ param.type.name }}</span> {{ param.name }}</dt>
|
||||
<dd>{% include docs/js/desc.html desc=param.description %}</dt>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
{% endif %}
|
||||
|
||||
{% if include.child.returns.size > 0 %}
|
||||
<h4>Returns</h4>
|
||||
{% for return in include.child.returns %}
|
||||
{% include docs/js/desc.html desc=return.description %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
23
devsite/source/_includes/docs/js/mozilla.html
Normal file
23
devsite/source/_includes/docs/js/mozilla.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
<hr />
|
||||
<p>
|
||||
<a href="https://developer.mozilla.org/en-US/docs/Web/API"
|
||||
target="_blank">Web API</a> by Mozilla Contributors is licensed under
|
||||
<a href="http://creativecommons.org/licenses/by-sa/2.5/"
|
||||
target="_blank">CC-BY-SA 2.5</a>.
|
||||
</p>
|
24
devsite/source/_includes/docs/js/warning.html
Normal file
24
devsite/source/_includes/docs/js/warning.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
<!--
|
||||
<div class="alert alert--large alert--fg-white alert--bg-dark-red">
|
||||
<p>
|
||||
This documentation includes information about APIs and functionality
|
||||
which is only available in Pebble SDK 4.2-BETA.
|
||||
</p>
|
||||
</div>
|
||||
-->
|
47
devsite/source/_includes/docs/menu.html
Normal file
47
devsite/source/_includes/docs/menu.html
Normal file
|
@ -0,0 +1,47 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
<ul>
|
||||
{% for group in include.tree %}
|
||||
{% if page.docs_language == 'pebblekit_ios' %}
|
||||
{% assign open = true %}
|
||||
{% elsif include.group.path contains group.name %}
|
||||
{% assign open = true %}
|
||||
{% else %}
|
||||
{% assign open = false %}
|
||||
{% endif %}
|
||||
{% if group.children.size > 0 %}
|
||||
<li class="section-menu__item{% if open == true %} open{% if include.group.path.last == group.name %} active{% endif %}{% endif %}">
|
||||
<a href="{{ group.url }}">{{ group.name }}</a>
|
||||
<ul>
|
||||
{% for item in group.children %}
|
||||
<li class="section-menu__subitem{% if include.group.path contains item.name %} open{% if include.group.path.last == item.name %} active{% endif %}{% endif %}">
|
||||
<a href="{{ item.url }}"><span>{{ item.name }}</span></a>
|
||||
{% if item.children.size > 0 %}
|
||||
<ul>
|
||||
{% for child in item.children %}
|
||||
{% capture full_url %}{{ child.url }}index.html{% endcapture %}
|
||||
<li class="section-menu__subsubitem{% if page.url == full_url %} active{% endif %}"><a href="{{ child.url }}"><span>{{ child.name }}</span></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
24
devsite/source/_includes/docs/shared/graybox-list.html
Normal file
24
devsite/source/_includes/docs/shared/graybox-list.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.items.size > 0 %}
|
||||
<h3><a href="#{{ include.anchor }}">{{ include.title }}</a></h3>
|
||||
<ul class="toc">
|
||||
{% for item in include.items %}
|
||||
<li class="toc__item"><a href="{{ item.url }}">{{ item.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
22
devsite/source/_includes/docs/shared/select-list.html
Normal file
22
devsite/source/_includes/docs/shared/select-list.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.items.size > 0 %}
|
||||
<option value="#{{ include.anchor }}">{{ include.title | upcase }}</option>
|
||||
{% for item in include.items %}
|
||||
<option value="{{ item.url }}">{{ item.name }}</option>
|
||||
{% endfor %}
|
||||
{% endif %}
|
26
devsite/source/_includes/docs/submenu.html
Normal file
26
devsite/source/_includes/docs/submenu.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.items && include.items.size? %}
|
||||
<ul>
|
||||
{% for item in include.items %}
|
||||
<li class="active">
|
||||
<a href="{{ item.url }}">{{ item.name }}</a>
|
||||
{% include docs/submenu.html items=item.children %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
25
devsite/source/_includes/docs/tree.html
Normal file
25
devsite/source/_includes/docs/tree.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
<ul>
|
||||
{% for item in include.items %}
|
||||
<li><a href="{{ item.url }}">{{ item.name }}</a>
|
||||
{% if item.children.size > 0 %}
|
||||
{% include docs/tree.html items=item.children %}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue