Skip to content

Commit fe993bf

Browse files
committed
auto: Keyman for developer help deployment
1 parent 4ffb678 commit fe993bf

File tree

12 files changed

+117
-44
lines changed

12 files changed

+117
-44
lines changed

developer/18.0/context/options.md

Lines changed: 58 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -125,42 +125,73 @@ Update database
125125

126126
![Options dialog - Server tab](../images/ui/frmOptions_Server.png)
127127

128-
There are two configurations in the Keyman Developer Server section:
129-
1. Configure Server...
130-
2. List local URLs for Server
128+
### Configure Server dialog
131129

132-
Configure Server...
130+
After clicking the **Configure Server...** button, a new window will pop-up:
133131

134-
: After clicking the button, a new window will pop-up
132+
![Keyman Developer Server Options dialog](../images/ui/frmKeyman_Developer_Server_Options.png)
135133

136-
![Keyman Developer Server Options dialog](../images/ui/frmKeyman_Developer_Server_Options.png)
134+
You can customize the Keyman Developer Server for testing your keyboard online
135+
and on other devices. Features of the Keyman Developer Server include:
137136

138-
You can customize the Keyman Developer server for testing the usability of your keyboard. Features of the Keyman Developer server include:
137+
* Seamless integration with the IDE (Start, Stop, Live reload, Recompile...)
138+
* Sharing keyboards for testing online and on other devices
139+
* Allowing testing across devices and networks
139140

