Skip to content

Commit e3d6828

Browse files
kitswasCopilot
andcommitted
Relative image links in Markdown
Co-authored-by: Copilot <copilot@github.com>
1 parent b12bab1 commit e3d6828

4 files changed

Lines changed: 26 additions & 11 deletions

File tree

content/FAQ.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Here the the steps:
3232

3333
The following image shows the app connected via USB.
3434

35-
![USB Tethering]({{< asset "VGP_USB_Tethering.png" >}})
35+
![USB Tethering](../static/assets/VGP_USB_Tethering.png)
3636

3737
## The default mapping doesn't work for me. What do I do?
3838

@@ -41,7 +41,7 @@ You can:
4141
1. Change the controls in-game, if the game supports it.
4242
2. Use the profile editor in the server to remap the controls.
4343

44-
![Profile Editor]({{< asset "VGP_Profile_Editor.png" >}})
44+
![Profile Editor](../static/assets/VGP_Profile_Editor.png)
4545

4646
With a bit of remapping, almost everything is playable.
4747

@@ -50,7 +50,7 @@ With a bit of remapping, almost everything is playable.
5050
The L3 and R3 buttons toggle on a thumbstick long press (press and hold).
5151
A long press is required instead of a tap because otherwise it would be easy to misfire accidentally.
5252

53-
![Screenshot showing R3 button being pressed]({{< asset "VGP_Analog_Stick_press.png" >}})
53+
![Screenshot showing R3 button being pressed](../static/assets/VGP_Analog_Stick_press.png)
5454

5555
## Feels laggy/unresponsive
5656

content/Troubleshooting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If your problem is not covered here, [file an issue](/FAQ/#bug-reports-and-featu
1212
If you're having trouble connecting to the server, try disabling your firewall or adding an exception for the server.
1313
On Windows, you will be prompted to allow the server to communicate through the firewall when you run it for the first time.
1414

15-
![Firewall]({{< asset "VGP_UAC_Dialog.png" >}})
15+
![Firewall](../static/assets/VGP_UAC_Dialog.png)
1616

1717
**If you're still having trouble, start a hotspot on your phone and connect your PC to it.** (or vice-versa, try both)
1818
Then, restart the server and try connecting again.
@@ -23,15 +23,15 @@ _Do this before complaining about the app not working._
2323

2424
Check the Preferences screen in the server. Different input methods (Keyboard/Mouse or Gamepad) have different requirements.
2525

26-
![Screenshot of the Preferences screen at the time of writing]({{< asset "Server_preferences_Windows.png" >}})
26+
![Screenshot of the Preferences screen at the time of writing](../static/assets/Server_preferences_Windows.png)
2727

2828
On Windows, the Keyboard/Mouse mode works out of the box. The Gamepad mode requires:
2929

3030
1. The admin privilege. (Right click and Run as admin)
3131
2. App sideloading (developer mode) enabled. [(Settings > System > For developers > Developer mode)](ms-settings:developers).
3232

33-
![Settings App sideloading]({{< asset "settings_app_sideloading.png" >}})
34-
![Turn on developer mode]({{< asset "developer_mode_UAC.png" >}})
33+
![Settings App sideloading](../static/assets/settings_app_sideloading.png)
34+
![Turn on developer mode](../static/assets/developer_mode_UAC.png)
3535

3636
On Linux, the server requires rw access to `/dev/uinput`. Multiple ways to achieve this are described in-app.
3737

content/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ Connect via Wi-Fi ([or USB](/FAQ/#usb-connection)) and enjoy!
3232

3333
VirtualGamePad running on an Android 12 device:
3434

35-
![VirtualGamePad]({{< asset "VGP.svg" >}})
35+
![VirtualGamePad](../static/assets/VGP.svg)
3636

37-
![VirtualGamePad Dark]({{< asset "VGP_night.svg" >}})
37+
![VirtualGamePad Dark](../static/assets/VGP_night.svg)
3838

3939
VirtualGamePad Server running on a PC:
4040

41-
![VirtualGamePad Server]({{< asset "VGP_Server.png" >}})
41+
![VirtualGamePad Server](../static/assets/VGP_Server.png)
4242

4343
## Installation
4444

4545
To use VirtualGamePad, you need to install the Android app (client) on your phone and download the portable PC app (server) on your PC.
4646

4747
To be notified of new updates, you can star ⭐ or watch 👁️ the source repositories on GitHub.
4848

49-
![GitHub Star and Watch]({{< asset "GitHub_Star_Watch.png" >}})
49+
![GitHub Star and Watch](../static/assets/GitHub_Star_Watch.png)
5050

5151
### Android
5252

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{- $src := .Destination -}} {{- if hasPrefix $src "../static/assets/" -}} {{-
2+
$src = strings.TrimPrefix "../static/" $src -}} {{- $src = $src | relURL -}} {{-
3+
end -}}
4+
<img
5+
src="{{ $src | safeURL }}"
6+
alt="{{ .Text }}"
7+
{{
8+
with
9+
.Title
10+
}}
11+
title="{{ . }}"
12+
{{
13+
end
14+
}}
15+
/>

0 commit comments

Comments
 (0)