Skip to content

Commit d835bb4

Browse files
committed
doc: fix github formatting
1 parent 97f26d0 commit d835bb4

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.adoc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ Firefox WebHID API support through webextension native messaging.
44

55
== Demo
66

7-
:paramV: yNaiQO94_sQ
7+
:paramV:
88
include::docs/youtube.adoc[]
9+
ifdef::env-github[]
10+
image:https://img.youtube.com/vi/yNaiQO94_sQ/maxresdefault.jpg[link=https://youtu.be/yNaiQO94_sQ]
11+
endif::[]
12+
13+
ifndef::env-github[]
14+
video::yNaiQO94_sQ[youtube]
15+
endif::[]
916

1017
Demo is outdated, the UI is much more polished now.
1118

@@ -51,6 +58,11 @@ Binary format is not possible, as background<->native communication may only use
5158

5259
HID:
5360

61+
ifdef::env-github[]
62+
image:docs/hid.png[]
63+
endif::[]
64+
65+
ifndef::env-github[]
5466
[mermaid, target=docs/hid, format=png]
5567
....
5668
sequenceDiagram
@@ -106,13 +118,20 @@ sequenceDiagram
106118
N->>-I: [response]
107119
end
108120
....
121+
endif::[]
109122

110123
Hid device:
111124

125+
ifdef::env-github[]
126+
image:docs/hid-device.png[]
127+
endif::[]
128+
129+
ifndef::env-github[]
112130
[mermaid, target=docs/hid-device, format=png]
113131
....
114132
sequenceDiagram
115133
....
134+
endif::[]
116135

117136
== Plans
118137

0 commit comments

Comments
 (0)