Import the pebble dev site into devsite/

This commit is contained in:
Katharine Berry 2025-02-17 17:02:33 -08:00
parent 3b92768480
commit 527858cf4c
1359 changed files with 265431 additions and 0 deletions

View 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>

View 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 %}

View 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>

View 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 %}

View 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 %}

View 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 %}

View 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 %}

View 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 %}

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>