1
0
Fork
You've already forked website
0
Public repository to manage the contributions for the gadgetbridge.org website.
  • Python 61.8%
  • Shell 38.2%
2024年04月04日 21:28:37 +02:00
.vscode Force adding blank newlines at the end 2024年02月03日 13:41:58 +03:00
docs Huawei: Update for GPS sending 2024年04月04日 21:28:37 +02:00
scripts Add Pelican converter script 2023年09月28日 09:25:30 +03:00
.domains Add www.gadgetbridge.org to .domains 2023年12月22日 14:19:30 +00:00
.gitattributes First commit 2023年09月07日 14:31:42 +03:00
.gitignore Add publish to gadgetbridge_org 2023年11月23日 20:55:10 +00:00
.python-version Add WI-SP600N 2024年01月28日 13:36:23 +03:00
device_support.yml Update Huawei devices 2024年03月21日 21:20:10 +00:00
extra_config.yml Add Nothing CMF Watch Pro 2024年01月28日 18:36:17 +00:00
LICENSE Add AGPLv3 license 2023年09月14日 14:31:15 +03:00
mkdocs.yml Add Nothing CMF Watch Pro 2024年01月28日 18:36:17 +00:00
optional_tools.json Use a bash script as an alternative to Makefile 2023年11月27日 22:09:39 +03:00
pyproject.toml Update mkdocs-material to 9.5.16 2024年03月31日 11:28:26 +01:00
README.md Make sure dist exists on post build actions 2023年12月13日 15:33:26 +03:00
tasks.sh Add social plugin for card generation 2024年01月17日 18:00:13 +00:00

website

A documentation and home page used as website for Gadgetbridge, which is built with Material for Mkdocs.

Content comes from the current wiki. Most of the content has been re-organized and improved formatting, but it is not finalized yet. Check this discussion for more details.

Building

Mkdocs is written in Python, so as a bare minimum, Python environment is required to get running the documentation. Other than required Python dependencies, this documentation doesn't require additional mandatory setup.

Having a virtual Python environment is strongly recommended (and required for scripts) to not break user/system-wide Python installations. One of ways to have per-project Python installations is installing rye.

Commands are available in ./tasks.sh bash script to make working with the documentation easier. Here are some commands;

Install dependencies:

$ ./tasks.sh deps deps_tools

deps will require having rye installed, because since rye doesn't expose pip it has own command to install and manage dependencies. If you use another Python version/package manager, calling pip install . (or setuptools-compatible tool) should be enough as the pyproject.toml file doesn't use non-standard keys.

deps_tools downloads few command line tools to current folder, which later used for minifying the generated documentation. (HTML & images) It is not required to have these tools to have documentation built, so you can omit this command (by simply running ./tasks.sh deps alone) if you don't want to download them.

Preview documentation locally:

$ ./tasks.sh serve

Build documentation:

$ ./tasks.sh dist

Publish documentation:

$ ./tasks.sh publish

By default, it pushes the documentation to pages branch in Freeyourgadget/gadgetbridge_org repository.

To publish the documentation, it needs to be first built with ./tasks.sh dist. The script will fail if there is no output folder created by dist task. To do the both, (build & deploy), simply run ./tasks.sh dist publish.

License

All content in this repository has licensed with AGPLv3 unless written otherwise.