-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
778 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Build and deploy website to github pages | ||
|
||
# execute this workflow automatically when a we push to master | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
build_docs_job: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U sphinx | ||
python -m pip install -r docs/manual/requirements.txt | ||
- name: make the sphinx docs | ||
run: | | ||
cd docs/manual | ||
bash gh_make.sh ../../manual | ||
cd ../.. | ||
cp docs/manual/index.html manual | ||
rm -r docs/manual | ||
mv manual docs | ||
# - name: Init new repo in dist folder and commit generated files | ||
# run: | | ||
# cd _build_docs | ||
# git init | ||
# git add -A | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "GitHub Action" | ||
# git commit -m 'deploy' | ||
|
||
- uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs | ||
force_orphan: true | ||
|
||
# - name: Force push to destination branch | ||
# uses: ad-m/[email protected] | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# branch: gh-pages | ||
# force: true | ||
# directory: ./_build_docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*_build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# XDial web pages | ||
# XDial web pages | ||
|
||
zh-cn [![Documentation Status](https://readthedocs.org/projects/xdial/badge/?version=latest)](https://xdial.readthedocs.io/zh-cn/latest/?badge=latest) | ||
|
||
en [![Documentation Status](https://readthedocs.org/projects/xdial-en/badge/?version=latest)](https://xdial.readthedocs.io/en/latest/?badge=latest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<html><script>location.pathname='xdial_cf_gallery';</script><body></body></html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
# You can also specify other tool versions: | ||
# nodejs: "19" | ||
# rust: "1.64" | ||
# golang: "1.19" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: docs/manual/en/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
formats: | ||
# - epub | ||
|
||
# Optional but recommended, declare the Python requirements required | ||
# to build your documentation | ||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: docs/manual/requirements.txt |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.inline{display: inline} | ||
.block{display:block} | ||
|
||
img.dev{width:160px;} | ||
figure:has(>img.dev){display: flex;align-items: center;} | ||
figure>img.dev{margin-right: 1em} | ||
|
||
img.web{border:1px solid gray; border-radius: 4px; max-width: 300px} | ||
|
||
div:has(>iframe){text-align: center;width:100%;margin: 1.5em auto;} | ||
iframe{display: block;margin: 0.5em auto;} | ||
div.hor>iframe{width:100%;aspect-ratio: 16/9;max-width: 550px} | ||
div.ver>iframe{width:70%;aspect-ratio: 9/16;max-width: 300px} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Clock Faces | ||
================= | ||
|
||
|
||
.. figure:: _static/menu_cf.dev.png | ||
:class: dev | ||
|
||
进入设备的表盘界面 | ||
|
||
.. figure:: _static/cf_list.dev.png | ||
:class: dev | ||
|
||
里面包括几个系统自带的表盘和 3 个可选表盘 | ||
|
||
|
||
Built-in clock faces | ||
-------------------------- | ||
|
||
系统自带的表盘可以在设置页面中简单的颜色或样式的自定义,“默认” 按钮则恢复初始设置,点击 “保存” 后生效。 | ||
|
||
.. image:: _static/clock_faces.web.png | ||
:class: web | ||
:align: center | ||
|
||
\ | ||
|
||
|
||
Optional clock faces | ||
------------------------- | ||
|
||
可选表盘需要通过下载获得 | ||
|
||
在 “表盘” 栏的下拉菜单选择的 “可选表盘n”,点击 “表盘广场” 链接 | ||
|
||
.. image:: _static/cf_opt.web.png | ||
:class: web | ||
:align: center | ||
|
||
\ | ||
|
||
点击相应的主题表盘右侧的 ⬇️ 按钮便可下载 | ||
|
||
.. image:: _static/gallery.web.png | ||
:class: web | ||
:align: center | ||
|
||
\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# For the full list of built-in configuration values, see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Project information ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
project = 'xDial User Manual' | ||
copyright = '2024, hyan' | ||
author = 'hyan' | ||
release = '1.0.0' | ||
|
||
# -- General configuration --------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
extensions = ['sphinx.ext.githubpages', 'sphinx.ext.autosectionlabel'] | ||
|
||
templates_path = ['_templates'] | ||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] | ||
|
||
language = 'en' | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_theme = 'sphinx_rtd_theme' | ||
html_static_path = ['_static'] | ||
|
||
html_css_files = ['custom.css'] | ||
|
||
html_theme_options = { | ||
'collapse_navigation': False | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
FAQ | ||
============ | ||
|
||
如何重置 WiFi? | ||
---------------- | ||
|
||
设备启动时若无法连接 WiFi,会自动进入 WiFi 配网状态。 | ||
|
||
在设备已经联网时,如果需要重置或更改 WiFi 配置,可以手动让设备进入配网状态: | ||
|
||
#. 在设备上电前按住 **左键** ,并在启动时保持按下状态约 1 秒直到 “嘀” 的一声。 | ||
#. 根据提示连接设备提供的 WiFi 热点进行设置。 | ||
|
||
无法访问设置页面 | ||
--------------------------- | ||
|
||
#. 确保设备与您的手机处于同一局域网内。 | ||
#. `开启设备的设置功能 <settings/>`_ | ||
|
||
没有天气数据 | ||
------------------- | ||
|
||
#. 完成 `天气设置 <weather/>`_ | ||
#. 若天气界面仍然没有数据,可点击右键刷新,根据和风天气网站对应的 `错误状态码 <https://dev.qweather.com/docs/resource/status-code/>`_ 排查原因。 | ||
|
||
下载表盘后设备不断重启 | ||
------------------------------ | ||
|
||
表盘下载过程出错或表盘文件本身格式错误都可能导致设备在加载表盘时出错而重启。 | ||
|
||
您可以尝试让设备启动时跳过表盘加载,然后进入设置页面删除可选表盘: | ||
|
||
#. 在设备上电前按住 **右键** ,并在启动时保持按下状态约 1 秒直到 “嘀” 的一声。 | ||
#. 若设备能顺利启动,您可以在 *设置* 页面 → *表盘* → *(可选表盘n)* → 点击 *删除* 按钮来删除对应表盘。 | ||
#. 若问题仍未解决,您可以尝试 :ref:`恢复出厂设置 <如何恢复出厂设置?>` 。 | ||
|
||
|
||
|
||
如何恢复出厂设置? | ||
------------------------- | ||
|
||
* 在设置页面点击 **重置** 按钮,设备将恢复出厂设置并重启。 | ||
|
||
\ | ||
|
||
* 也可以在设备启动阶段恢复出厂设置: | ||
|
||
#. 在设备上电前同时按住 **左键和右键** ,并在启动时保持按下状态约 1 秒直到 “嘀嘀” 两声。 | ||
#. 此时设备将删除设置页面里的所有个性化设置(包括和风天气的 KEY 和可选表盘),但保留 WiFi 设置。 | ||
|
||
|
||
|
||
如何制作表盘? | ||
------------------ | ||
|
||
表盘制作教程还在准备中... | ||
|
||
能否刷入第三方固件? | ||
-------------------------- | ||
|
||
不能,设备串口已关闭。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
User Manual | ||
================= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
wifi_provision | ||
input | ||
settings | ||
ota | ||
clock_faces | ||
weather | ||
perfmon | ||
faq | ||
|
||
|
||
Product parameters | ||
-------------------- | ||
|
||
.. csv-table:: | ||
|
||
"Shell", "Resin 3D printed" | ||
"Size", "52*47*54 mm" | ||
"Screen", "Ø 32 mm, 240*240 pixels" | ||
"Power", "DC 5V, USB Type-C (no battery)" | ||
"Processor", "ESP32-C3" | ||
"WiFi", "2.4 GHz, 802.11 b/g/n" | ||
"Flash", "32 Mbit" | ||
"Language", "En/中文" | ||
|
||
⚠️ The shell is 3D printed with resin, it may soften and deform in high-temperature environment. | ||
|
||
|
||
.. | ||
Indices and tables | ||
================== | ||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Dial and Buttons | ||
================== | ||
|
||
.. image:: _static/input.png | ||
:align: center | ||
:scale: 75% | ||
\ | ||
|
||
| 当左键对应图标 ← 时,点击左键将返回到上一级菜单。 | ||
| 但在少数应用中,左键已被其他功能占用,要返回上一级菜单,需要长按左键约半秒直至其图标变为 ← 。 | ||
.. figure:: _static/left_btn_func.dev.png | ||
:class: dev | ||
|
||
例如,在番茄钟界面里,左键 ↺ 为重置计时功能 | ||
|
||
.. figure:: _static/left_btn_back.dev.png | ||
:class: dev | ||
|
||
长按左键,图标变成 ← |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
OTA Update | ||
============= | ||
|
||
You can check for available firmware updates in the "Update" section. | ||
|
||
.. image:: _static/ota.web.png | ||
:class: web | ||
:align: center | ||
|
||
\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Perfmon | ||
=============== |
Oops, something went wrong.