diff --git a/Documentation/build-docs.sh b/Documentation/build-docs.sh index 09c32eca4c60f9db830c5ce170752b431064b222..2cb616489cecf83d104d3797c7e5ed70f08ef7d3 100755 --- a/Documentation/build-docs.sh +++ b/Documentation/build-docs.sh @@ -4,3 +4,7 @@ set -e cd "$(dirname "$0")" sphinx-build -b html . ./output + +if [ "$1" = "--open" ]; then + xdg-open ./output/index.html +fi diff --git a/Documentation/card10-cfg.rst b/Documentation/card10-cfg.rst index f77a345b594801c5caa117d3e9b4d04209e7c6a2..03c1c1ece0ad573c08e91bd6b64d94b78b1f425e 100644 --- a/Documentation/card10-cfg.rst +++ b/Documentation/card10-cfg.rst @@ -64,4 +64,6 @@ Option name Type Description ``bsec_offset`` Integer Temperature offset in .1 K. Example: Set to `-14` if temperature reads 1.4 "C" to high. Default: -2.2 K (appropriate for a card10 without a case, connected to USB and with BLE active in vertical orientation). ------------------ ---------- ----------- ``battery_check`` Boolean Whether the low battery check should be enabled (default ``true``). **Warning**: Do not use this unless you know what you're doing. This option is only meant to be used on devices with a broken PMIC ADMUX connection. +------------------ ---------- ----------- +``has_flashlight`` Boolean Whether the flashlight LED was soldered onto the harmonic board. Can be used by apps to optionally enable flashlight features. ================== ========== =========== diff --git a/Documentation/conf.py b/Documentation/conf.py index 94867ea8b69d7507ad40ed1b4c77bc6c2912491a..b21f01dbc0f4f1a91ed19cb5b4fe2e2614998920 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -167,7 +167,10 @@ def fix_issue_8945(): "_Complex", "complex", ]: - c_domain._keywords.remove(kw) + if kw in c_domain._keywords: + c_domain._keywords.remove(kw) + if hasattr(c_domain, "_macroKeywords") and kw in c_domain._macroKeywords: + c_domain._macroKeywords.remove(kw) def parse_xref_object(self): name = self._parse_nested_name()