Skip to content

Commit e117fb2

Browse files
committed
wiki: Get rid of unwanted paragraphs
This gets rid of unwanted paragraphs in recovery install templates as well as special boot modes list. Change-Id: Ia222c4941176b4221231f2b7b25185318f058e56
1 parent 63f2e3b commit e117fb2

7 files changed

+54
-54
lines changed

_includes/templates/device_info.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ There are multiple variants of this device. [Make sure you're viewing the right
6363

6464
{% if device.recovery_boot %}
6565
* **Recovery**: {{ device.recovery_boot }}
66-
{% if device.vendor == "LG" %}
66+
{%- if device.vendor == "LG" %}
6767
{% include templates/recovery_boot_lge.md %}
68-
{% endif %}
69-
{% endif %}
70-
{% if device.download_boot %}
68+
{%- endif %}
69+
{%- endif %}
70+
{%- if device.download_boot %}
7171
* **Bootloader/Fastboot/Download**: {{ device.download_boot }}
72-
{% endif %}
73-
{% endif %}
72+
{%- endif %}
73+
{%- endif %}
7474

7575
## Known quirks
7676

_includes/templates/recovery_install_fastboot_generic.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ fastboot devices
4343
* on Linux or macOS: If you see `no permissions fastboot` try running `fastboot` as root. When the output is empty, check your USB cable (preferably use a USB Type-A 2.0 one or a USB hub) and port!
4444

4545
{% include alerts/tip.html content="Some devices have buggy USB support while in bootloader mode, if you see `fastboot` hanging with no output when using commands such as `fastboot getvar ...`, `fastboot boot ...`, `fastboot flash ...` you may want to try a different USB port (preferably a USB Type-A 2.0 one) or a USB hub." %}
46-
{% if device.needs_fastboot_boot %}
46+
{%- if device.needs_fastboot_boot %}
4747
7. Temporarily boot recovery on your device:
4848
```
4949
fastboot boot {{ device.recovery_partition_name }}.img
5050
```
51-
{% else %}
51+
{%- else %}
5252
7. Flash recovery onto your device:
5353
```
5454
fastboot flash {{ device.recovery_partition_name }} {{ device.recovery_partition_name }}.img
@@ -63,7 +63,7 @@ fastboot flash {{ device.recovery_partition_name }} {{ device.recovery_partition
6363
{% include alerts/note.html content="If you can't power down the device, try long-pressing the key-combination (if any was used in the instructions above) until the device reboots and follow the instructions above" %}
6464
{%- endif %}
6565
{%- include snippets/recovery_logo_note.md %}
66-
{% endif %}
66+
{%- endif %}
6767
{%- endcapture %}
6868

6969
{%- if is_lineage_recovery %}

_includes/templates/recovery_install_fastboot_htc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
{% include alerts/warning.html content="Unlocking the bootloader will erase all data on your device!
77
Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent. Please note that OEM backup solutions like Samsung and Motorola backup may not be accessible from LineageOS once installed." %}
88

9-
{% unless device.no_oem_unlock_switch %}
9+
{%- unless device.no_oem_unlock_switch %}
1010
1. Enable OEM unlock in the Developer options under device Settings, if present.
11-
{% endunless %}
11+
{%- endunless %}
1212
2. Connect the device to your PC via USB.
1313
3. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
1414
```

_includes/templates/recovery_install_fastboot_lenovo.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
{% include alerts/warning.html content="Unlocking the bootloader will erase all data on your device!
77
Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent. Please note that OEM backup solutions like Samsung and Motorola backup may not be accessible from LineageOS once installed." %}
88

9-
{% if device.install_variant and device.install_variant contains "lenovo_unlock_url" %}
9+
{%- if device.install_variant and device.install_variant contains "lenovo_unlock_url" %}
1010
1. Visit [Lenovo's ZUI official unlocking website](https://www.zui.com/iunlock), where you'll be asked to fill in some device and contact information.
1111
2. Follow the instructions and get your unlock file.
12-
{% unless device.no_oem_unlock_switch %}
12+
{%- unless device.no_oem_unlock_switch %}
1313
3. Enable OEM unlock in the Developer options under device Settings, if present.
14-
{% endunless %}
15-
{% else %}
16-
{% unless device.no_oem_unlock_switch %}
14+
{%- endunless %}
15+
{%- else %}
16+
{%- unless device.no_oem_unlock_switch %}
1717
4. Enable OEM unlock in the Developer options under device Settings, if present.
1818
5. Accept the terms that you understand that you're voiding your warranty by choosing to unlock your bootloader.
1919
6. Login with your Lenovo account (if you already have one) or create a new one.
2020
7. A 14 days countdown timer will start. This is specific per device.
2121
8. After the waiting period, go back to OEM unlocking so that the Lenovo servers can toggle the bootloader unlock switch.
22-
{% endunless %}
23-
{% endif %}
22+
{%- endunless %}
23+
{%- endif %}
2424
9. Connect the device to your PC via USB.
2525
10. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
2626
```
@@ -40,48 +40,48 @@ fastboot devices
4040
* on Linux or macOS: If you see `no permissions fastboot` try running `fastboot` as root. When the output is empty, check your USB cable and port!
4141
12. Now type the following command to unlock the bootloader:
4242

43-
{% if device.install_variant and device.install_variant contains "lenovo_unlock_url" %}
43+
{%- if device.install_variant and device.install_variant contains "lenovo_unlock_url" %}
4444
```
4545
fastboot flash unlock sn.img
4646
```
4747
Where `sn.img` is the bootloader unlock file you received in the email.
4848
13. Next, use your second unlock command
49-
{% if device.custom_unlock_cmd %}
49+
{%- if device.custom_unlock_cmd %}
5050
```
5151
{{ device.custom_unlock_cmd }}
5252
```
53-
{% else %}
53+
{%- else %}
5454
```
5555
fastboot oem unlock
5656
```
57-
{% endif %}
57+
{%- endif %}
5858
{% include alerts/note.html content="At this point the device may display on-screen prompts which will require interaction to continue the process of unlocking the bootloader. Please take whatever actions the device asks you to to proceed." %}
5959

6060
14. Wait for the bootloader unlocking process to complete. Once finished, you can check if bootloader is successfully unlocked by typing:
6161
```
6262
fastboot getvar unlocked
6363
```
6464
Verify that the response is `unlocked: yes`. In that case, you can now install third-party firmware.
65-
{% else %}
65+
{%- else %}
6666

67-
{% if device.custom_unlock_cmd %}
67+
{%- if device.custom_unlock_cmd %}
6868
```
6969
{{ device.custom_unlock_cmd }}
7070
```
71-
{% else %}
71+
{%- else %}
7272
```
7373
fastboot oem unlock
7474
```
75-
{% endif %}
75+
{%- endif %}
7676
{% include alerts/note.html content="At this point the device may display on-screen prompts which will require interaction to continue the process of unlocking the bootloader. Please take whatever actions the device asks you to to proceed." %}
77-
{% endif %}
77+
{%- endif %}
7878

7979
15. If the device doesn't automatically reboot, reboot it. It should now be unlocked.
8080
16. Since the device resets completely, you will need to re-enable USB debugging to continue.
8181

82-
{% if device.before_recovery_install %}
82+
{%- if device.before_recovery_install %}
8383
{% capture path %}templates/device_specific/before_recovery_install_{{ device.before_recovery_install }}.md{% endcapture %}
8484
{% include {{ path }} %}
85-
{% endif %}
85+
{%- endif %}
8686

8787
{% include templates/recovery_install_fastboot_generic.md %}

_includes/templates/recovery_install_fastboot_nexus.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
{% include alerts/warning.html content="Unlocking the bootloader will erase all data on your device!
77
Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent. Please note that OEM backup solutions like Samsung and Motorola backup may not be accessible from LineageOS once installed." %}
88

9-
{% unless device.no_oem_unlock_switch %}
9+
{%- unless device.no_oem_unlock_switch %}
1010
1. Enable OEM unlock in the Developer options under device Settings, if present.
11-
{% endunless %}
11+
{%- endunless %}
1212
2. Connect the device to your PC via USB.
1313
{%- if device.has_no_usb %}
1414
3. Boot into fastboot mode via a key combination:
@@ -33,15 +33,15 @@ fastboot devices
3333
* on Linux or macOS: If you see `no permissions fastboot` try running `fastboot` as root. When the output is empty, check your USB cable and port!
3434
5. Now type the following command to unlock the bootloader:
3535

36-
{% if device.custom_unlock_cmd %}
36+
{%- if device.custom_unlock_cmd %}
3737
```
3838
{{ device.custom_unlock_cmd }}
3939
```
40-
{% else %}
40+
{%- else %}
4141
```
4242
fastboot oem unlock
4343
```
44-
{% endif %}
44+
{%- endif %}
4545
{% include alerts/note.html content="At this point the device may display on-screen prompts which will require interaction to continue the process of unlocking the bootloader. Please take whatever actions the device asks you to to proceed." %}
4646
6. If the device doesn't automatically reboot, reboot it. It should now be unlocked.
4747
7. Since the device resets completely, you will need to re-enable USB debugging to continue.

_includes/templates/recovery_install_fastboot_nubia.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ fastboot devices
2424
* on Linux or macOS: If you see `no permissions fastboot` try running `fastboot` as root. When the output is empty, check your USB cable and port!
2525
5. Now type the following command to unlock the bootloader:
2626

27-
{% if device.custom_unlock_cmd %}
27+
{%- if device.custom_unlock_cmd %}
2828
```
2929
{{ device.custom_unlock_cmd }}
3030
```
31-
{% else %}
31+
{%- else %}
3232
```
3333
fastboot oem unlock
3434
```
35-
{% endif %}
35+
{%- endif %}
3636
6. The device is now ready to flash images, do not reboot the device before flashing.
3737

3838
{% include snippets/before_recovery_install.md %}

_includes/templates/recovery_install_fastboot_oppo.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,36 @@
66
{% include alerts/warning.html content="Unlocking the bootloader will erase all data on your device!
77
Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent. Please note that OEM backup solutions like Samsung and Motorola backup may not be accessible from LineageOS once installed." %}
88

9-
{% if device.project_spectrum_recovery %}
9+
{%- if device.project_spectrum_recovery %}
1010
1. Download [Project Spectrum recovery]({{ device.project_spectrum_recovery }}).
11-
{% endif %}
12-
{% if device.project_spectrum %}
11+
{%- endif %}
12+
{%- if device.project_spectrum %}
1313
2. Download [Project Spectrum]({{ device.project_spectrum }}).
14-
{% endif %}
15-
{% if device.required_bootloader_link %}
14+
{%- endif %}
15+
{%- if device.required_bootloader_link %}
1616
3. Download unlockable bootloader obtained from [here]({{ device.required_bootloader_link }}).
17-
{% endif %}
17+
{%- endif %}
1818
4. Place the downloaded .zip packages on the root of `/sdcard`:
1919
* Using adb: `adb -d push filename.zip /sdcard/`
2020
* You can use any method you are comfortable with. `adb` is universal across all devices, and works both in Android and recovery mode, providing
2121
USB debugging is enabled.
2222
5. If you aren't already in recovery, reboot into recovery:
2323
* {{ device.recovery_boot }}
24-
{% if device.project_spectrum_recovery %}
24+
{%- if device.project_spectrum_recovery %}
2525
6. Flash Project Spectrum recovery zip and reboot to recovery again:
2626
* {{ device.recovery_boot }}
27-
{% endif %}
28-
{% if device.project_spectrum %}
27+
{%- endif %}
28+
{%- if device.project_spectrum %}
2929
7. Flash Project Spectrum zip.
30-
{% endif %}
31-
{% if device.required_bootloader_link %}
30+
{%- endif %}
31+
{%- if device.required_bootloader_link %}
3232
8. Flash unlockable bootloader zip.
33-
{% endif %}
33+
{%- endif %}
3434
9. Reboot to android.
3535

36-
{% unless device.no_oem_unlock_switch %}
36+
{%- unless device.no_oem_unlock_switch %}
3737
10. Enable OEM unlock in the Developer options under device Settings, if present.
38-
{% endunless %}
38+
{%- endunless %}
3939
11. Connect the device to your PC via USB.
4040
12. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
4141
```
@@ -55,15 +55,15 @@ fastboot devices
5555
* on Linux or macOS: If you see `no permissions fastboot` try running `fastboot` as root. When the output is empty, check your USB cable and port!
5656
14. Now type the following command to unlock the bootloader:
5757

58-
{% if device.custom_unlock_cmd %}
58+
{%- if device.custom_unlock_cmd %}
5959
```
6060
{{ device.custom_unlock_cmd }}
6161
```
62-
{% else %}
62+
{%- else %}
6363
```
6464
fastboot oem unlock
6565
```
66-
{% endif %}
66+
{%- endif %}
6767
{% include alerts/note.html content="At this point the device may display on-screen prompts which will require interaction to continue the process of unlocking the bootloader. Please take whatever actions the device asks you to to proceed." %}
6868

6969
15. If the device doesn't automatically reboot, reboot it. It should now be unlocked.

0 commit comments

Comments
 (0)