Skip to content

Commit 2bf5815

Browse files
authored
Merge pull request electron#292 from demopark/master
Fix the .html file tags in sections directory
2 parents 34a4cac + affc947 commit 2bf5815

File tree

13 files changed

+38
-38
lines changed

13 files changed

+38
-38
lines changed

sections/communication/ipc.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ <h3>The <code>ipc</code> (inter-process communication) module allows you to send
2323
<button class="demo-button" id="async-msg">Ping</button>
2424
<span class="demo-response" id="async-reply"></span>
2525
</div>
26-
<p>Using <code>ipc</code> to send messages between processes asynchronously is the preferred method since it will return when finished without blocking other operations in the same process.
26+
<p>Using <code>ipc</code> to send messages between processes asynchronously is the preferred method since it will return when finished without blocking other operations in the same process.</p>
2727

2828
<p>This example sends a "ping" from this process (renderer) to the main process. The main process then replies with "pong".</p>
2929
<h5>Renderer Process</h5>
30-
<pre><code data-path="renderer-process/communication/async-msg.js"></pre></code>
30+
<pre><code data-path="renderer-process/communication/async-msg.js"></code></pre>
3131
<h5>Main Process</h5>
3232
<pre><code data-path="main-process/communication/async-msg.js"></code></pre>
3333
</div>
@@ -47,7 +47,7 @@ <h5>Main Process</h5>
4747
<p>You can use the <code>ipc</code> module to send synchronous messages between processes as well, but note that the synchronous nature of this method means that it <b>will block</b> other operations while completing its task.</p>
4848
<p>This example sends a synchronous message, "ping", from this process (renderer) to the main process. The main process then replies with "pong".</p>
4949
<h5>Renderer Process</h5>
50-
<pre><code data-path="renderer-process/communication/sync-msg.js"></pre></code>
50+
<pre><code data-path="renderer-process/communication/sync-msg.js"></code></pre>
5151
<h5>Main Process</h5>
5252
<pre><code data-path="main-process/communication/sync-msg.js"></code></pre>
5353
</div>
@@ -68,7 +68,7 @@ <h5>Main Process</h5>
6868
<p>In this example we use the <code>remote</code> module to create a new invisible browser window from this renderer process. When the new page is loaded we send a message with <code>ipc</code> that the new window is listening for.</p>
6969
<p>The new window then computes the factorial and sends the result to be recieved by this, the original, window and added to the page above.</p>
7070
<h5>Renderer Process</h5>
71-
<pre><code data-path="renderer-process/communication/invisible-msg.js"></pre></code>
71+
<pre><code data-path="renderer-process/communication/invisible-msg.js"></code></pre>
7272
<h5>Invisible Window Page HTML</h5>
7373
<pre><code data-path="sections/communication/invisible.html"></code></pre>
7474
</div>

sections/media/desktop-capturer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h3>The <code>desktopCapturer</code> module in Electron can be used to access an
2525
<p>This demo uses the <code>desktopCapturer</code> module to gather screens in use and select the entire screen and take a snapshot of what is visible.</p>
2626
<p>Clicking the demo button will take a screenshot of your current screen and open it in your default viewer.</p>
2727
<h5>Renderer Process</h5>
28-
<pre><code data-path="renderer-process/media/desktop-capturer.js"></pre></code>
28+
<pre><code data-path="renderer-process/media/desktop-capturer.js"></code></pre>
2929
</div>
3030
</div>
3131
</div>

sections/media/pdf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h3>The <code>browser window</code> module in Electron has a property, <code>web
2525
<p>To demonstrate the print to PDF functionality, the demo button above will save this page as a PDF and, if you have a PDF viewer, open the file.</p>
2626
<p>In a real-world application you're more likely to add this to application menu, but for the purposes of the demo we've set it to the demo button.</p>
2727
<h5>Renderer Process</h5>
28-
<pre><code data-path="renderer-process/media/pdf.js"></pre></code>
28+
<pre><code data-path="renderer-process/media/pdf.js"></code></pre>
2929
<h5>Main Process</h5>
3030
<pre><code data-path="main-process/media/pdf.js"></code></pre>
3131