140-
* Seamless integration with the IDE (Start, Stop, Live reload, Recompile...)
141-
* Port configuration
142-
* Allow testing cross devices
143-
* Wider range support for NGROK...
141+
Keyman Developer Server integrates with a free tool called
142+
[ngrok](https://ngrok.com) that provides a public URL to your instance of Keyman
143+
Developer Server. This URL is dynamic and can change over time, and is only
144+
available while Keyman Developer Server is running. This URL can be accessed
145+
from any mobile device that is online, whether or not it is on your local
146+
network. This means you can also quickly share keyboards, packages, and models
147+
with other users, with a minimum of difficulty.
144148

145-
[Find out more](https://github.com/keymanapp/keyman/pull/6073)
149+
* [Learn more about ngrok](server#ngrok)
146150

147-
Understanding the three tick boxes will enhance the usability of Keyman Developer:
148-
- **Leave Server running after closing IDE**: allows keyboard testing on local URLs after closing Keyman Developer.
149-
- **Use ngrok to provide public url for web debugger**: configure NGROK as instructed, once it looks something like this:
150-
![Keyman Developer NGROK](../images/ui/frmNGROK_Config.png)
151+
**Options available in this dialog:**
151152

152-
Please restart the machine, and the URL (*link ending in .ngrok-free.app*) will appear in the specified locations:
153-
![Keyman Developer NGROK URL 1](../images/ui/frmNGROK_Server_1.png)
154-
![Keyman Developer NGROK URL 2](../images/ui/frmNGROK_Server_2.png)
153+
- **Leave Server running after closing IDE**: allows keyboard testing on local
154+
URLs even if Keyman Developer is not running.
155155

156-
Now, freely share it across multiple devices using the link or QR code.
157-
![Keyboard Test on Mobile](../images/ui/NGROK_Phone.png)
156+
- **Use ngrok to provide public url for web debugger**: enable ngrok
157+
integration; you may need to download additional components; see below:
158158

159-
- **Show server console window on start**: once ticked, Keyman Developer's server console will appear as an independent window as a node application with the default message:
160-
`Starting Keyman Developer Server 17.0.290-beta, listening on port 8008.`
159+
- **Download or update ngrok**: If the text next to this button shows 'Not
160+
installed', press the button to download the required component
161161

162-
List local URLs for Server
163-
: Below Configure Server, untick the box, and it will quit displaying any local URLs for keyboard testing.
164-
![Keyman Developer Server Options dialog](../images/ui/frmList_Local_URLs.png)
162+
- **Install required redistributable**: ngrok requires an additional Microsoft
163+
VC++ redistributable component; if the text next to this button shows 'Not
164+
installed', press the button and follow the prompts to install the
165+
redistributable component.
165166

166-
Explore more: [Keyman Developer Server](server#toc-configuring-keyman-developer-server)
167+
After enabling ngrok, a URL with ending a domain such as `.ngrok-free.app` will
168+
appear in the Tools/Server menu and the Web and Mobile debugger pages in the
169+
Keyboard Editor and the Package Editor:
170+
171+
![Tools/Options/Server menu showing ngrok](../images/ui/tools_options_server_ngrok.png)
172+
173+
![Web and Mobile test showing ngrok](../images/ui/web_and_mobile_test_ngrok.png)
174+
175+
Once this is active, you can access Keyman Developer Server across multiple
176+
devices and networks using the link or QR code.
177+
178+
- **Show server console window on start**: once ticked, Keyman Developer's
179+
server console will appear as an independent window as a node application,
180+
which may be helpful if you encounter errors as they will appear in the
181+
console.
182+
183+
A default message will appear when the server console starts, similar to:
184+
`Starting Keyman Developer Server <version>-beta, listening on port 8008.`
185+
186+
### List local URLs for Server
187+
188+
When selected, Keyman Developer will show you more local URLs in the
189+
Tools/Server menu for accessing Keyman Developer Server from your browser. Some
190+
of these URLs will work only on your local computer, and will not work on other
191+
devices. Deselect this option in order to show only the most relevant access
192+
URLs. (On some networks, it may be helpful to see all the available URLs.)
193+
194+
195+
## Related links
196+
197+
* [Keyman Developer Server](server#toc-configuring-keyman-developer-server)

developer/18.0/context/server.md

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ context as well.
292292
The devices listed are representative of the various types of platforms that
293293
Keyman supports, to allow testing on each of the available form factors.
294294

295-
## Making your Keyman Developer Server instance globally available with ngrok
295+
## Making your Keyman Developer Server instance globally available with ngrok {#ngrok}
296296

297297
One of the fiddliest parts of testing keyboards and models with mobile devices
298298
is transferring the files to your phone or tablet. Keyman Developer Server will
@@ -320,28 +320,30 @@ configure ngrok manually.
320320
click **Configure Server...**. You should be presented with a window similar
321321
to this:
322322

323-
![](images/config.png)
323+
![](../images/ui/frmKeyman_Developer_Server_Options.png)
324324

325325
2. Tick the box **Use ngrok to provide public url for Server**
326-
3. If ngrok is available, a version number will be shown to the right of the
326+
3. If ngrok is available, the text 'Installed' will be shown to the right of the
327327
**Download or update ngrok** button. Otherwise, click this button to download
328328
the latest version.
329-
4. You'll need a free ngrok account, so click the **Create free ngrok
329+
4. **Install required redistributable**: ngrok requires an additional Microsoft
330+
VC++ redistributable component; if the text next to this button shows 'Not
331+
installed', press the button and follow the prompts to install the
332+
redistributable component.
333+
5. You'll need a free ngrok account, so click the **Create free ngrok
330334
account...** button to open the ngrok website, and follow the steps there
331335
to finish the account creation process.
332-
5. After creating the account, you should be presented with an authentication
336+
6. After creating the account, you should be presented with an authentication
333337
token. You can also access this by clicking the **Get token** link in the
334338
Keyman Developer Server Options dialog box. Paste this token into the
335339
**Authentication token** edit box.
336-
6. Select the most appropriate region for your location, to minimize the latency
337-
(delay) when using the ngrok service.
338340
7. Click **OK** to save changes, and start the ngrok service within Keyman
339341
Developer Server.
340342

341343
Once ngrok is configured, you should see an additional **Server** menu item in
342344
Keyman Developer's **Tools** menu, with three items:
343345

344-
**Open `https://some-url.ngrok.io` in browser**
346+
**Open `https://some-url.ngrok-free.app` in browser**
345347

346348
: Opens the public URL to your current Keyman Developer Server instance in the
347349
default browser on your computer.
@@ -353,15 +355,7 @@ Keyman Developer's **Tools** menu, with three items:
353355

354356
**Configure...**
355357

356-
: Opens the Keyman Developer Server Options dialog box.
357-
358-
# Configuring Keyman Developer Server
359-
360-
Keyman Developer Server has a number of configuration options. On Windows, using
361-
Keyman Developer is the easiest way to manage these options. Open **Tools |
362-
Options**, select **Server** tab, and click **Configure Server...**.
363-
364-
![](images/config.png)
358+
: Opens the [Keyman Developer Server Options](options#server-tab) dialog box.
365359

366360
## Configuration Files
367361

-43.7 KB
Binary file not shown.
111 KB
Loading
-29.6 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.

developer/18.0/reference/messages/common-types.commontypesmessages.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ title: Compiler Messages Reference for @keymanapp/common-types
1313
[KM01007](km01007) | `ERROR_TestDataUnexpectedArray` | Problem reading test data: expected single &lt;param&gt; element, found multiple
1414
[KM01008](km01008) | `ERROR_InvalidXml` | The XML file could not be read:
1515
[KM01009](km01009) | `ERROR_InvalidPackageFile` | Package source file is invalid: unknown error
16+
[KM0100A](km0100a) | `ERROR_InvalidProjectFile` | Project file is not valid: &lt;param&gt;
17+
[KM0100B](km0100b) | `ERROR_UnsupportedProjectVersion` | Project version &lt;param&gt; is not supported by this version of Keyman Developer\.
18+
[KM0100C](km0100c) | `ERROR_ProjectFileCouldNotBeRead` | Project file could not be read
19+
[KM0100D](km0100d) | `ERROR_NotAPackageFile` | Package source file is not a valid \.kps file because it is missing the &lt;Package&gt; root element\.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: KM0100A: ERROR_InvalidProjectFile
3+
---
4+
5+
| | |
6+
|------------|---------- |
7+
| Message | Project file is not valid: &lt;param&gt; |
8+
| Module | [common-types.CommonTypesMessages](common-types.commontypesmessages) |
9+
| Identifier | `ERROR_InvalidProjectFile` |
10+
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: KM0100B: ERROR_UnsupportedProjectVersion
3+
---
4+
5+
| | |
6+
|------------|---------- |
7+
| Message | Project version &lt;param&gt; is not supported by this version of Keyman Developer\. |
8+
| Module | [common-types.CommonTypesMessages](common-types.commontypesmessages) |
9+
| Identifier | `ERROR_UnsupportedProjectVersion` |
10+
11+

0 commit comments

Comments
 (0)