From c0ab4304920862b222672ed9fe9ad3d6c89d5f75 Mon Sep 17 00:00:00 2001 From: "thomas.ekstrand" Date: Wed, 13 Mar 2024 13:46:16 -0500 Subject: [PATCH 1/3] allow for hidden elements in print and PDF generation --- docs/about/overview/radio-settings.mdx | 6 +- docs/configuration/radio/power.mdx | 132 +++++++++++++------------ src/css/custom.css | 10 +- 3 files changed, 77 insertions(+), 71 deletions(-) diff --git a/docs/about/overview/radio-settings.mdx b/docs/about/overview/radio-settings.mdx index 2ff2c7bd..b7154346 100644 --- a/docs/about/overview/radio-settings.mdx +++ b/docs/about/overview/radio-settings.mdx @@ -17,9 +17,11 @@ Meshtastic is **not** LoRaWAN, Helium or TTN (TheThingsNetwork). Meshtastic uses Power limits will generally be lifted in the software if `is_licensed` is set to `true`. See [HAM Mode](/docs/faq#amateur-radio-ham) for more information. ::: -## Frequency Slot Calculator +
+ ## Frequency Slot Calculator - + +
## Europe Frequency Bands diff --git a/docs/configuration/radio/power.mdx b/docs/configuration/radio/power.mdx index 186ace3f..2207accd 100644 --- a/docs/configuration/radio/power.mdx +++ b/docs/configuration/radio/power.mdx @@ -49,73 +49,75 @@ Should be set to floating point value between 2 and 6 4. If "Battery Charge Percent" (e.g., B 3.82V 60%) is not displayed on the screen, it means that the default value of "Operative Adc Multiplier" is too high. Lower the "Operative Adc Multiplier" to a smaller number (it is recommended to decrease by 0.1) until the screen displays "Battery Charge Percent". Enter the current "Operative Adc Multiplier" in use into the "Operative Adc Multiplier" field in the calculator. Also, input the "Battery Charge Percent" displayed on the screen into the calculator. 5. Click the "Calculate" button to compute the "Calculated New Operative Adc Multiplier", and set it as the new "Operative Adc Multiplier" for the device. -
- ADC Calculator -
- -

This calibration method only maps 4.2V to Battery Charge Percent 100%, and does not address the potential non-linearities of the ADC.

-
- - - - - - - - - - - - - - - - - -
Battery Charge Percent: - -
Current Adc Multiplier: - -
Calculated New Operative Adc Multiplier: - -
- -
- Default values for ADC Multipliers are: +
+
+ ADC Calculator +
+ +

This calibration method only maps 4.2V to Battery Charge Percent 100%, and does not address the potential non-linearities of the ADC.

+
+ + + + + + + + + + + + + + + + + +
Battery Charge Percent: + +
Current Adc Multiplier: + +
Calculated New Operative Adc Multiplier: + +
+ +
+ Default values for ADC Multipliers are: - | Device | Default ADC Multiplier | - | :-------: | :--------------------: | - | hatter2 | 5.0 | - | diy | 1.85 | - | esp32-s3-pico | 3.1 | - | heltec_v1 & heltec_v2 | 3.2 | - | heltec_v3 & heltec_wsl_v3 | 4.9 | - | heltec_wireless_paper | 2 | - | heltec_wireless_tracker | 4.9 | - | lora_isp4520 | 1.436 | - | m5stack_coreink | 5 | - | nano-g1-explorer | 2 | - | picomputer-s3 | 3.1 | - | station-g1 | 6.45 | - | station-g2 | 4 | - | tlora_v2_1_16 | 2 | - | tlora_v2_1_18 | 2.11 | - | tlora_t3s3_v1 | 2.11 | - | t-deck | 2.11 | - | trackerd | 2 | + | Device | Default ADC Multiplier | + | :-------: | :--------------------: | + | hatter2 | 5.0 | + | diy | 1.85 | + | esp32-s3-pico | 3.1 | + | heltec_v1 & heltec_v2 | 3.2 | + | heltec_v3 & heltec_wsl_v3 | 4.9 | + | heltec_wireless_paper | 2 | + | heltec_wireless_tracker | 4.9 | + | lora_isp4520 | 1.436 | + | m5stack_coreink | 5 | + | nano-g1-explorer | 2 | + | picomputer-s3 | 3.1 | + | station-g1 | 6.45 | + | station-g2 | 4 | + | tlora_v2_1_16 | 2 | + | tlora_v2_1_18 | 2.11 | + | tlora_t3s3_v1 | 2.11 | + | t-deck | 2.11 | + | trackerd | 2 | -
-
+
+
+ ### Wait Bluetooth Interval diff --git a/src/css/custom.css b/src/css/custom.css index 7c784021..d0e7d277 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -230,12 +230,14 @@ td { padding-right: 10px !important; } -/* Need all tab content to show for PDF generation */ +/* Print styles for manual printing and PDF generation */ @media print { - ul.tabs { + ul.tabs, + .no-print { display: none; } - .tabs-container div > div { - display: block; + .tabs-container div > div, + .accordion__panel { + display: block !important; } } From 68b0ddbb91a7b4de19ce36d00dbf6db48d1f5825 Mon Sep 17 00:00:00 2001 From: rcarteraz Date: Wed, 13 Mar 2024 12:18:18 -0700 Subject: [PATCH 2/3] redirect --- vercel.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index e8ea1798..199c4bff 100644 --- a/vercel.json +++ b/vercel.json @@ -64,6 +64,10 @@ { "source": "/docs/getting-started/faq", "destination": "/docs/faq/" - } + }, + { + "source": "/docs/", + "destination": "/docs/introduction/" + }, ] } From 7cacbccce4902fb9628c4abae08a719d6091b6be Mon Sep 17 00:00:00 2001 From: rcarteraz Date: Wed, 13 Mar 2024 12:20:00 -0700 Subject: [PATCH 3/3] comma --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 199c4bff..51b14d20 100644 --- a/vercel.json +++ b/vercel.json @@ -68,6 +68,6 @@ { "source": "/docs/", "destination": "/docs/introduction/" - }, + } ] }