sections/menus/menus.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ <h2>ProTip</h2>
5555
<p>In this demo we use the <code>ipcRenderer</code> module to show the context menu when explicitly calling it from the renderer process.</p>
5656
<p>See the full <a href="http://electron.atom.io/docs/api/web-contents/#event-context-menu">context-menu event documentation</a> for all the available properties.</p>
5757
<h5>Main Process</h5>
58-
<pre><code data-path="main-process/menus/context-menu.js"></pre></code>
58+
<pre><code data-path="main-process/menus/context-menu.js"></code></pre>
5959
<h5>Renderer Process</h5>
60-
<pre><code data-path="renderer-process/menus/context-menu.js"></pre></code>
60+
<pre><code data-path="renderer-process/menus/context-menu.js"></code></pre>
6161
</div>
6262
</div>
6363
</div>

sections/menus/shortcuts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h3>The <code>globalShortcut</code> and <code>Menu</code> modules can be used to
4545
</p>
4646

4747
<h5>Main Process</h5>
48-
<pre><code data-path="main-process/menus/shortcuts.js"></pre></code>
48+
<pre><code data-path="main-process/menus/shortcuts.js"></code></pre>
4949

5050
<div class="demo-protip">
5151
<h2>ProTip</h2>

sections/native-ui/dialogs.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h3>The <code>dialog</code> module in Electron allows you to use native system d
2626
</div>
2727
<p>In this demo, the <code>ipc</code> module is used to send a message from the renderer process instructing the main process to launch the open file (or directory) dialog. If a file is selected, the main process can send that information back to the renderer process.</p>
2828
<h5>Renderer Process</h5>
29-
<pre><code data-path="renderer-process/native-ui/dialogs/open-file.js"></pre></code>
29+
<pre><code data-path="renderer-process/native-ui/dialogs/open-file.js"></code></pre>
3030
<h5>Main Process</h5>
3131
<pre><code data-path="main-process/native-ui/dialogs/open-file.js"></code></pre>
3232

@@ -61,7 +61,7 @@ <h2>ProTip</h2>
6161

6262
<p>You can use an error dialog before the app's <code>ready</code> event, which is useful for showing errors upon startup.</p>
6363
<h5>Renderer Process</h5>
64-
<pre><code data-path="renderer-process/native-ui/dialogs/error.js"></pre></code>
64+
<pre><code data-path="renderer-process/native-ui/dialogs/error.js"></code></pre>
6565
<h5>Main Process</h5>
6666
<pre><code data-path="main-process/native-ui/dialogs/error.js"></code></pre>
6767
</div>
@@ -84,7 +84,7 @@ <h5>Main Process</h5>
8484

8585
<p>An information dialog can contain an icon, your choice of buttons, title and message.</p>
8686
<h5>Renderer Process</h5>
87-
<pre><code data-path="renderer-process/native-ui/dialogs/information.js"></pre></code>
87+
<pre><code data-path="renderer-process/native-ui/dialogs/information.js"></code></pre>
8888
<h5>Main Process</h5>
8989
<pre><code data-path="main-process/native-ui/dialogs/information.js"></code></pre>
9090
</div>
@@ -103,7 +103,7 @@ <h5>Main Process</h5>
103103
</div>
104104
<p>In this demo, the <code>ipc</code> module is used to send a message from the renderer process instructing the main process to launch the save dialog. It returns the path selected by the user which can be relayed back to the renderer process.</p>
105105
<h5>Renderer Process</h5>
106-
<pre><code data-path="renderer-process/native-ui/dialogs/save.js"></pre></code>
106+
<pre><code data-path="renderer-process/native-ui/dialogs/save.js"></code></pre>
107107
<h5>Main Process</h5>
108108
<pre><code data-path="main-process/native-ui/dialogs/save.js"></code></pre>
109109
</div>

sections/native-ui/ex-links-file-manager.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h3>The <code>shell</code> module in Electron allows you to access certain nativ
2525
<p>This demonstrates using the <code>shell</code> module to open the system file manager at a particular location.</p>
2626
<p>Clicking the demo button will open your file manager at the root.</p>
2727
<h5>Renderer Process</h5>
28-
<pre><code data-path="renderer-process/native-ui/ex-links-file-manager/file-manager.js"></pre></code>
28+
<pre><code data-path="renderer-process/native-ui/ex-links-file-manager/file-manager.js"></code></pre>
2929
</div>
3030
</div>
3131
</div>
@@ -42,14 +42,14 @@ <h5>Renderer Process</h5>
4242
<p>If you do not want your app to open website links <em>within</em> the app, you can use the <code>shell</code> module to open them externally. When clicked, the links will open outside of your app and in the user's default web browser.</p>
4343
<p>When the demo button is clicked, the electron website will open in your browser.<p>
4444
<h5>Renderer Process</h5>
45-
<pre><code data-path="renderer-process/native-ui/ex-links-file-manager/ex-links.js"></pre></code>
45+
<pre><code data-path="renderer-process/native-ui/ex-links-file-manager/ex-links.js"></code></pre>
4646

