mirror of
https://github.com/google/pebble.git
synced 2025-05-31 23:43:11 +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
53
devsite/source/_layouts/tutorials/master.html
Normal file
53
devsite/source/_layouts/tutorials/master.html
Normal file
|
@ -0,0 +1,53 @@
|
|||
---
|
||||
# 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.
|
||||
|
||||
|
||||
layout: sidebar_narrow
|
||||
menu_section: tutorials
|
||||
---
|
||||
<div class="section-menu section-menu--getting-started section-menu--dark">
|
||||
<div class="section-menu__header">
|
||||
<h3><a href="/tutorials/">Tutorials</a></h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="section-menu__item{% if page.tutorial == 'watchface' %} open{% endif %}"><a href="/tutorials/watchface-tutorial/part1/">Build a Watchface in C</a>
|
||||
<ul>
|
||||
<li class="section-menu__subitem{% if page.tutorial_part == 1 %} active{% endif %}"><a href="/tutorials/watchface-tutorial/part1/"><span>Part 1 - Displaying the Time</span></a></li>
|
||||
<li class="section-menu__subitem{% if page.tutorial_part == 2 %} active{% endif %}"><a href="/tutorials/watchface-tutorial/part2/"><span>Part 2 - Customizing the Watchface</span></a></li>
|
||||
<li class="section-menu__subitem{% if page.tutorial_part == 3 %} active{% endif %}"><a href="/tutorials/watchface-tutorial/part3/"><span>Part 3 - Adding Web Content</a></li>
|
||||
<li class="section-menu__subitem{% if page.tutorial_part == 4 %} active{% endif %}"><a href="/tutorials/watchface-tutorial/part4/"><span>Part 4 - Adding a Battery Bar</span></a></li>
|
||||
<li class="section-menu__subitem{% if page.tutorial_part == 5 %} active{% endif %}"><a href="/tutorials/watchface-tutorial/part5/"><span>Part 5 - Vibrate on Disconnect</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="section-menu__item{% if page.tutorial == 'js-watchface' %} open{% endif %}"><a href="/tutorials/js-watchface-tutorial/part1/">Build a Watchface in JS</a>
|
||||
<ul>
|
||||
<li class="section-menu__subitem{% if page.tutorial_part == 1 %} active{% endif %}"><a href="/tutorials/js-watchface-tutorial/part1/"><span>Part 1 - Displaying the Time</span></a></li>
|
||||
<li class="section-menu__subitem{% if page.tutorial_part == 2 %} active{% endif %}"><a href="/tutorials/js-watchface-tutorial/part2/"><span>Part 2 - Adding Web Content</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="section-menu__item{% if page.tutorial == 'advanced' %} open{% endif %}"><a href="/tutorials/advanced/vector-animations/">Advanced Tutorials</a>
|
||||
<ul>
|
||||
<li class="section-menu__subitem{% if page.tutorial_part == 1 %} active{% endif %}"><a href="/tutorials/advanced/vector-animations/"><span>Vector Animations</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div><!-- sidebar__wrapper -->
|
||||
<div class="content content--section-menu">
|
||||
{% include search.html %}
|
||||
{{ content }}
|
||||
</div>
|
56
devsite/source/_layouts/tutorials/tutorial.html
Normal file
56
devsite/source/_layouts/tutorials/tutorial.html
Normal file
|
@ -0,0 +1,56 @@
|
|||
---
|
||||
# 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.
|
||||
|
||||
|
||||
layout: tutorials/master
|
||||
generate_toc: true
|
||||
menu_section: tutorials
|
||||
---
|
||||
<div class="container">
|
||||
{% include utils/toc_small.html toc=page.toc %}
|
||||
<div class="row">
|
||||
<div class="col-l-8">
|
||||
<h1>{{ page.title }}</h1>
|
||||
{% if page.platforms contains 'basalt' %}
|
||||
<div class="alert alert--fg-white alert--bg-purple alert--medium">
|
||||
<p>
|
||||
<strong>PLATFORM NOTICE</strong><br>
|
||||
This guide only applies for apps built to run on the Basalt platform
|
||||
(Pebble Time watches).
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="markdown markdown--staff">
|
||||
{% if page.platform_choice %}
|
||||
{% include platform-choice.html %}
|
||||
{% endif %}
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-m-4 hidden-s hidden-xs hidden-m">
|
||||
<div class="gray-box gray-box--fixed gray-box--scrollspy">
|
||||
{% include utils/toc_large.html toc=page.toc %}
|
||||
{% if page.related_links %}
|
||||
<h3>Related Links</h3>
|
||||
<ul>
|
||||
{% for doc in page.related_links %}
|
||||
<li><a href="{{ doc.url }}">{{ doc.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue