Skip to content

Commit 4d92f18

Browse files
committed
Update template.html
1 parent 6034647 commit 4d92f18

File tree

1 file changed

+53
-32
lines changed

1 file changed

+53
-32
lines changed

plugin/server/template.html

Lines changed: 53 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -43,42 +43,63 @@
4343
.dash {
4444
width: 5%;
4545
}
46+
code {
47+
background-color: #eee;
48+
border-radius: 3px;
49+
padding: 0 3px;
50+
}
51+
4652
</style>
4753
</head>
4854
<body>
4955
<h1><a href="https://github.com/cibere/Flow.Launcher.Plugin.rtfm">rtfm settings</a></h1>
50-
<table id="table">
51-
<tr id="table-header">
52-
<th></th>
53-
<th>Library Name</th>
54-
<th>URL</th>
55-
</tr>
56-
{% for lib in libs %}
57-
<tr class="row">
58-
<td class="dash"><button class="delete-btn" onclick="deleteRow(this)">-</button></td>
59-
<td class="content-td keyword"><textarea>{{ lib[0] }}</textarea></td>
60-
<td class="content-td url"><textarea>{{ lib[1] }}</textarea></td>
61-
</tr>
62-
{% endfor %}
63-
</table>
64-
<div>
65-
<button onclick="addRow()">
66-
Add Row
67-
</button>
68-
<button onclick="saveSettings()">
69-
Save Settings & Reload Cache
70-
</button>
71-
<button onclick="reloadCache()">
72-
Reload Cache
73-
</button>
74-
</div>
75-
<hr>
76-
<div>
77-
<label>Settings Keyword <input type="text" id="settings-keyword" value="{{ main_kw }}"></label>
78-
<button onclick="setSettingsKeyword()">
79-
Save Settings Keyword
80-
</button>
81-
</div>
56+
<p>
57+
The URLs must be complete, including the schema.
58+
<details>
59+
<summary>Online Documentation Instructions</summary>
60+
<p>
61+
To use an online copy of a library's documentation, simply have the url point to the root of the version of the documentation that you want to use. ex: <code>https://docs.python.org/3/</code> or <code>https://flogin.readthedocs.io/en/latest/</code>
62+
</p>
63+
</details>
64+
<details>
65+
<summary>Offline Documentation Instructions</summary>
66+
<p>
67+
To use an offline copy of a library's documentation, simply take the path of the directory that the <code>objects.inv</code> file is in, and give it in the form of a <code>file</code> scheme. ex: if my <code>objects.in</code> file is in <code>C:/flogin/docs/_build/html</code>, then my url would be: <code>file:///C:/flogin/docs/_build/html</code>
68+
</p>
69+
</details>
70+
</p>
71+
<table id="table">
72+
<tr id="table-header">
73+
<th></th>
74+
<th>Library Name</th>
75+
<th>URL</th>
76+
</tr>
77+
{% for lib in libs %}
78+
<tr class="row">
79+
<td class="dash"><button class="delete-btn" onclick="deleteRow(this)">-</button></td>
80+
<td class="content-td keyword"><textarea>{{ lib[0] }}</textarea></td>
81+
<td class="content-td url"><textarea>{{ lib[1] }}</textarea></td>
82+
</tr>
83+
{% endfor %}
84+
</table>
85+
<div>
86+
<button onclick="addRow()">
87+
Add Row
88+
</button>
89+
<button onclick="saveSettings()">
90+
Save Settings & Reload Cache
91+
</button>
92+
<button onclick="reloadCache()">
93+
Reload Cache
94+
</button>
95+
</div>
96+
<hr>
97+
<div>
98+
<label>Settings Keyword <input type="text" id="settings-keyword" value="{{ main_kw }}"></label>
99+
<button onclick="setSettingsKeyword()">
100+
Save Settings Keyword
101+
</button>
102+
</div>
82103
</body>
83104
<script>
84105
function deleteRow(button) {

0 commit comments

Comments
 (0)