4747
<div class="demo-protip">
4848
<h2>ProTip</h2>
4949
<strong>Open all outbound links externally.</strong>
50-
<p>You may want to open all <code>http</code> and <code>https</code> links outside of your app. To do this, query the document and loop through each link and add a listener. This app uses the code below which is located in <code>assets/ex-links.js</code>.</h5>
50+
<p>You may want to open all <code>http</code> and <code>https</code> links outside of your app. To do this, query the document and loop through each link and add a listener. This app uses the code below which is located in <code>assets/ex-links.js</code>.</p>
5151
<h5>Renderer Process</h5>
52-
<pre><code data-path="assets/ex-links.js"></pre></code>
52+
<pre><code data-path="assets/ex-links.js"></code></pre>
5353
</div>
5454
</div>
5555
</div>

sections/native-ui/tray.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ <h3>The <code>tray</code> module allows you to create an icon in the operating s
2727

2828
<p>In this example the tray icon can be removed by clicking 'Remove' in the context menu or selecting the demo button again.</p>
2929
<h5>Main Process</h5>
30-
<pre><code data-path="main-process/native-ui/tray/tray.js"></pre></code>
30+
<pre><code data-path="main-process/native-ui/tray/tray.js"></code></pre>
3131
<h5>Renderer Process</h5>
32-
<pre><code data-path="renderer-process/native-ui/tray/tray.js"></pre></code>
32+
<pre><code data-path="renderer-process/native-ui/tray/tray.js"></code></pre>
3333

3434
<div class="demo-protip">
3535
<h2>ProTip</h2>

sections/system/app-sys-information.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ <h3>With a few Node.js and Electron modules you can gather information about the
2525
<p>In this example, to get that information from the renderer process, we use the <code>ipc</code> module to send a message to the main process requesting the app's path.</p>
2626
<p>See the <a href="http://electron.atom.io/docs/api/app">app module documentation<span class="u-visible-to-screen-reader">(opens in new window)</span></a> for more.</p>
2727
<h5>Renderer Process</h5>
28-
<pre><code data-path="renderer-process/system/app-information.js"></pre></code>
28+
<pre><code data-path="renderer-process/system/app-information.js"></code></pre>
2929
<h5>Main Process</h5>
30-
<pre><code data-path="main-process/system/app-information.js"></pre></code>
30+
<pre><code data-path="main-process/system/app-information.js"></code></pre>
3131
</div>
3232
</div>
3333
</div>
3434

3535
<div class="demo">
3636
<div class="demo-wrapper">
37-
<button id="app-info-demo-toggle" class="js-container-target demo-toggle-button">Get version information
37+
<button id="app-version-demo-toggle" class="js-container-target demo-toggle-button">Get version information
3838
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
3939
</button>
4040
<div class="demo-box">
@@ -46,7 +46,7 @@ <h5>Main Process</h5>
4646
<p>The example below gets the version of Electron in use by the app.</p>
4747
<p>See the <a href="http://electron.atom.io/docs/api/process">process documentation<span class="u-visible-to-screen-reader">(opens in new window)</span></a> for more.</p>
4848
<h5>Renderer Process</h5>
49-
<pre><code data-path="renderer-process/system/version-information.js"></pre></code>
49+
<pre><code data-path="renderer-process/system/version-information.js"></code></pre>
5050

5151
<div class="demo-protip">
5252
<h2>ProTip</h2>
@@ -78,7 +78,7 @@ <h2>ProTip</h2>
7878

7979
<p>See the full <a href="https://nodejs.org/api/os.html"> os documentation<span class="u-visible-to-screen-reader">(opens in new window)</span></a> for more.</p>
8080
<h5>Renderer Process</h5>
81-
<pre><code data-path="renderer-process/system/sys-information.js"></pre></code>
81+
<pre><code data-path="renderer-process/system/sys-information.js"></code></pre>
8282
</div>
8383
</div>
8484
</div>
@@ -97,7 +97,7 @@ <h5>Renderer Process</h5>
9797

9898
<p>See the full <a href="http://electron.atom.io/docs/api/screen">screen documentation<span class="u-visible-to-screen-reader">(opens in new window)</span></a> for more.</p>
9999
<h5>Renderer Process</h5>
100-
<pre><code data-path="renderer-process/system/screen-information.js"></pre></code>
100+
<pre><code data-path="renderer-process/system/screen-information.js"></code></pre>
101101

102102
<div class="demo-protip">
103103
<h2>ProTip</h2>

sections/system/clipboard.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h3>The <code>clipboard</code> module provides methods to perform copy and paste
2525
</div>
2626
<p>In this example we copy a phrase to the clipboard. After clicking 'Copy' use the text area to paste (CMD + V or CTRL + V) the phrase from the clipboard.</p>
2727
<h5>Renderer Process</h5>
28-
<pre><code data-path="renderer-process/system/copy.js"></pre></code>
28+
<pre><code data-path="renderer-process/system/copy.js"></code></pre>
2929
</div>
3030
</div>
3131
</div>
@@ -43,7 +43,7 @@ <h5>Renderer Process</h5>
4343
<p>In this example we copy a string to the clipboard and then paste the results into a message above.</p>
4444

4545
<h5>Renderer Process</h5>
46-
<pre><code data-path="renderer-process/system/paste.js"></pre></code>
46+
<pre><code data-path="renderer-process/system/paste.js"></code></pre>
4747
</div>
4848
</div>
4949
</div>

sections/system/protocol-handler.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ <h3>The <code>app</code> module provides methods for handling protocols.</h3>
2626
<h5>Packaging</h5>
2727
<p>This feature will only work on macOS when your app is packaged. It will not work when you're launching it in development from the command-line. When you package your app you'll need to make sure the macOS <code>plist</code> for the app is updated to include the new protocol handler. If you're using <code>electron-packager</code> then you can add the flag <code>--extend-info</code> with a path to the <code>plist</code> you've created. The one for this app is below.</p>
2828
<h5>Renderer Process</h5>
29-
<pre><code data-path="renderer-process/system/protocol-handler.js"></pre></code>
29+
<pre><code data-path="renderer-process/system/protocol-handler.js"></code></pre>
3030
<h5>Main Process</h5>
31-
<pre><code data-path="main-process/system/protocol-handler.js"></pre></code>
31+
<pre><code data-path="main-process/system/protocol-handler.js"></code></pre>
3232
<h5>macOS plist</h5>
33-
<pre><code class="language-xml" data-path="assets/mac/info.plist"></pre></code>
33+
<pre><code class="language-xml" data-path="assets/mac/info.plist"></code></pre>
3434
</div>
3535
</div>
3636
</div>

sections/windows/crash-hang.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h3>The <code>BrowserWindow</code> module will emit events when the renderer pro
1414

1515
<div class="demo">
1616
<div class="demo-wrapper">
17-
<button id="new-window-demo-toggle" class="js-container-target demo-toggle-button">Relaunch window after the process crashes
17+
<button id="new-window-crashes-demo-toggle" class="js-container-target demo-toggle-button">Relaunch window after the process crashes
1818
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
1919
</button>
2020
<div class="demo-box">
@@ -25,14 +25,14 @@ <h3>The <code>BrowserWindow</code> module will emit events when the renderer pro
2525
<p>The window is listening for the crash event and when the event occurs it prompts the user with two options: reload or close.</p>
2626

2727
<h5>Renderer Process</h5>
28-
<pre><code data-path="renderer-process/windows/process-crash.js"></pre></code>
28+
<pre><code data-path="renderer-process/windows/process-crash.js"></code></pre>
2929
</div>
3030
</div>
3131
</div>
3232

3333
<div class="demo">
3434
<div class="demo-wrapper">
35-
<button id="new-window-demo-toggle" class="js-container-target demo-toggle-button">Relaunch window after the process hangs
35+
<button id="new-window-hangs-demo-toggle" class="js-container-target demo-toggle-button">Relaunch window after the process hangs
3636
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
3737
</button>
3838
<div class="demo-box">
@@ -43,7 +43,7 @@ <h5>Renderer Process</h5>
4343
<p>The window is listening for the process to become offcially unresponsive (this can take up to 30 seconds). When this event occurs it prompts the user with two options: reload or close.</p>
4444

4545
<h5>Renderer Process</h5>
46-
<pre><code data-path="renderer-process/windows/process-hang.js"></pre></code>
46+
<pre><code data-path="renderer-process/windows/process-hang.js"></code></pre>
4747

4848
<div class="demo-protip">
4949
<h2>ProTip</h2>

0 commit comments

Comments
 (0)