-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathBATCH.html
More file actions
399 lines (383 loc) · 21.3 KB
/
Copy pathBATCH.html
File metadata and controls
399 lines (383 loc) · 21.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="GIT Going with GitHub - A two-day accessible open source workshop by Community Access">
<title>Batch Command Reference - GIT Going with GitHub</title>
<link rel="stylesheet" href="./styles/github-markdown.css">
<link rel="stylesheet" href="./styles/highlight.css">
<link rel="stylesheet" href="./styles/custom.css">
<style>
.markdown-body {
box-sizing: border-box;
min-width: 0;
max-width: 980px;
margin: 0;
padding: 45px;
}
.page-layout {
max-width: 1320px;
margin: 0 auto;
padding: 1rem 1rem 2rem;
display: grid;
grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
gap: 1.25rem;
align-items: start;
}
@media (max-width: 767px) {
.page-layout {
grid-template-columns: 1fr;
padding: 0.5rem 0.5rem 1rem;
}
.markdown-body {
padding: 15px;
}
}
</style>
</head>
<body>
<a class="skip-link" href="#main-content">Skip to main content</a>
<header class="site-header" role="banner">
<div class="site-header-inner">
<nav aria-label="Breadcrumb" class="breadcrumb">
<a href="./index.html">Home</a> <span aria-hidden="true">›</span> <span aria-current="page">Batch Command Reference</span>
</nav>
<div class="header-actions">
<a href="https://github.com/Community-Access/git-going-with-github/wiki" class="wiki-link" target="_blank" rel="noopener noreferrer">
<svg aria-hidden="true" focusable="false" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
<path d="M1.75 1h8.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.06l-2.573 2.573A1.458 1.458 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25v-5.5C0 1.784.784 1 1.75 1ZM1.5 2.75v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13 2a.25.25 0 0 0-.25-.25h-.5a.75.75 0 0 1 0-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.457 1.457 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 1 1 1.06-1.06l2.22 2.22v-2.19a.75.75 0 0 1 .75-.75h.25a.25.25 0 0 0 .25-.25v-5.5Z"/>
</svg>
Wiki
</a>
<form role="search" class="search-form" action="./search.html" method="get">
<label for="site-search" class="search-label">Search docs</label>
<input
type="search"
id="site-search"
class="search-input"
name="q"
placeholder="Search docs…"
autocomplete="off"
aria-label="Search documentation"
>
<button type="submit" class="search-button" aria-label="Submit search">
<svg aria-hidden="true" focusable="false" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
<path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"/>
</svg>
</button>
</form>
</div>
</div>
</header>
<div class="page-layout">
<aside class="guided-sidebar" aria-label="Guided reference">
<h2 class="guided-title">Guided Reference</h2>
<p class="guided-intro">Follow the learning order, then jump into challenge issue views, appendices, and support resources.</p>
<section class="guided-resume" aria-label="Resume learning">
<a id="resume-link" class="guided-resume-link" href="./index.html" hidden>Resume where you left off</a>
</section>
<nav class="guided-nav" aria-label="Workshop navigation">
<section class="guided-section">
<h3>Start Here</h3>
<ul>
<li><a href="./index.html">Workshop Home</a></li>
<li><a href="./docs/course-guide.html">Course Guide</a></li>
<li><a href="./docs/get-going.html">Get Going with GitHub</a></li>
<li><a href="./docs/CHALLENGES.html">Challenge Hub</a></li>
</ul>
</section>
<section class="guided-section">
<h3>Learning Order</h3>
<details>
<summary>Day 1 chapters</summary>
<ul>
<li><a href="./docs/00-pre-workshop-setup.html">Pre-Workshop Setup - GIT Going with GitHub</a></li>
<li><a href="./docs/01-choose-your-tools.html">Choose Your Adventure: A Tool Tour</a></li>
<li><a href="./docs/02-understanding-github.html">Understanding GitHub's Web Structure</a></li>
<li><a href="./docs/03-navigating-repositories.html">Navigating Repositories</a></li>
<li><a href="./docs/04-the-learning-room.html">The Learning Room: Your Personal Practice Repository</a></li>
<li><a href="./docs/05-working-with-issues.html">Working with Issues</a></li>
<li><a href="./docs/06-working-with-pull-requests.html">Working with Pull Requests</a></li>
<li><a href="./docs/07-merge-conflicts.html">Merge Conflicts</a></li>
<li><a href="./docs/08-open-source-culture.html">Culture, Etiquette, and Community Standards</a></li>
<li><a href="./docs/09-labels-milestones-projects.html">Labels, Milestones, and Projects</a></li>
<li><a href="./docs/10-notifications-and-day-1-close.html">Notifications</a></li>
</ul>
</details>
<details>
<summary>Day 2 chapters</summary>
<ul>
<li><a href="./docs/11-vscode-interface.html">VS Code: Interface and Setup</a></li>
<li><a href="./docs/12-vscode-accessibility.html">VS Code: Accessibility Deep Dive</a></li>
<li><a href="./docs/13-how-git-works.html">How Git Works: The Mental Model</a></li>
<li><a href="./docs/14-git-in-practice.html">Git & Source Control in VS Code</a></li>
<li><a href="./docs/15-code-review.html">Code Review: PRs, Diffs, and Constructive Feedback</a></li>
<li><a href="./docs/16-github-copilot.html">GitHub Copilot</a></li>
<li><a href="./docs/17-issue-templates.html">Issue Templates</a></li>
<li><a href="./docs/18-fork-and-contribute.html">Fork and Contribute: The Open Source Workflow</a></li>
<li><a href="./docs/19-accessibility-agents.html">Accessibility Agents</a></li>
<li><a href="./docs/20-build-your-agent.html">Capstone Project: Contribute an Impactful Agent</a></li>
<li><a href="./docs/21-github-accessibility-and-open-source.html">GitHub Accessibility and Open Source at Scale</a></li>
<li><a href="./docs/22-what-comes-next.html">What Comes Next: Your Developer Journey</a></li>
</ul>
</details>
</section>
<section class="guided-section">
<h3>Appendices</h3>
<details>
<summary>Reference library</summary>
<ul>
<li><a href="./docs/appendix-a-glossary.html">Appendix A: GitHub Concepts & Glossary</a></li>
<li><a href="./docs/appendix-b-screen-reader-cheatsheet.html">Appendix B: Screen Reader Cheat Sheet</a></li>
<li><a href="./docs/appendix-c-markdown-reference.html">Appendix C: Markdown and GitHub Flavored Markdown - Complete Guide</a></li>
<li><a href="./docs/appendix-d-git-authentication.html">Appendix D: Git Authentication</a></li>
<li><a href="./docs/appendix-e-advanced-git.html">Appendix E: Advanced Git Operations</a></li>
<li><a href="./docs/appendix-f-git-security.html">Appendix F: Git Security for Contributors</a></li>
<li><a href="./docs/appendix-g-vscode-reference.html">Appendix G: VS Code Accessibility Reference</a></li>
<li><a href="./docs/appendix-h-github-desktop.html">Appendix H: GitHub Desktop</a></li>
<li><a href="./docs/appendix-i-github-cli.html">Appendix I: GitHub CLI Reference</a></li>
<li><a href="./docs/appendix-j-cloud-editors.html">Appendix J: GitHub Codespaces</a></li>
<li><a href="./docs/appendix-k-copilot-reference.html">Appendix K: Copilot Reference</a></li>
<li><a href="./docs/appendix-l-agents-reference.html">Appendix L: Accessibility Agents Reference</a></li>
<li><a href="./docs/appendix-m-accessibility-standards.html">Appendix M: Accessibility Standards Reference</a></li>
<li><a href="./docs/appendix-n-advanced-search.html">Appendix N: GitHub Advanced Search</a></li>
<li><a href="./docs/appendix-o-branch-protection.html">Appendix O: Branch Protection Rules and Repository Rulesets</a></li>
<li><a href="./docs/appendix-p-security-features.html">Appendix P: GitHub Security Features</a></li>
<li><a href="./docs/appendix-q-actions-workflows.html">Appendix Q: GitHub Actions and Workflows</a></li>
<li><a href="./docs/appendix-r-projects-deep-dive.html">Appendix R: GitHub Projects Deep Dive</a></li>
<li><a href="./docs/appendix-s-releases-tags-insights.html">Appendix S: Releases, Tags, and Repository Insights</a></li>
<li><a href="./docs/appendix-t-community-and-social.html">Appendix T: Community and Social</a></li>
<li><a href="./docs/appendix-u-discussions-and-gists.html">Appendix U: Discussions and Gists</a></li>
<li><a href="./docs/appendix-v-github-mobile.html">Appendix V: GitHub Mobile</a></li>
<li><a href="./docs/appendix-w-github-pages.html">Appendix W: Publishing with GitHub Pages</a></li>
<li><a href="./docs/appendix-x-resources.html">Appendix X: Resources</a></li>
<li><a href="./docs/appendix-y-workshop-materials.html">Appendix Y: Accessing and Downloading Workshop Materials</a></li>
<li><a href="./docs/appendix-z-github-skills.html">Appendix Z: GitHub Skills - Complete Course Catalog</a></li>
<li><a href="./docs/appendix-aa-agent-installation-setup.html">Appendix AA: Agent Installation & Setup Across All Platforms</a></li>
<li><a href="./docs/appendix-ab-advanced-agent-patterns.html">Appendix AB: Advanced Agent Patterns & Skills</a></li>
<li><a href="./docs/appendix-ac-document-developer-tools.html">Appendix AC: Document & Developer Tool Agents</a></li>
</ul>
</details>
</section>
<section class="guided-section">
<h3>Challenge Lab</h3>
<ul>
<li><a href="./docs/CHALLENGES.html">Challenge Hub</a></li>
<li><a href="./work.html">Issue-Style Challenge Walkthrough</a></li>
<li><a href="./docs/17-issue-templates.html">Issue Template Deep Dive</a></li>
</ul>
</section>
<section class="guided-section">
<h3>External Resources</h3>
<ul>
<li><a href="https://lp.csedesigns.com/ggg/PODCASTS.html">Podcast Episodes <span class="guided-external">(external)</span></a></li>
<li><a href="https://lp.csedesigns.com/ggg/feed.xml">RSS Feed <span class="guided-external">(external)</span></a></li>
</ul>
</section>
<section class="guided-section">
<h3>Get Help</h3>
<ul>
<li><a href="https://github.com/Community-Access/support">Support Hub <span class="guided-external">(external)</span></a></li>
</ul>
</section>
</nav>
</aside>
<main id="main-content" class="markdown-body page-main">
<nav class="quick-jumps" aria-label="Quick jumps">
<h2 class="quick-jumps-title">Quick Jumps</h2>
<ul class="quick-jumps-list">
<li><a href="#course-content">Jump to course content</a></li><li><a href="#main-content">Jump to main content top</a></li><li><a href="#on-this-page">Jump to on-page sections</a></li><li><a href="./docs/CHALLENGES.html">Open challenge hub</a></li><li><a href="./work.html">Open issue-style challenge walkthrough</a></li>
</ul>
</nav>
<nav id="on-this-page" class="onpage-nav" aria-label="On this page">
<h2 class="onpage-title">On This Page</h2>
<ul class="onpage-list">
<li class="onpage-item"><a href="#workflow-order">Workflow order</a></li>
<li class="onpage-item"><a href="#generate-transcriptsbat">generate-transcripts.bat</a></li>
<li class="onpage-item"><a href="#generate-audiobat">generate-audio.bat</a></li>
<li class="onpage-item"><a href="#build-rss-feedbat">build-rss-feed.bat</a></li>
<li class="onpage-item"><a href="#validate-rss-feedbat">validate-rss-feed.bat</a></li>
<li class="onpage-item"><a href="#configuration-file">Configuration file</a></li>
<li class="onpage-item"><a href="#npm-scripts">npm scripts</a></li>
<li class="onpage-item"><a href="#authoritative-sources">Authoritative Sources</a></li>
<li class="onpage-item onpage-sub"><a href="#section-level-source-map">Section-Level Source Map</a></li>
</ul>
</nav>
<div id="course-content"><h1 id="batch-command-reference">Batch Command Reference</h1>
<p>This file documents the cmd.exe batch files in the repo root for podcast operations.
All batch files change directory to the repo root automatically, so they work correctly
from any location.</p>
<h2 id="workflow-order">Workflow order</h2>
<p>Run operations in this sequence for a full podcast build from scratch:</p>
<ol>
<li><code>generate-transcripts.bat</code> - write episode scripts from the catalog</li>
<li><code>generate-audio.bat</code> - synthesise MP3 audio from those scripts</li>
<li><code>build-rss-feed.bat</code> - generate the RSS feed and podcast listing</li>
<li><code>validate-rss-feed.bat</code> - verify the feed is valid before publishing</li>
</ol>
<h2 id="generate-transcriptsbat">generate-transcripts.bat</h2>
<p>Validates the podcast catalog, builds episode and challenge bundles, then writes
all episode and challenge coach scripts to <code>podcasts\scripts\</code>.</p>
<pre><code class="hljs"><span class="hljs-keyword">generate</span>-transcripts<span class="hljs-variable">.bat</span></code></pre>
<p>Output files: <code>podcasts\scripts\ep*.txt</code> and <code>podcasts\scripts\cc-*.txt</code></p>
<p>Note: transcript generation always rebuilds all episodes from the catalog.
Range selection is not supported at this stage. Run this step whenever the
catalog or source docs change.</p>
<h2 id="generate-audiobat">generate-audio.bat</h2>
<p>Synthesises MP3 audio for all episodes or a specific numbered range.
Audio format, voice model, pitch, and speed settings are read from
<code>podcasts\tts\voice-config.ini</code>.</p>
<p>The script echoes each episode name and index as it is processed.
ffmpeg is required for MP3 output and is located automatically from the
machine PATH, including after a fresh winget install.</p>
<pre><code class="hljs"><span class="hljs-keyword">generate</span>-audio<span class="hljs-variable">.bat</span> <span class="hljs-keyword">generate</span> all <span class="hljs-number">75</span> episodes
<span class="hljs-keyword">generate</span>-audio<span class="hljs-variable">.bat</span> <span class="hljs-number">5</span> <span class="hljs-keyword">generate</span> episodes <span class="hljs-number">5</span> <span class="hljs-keyword">and</span> above
<span class="hljs-keyword">generate</span>-audio<span class="hljs-variable">.bat</span> <span class="hljs-number">5</span> <span class="hljs-number">10</span> <span class="hljs-keyword">generate</span> episodes <span class="hljs-number">5</span> through <span class="hljs-number">10</span></code></pre>
<p>Output files: <code>podcasts\audio\*.mp3</code></p>
<p>To change audio format, voice pitch, or speed, edit <code>podcasts\tts\voice-config.ini</code>
before running this command.</p>
<h2 id="build-rss-feedbat">build-rss-feed.bat</h2>
<p>Generates the RSS 2.0 / iTunes-compatible podcast feed and the admin podcast listing.
Reads MP3 file sizes from <code>podcasts\audio\</code> and episode metadata from the catalog.</p>
<pre><code class="hljs"><span class="hljs-keyword">build</span>-rss-feed.bat</code></pre>
<p>Output files:</p>
<ul>
<li><code>podcasts\feed.xml</code> - the RSS feed for podcast directories</li>
<li><code>admin\PODCASTS.md</code> - human-readable episode listing</li>
</ul>
<p>Run this command after <code>generate-audio.bat</code> completes so that enclosure lengths
reflect the final MP3 file sizes.</p>
<h2 id="validate-rss-feedbat">validate-rss-feed.bat</h2>
<p>Runs local RSS 2.0 and iTunes compliance checks on <code>podcasts\feed.xml</code>.</p>
<pre><code class="hljs"><span class="hljs-keyword">validate</span>-rss-feed.bat</code></pre>
<p>Checks performed:</p>
<ul>
<li>Required channel elements: title, link, description, language</li>
<li>Required per-item elements: title, enclosure, guid</li>
<li>Enclosure URL, byte length, and MIME type</li>
<li>Duplicate GUID detection</li>
</ul>
<p>Run <code>build-rss-feed.bat</code> first. The validator exits with a non-zero code on
any failure so it can be used in CI scripts.</p>
<h2 id="configuration-file">Configuration file</h2>
<p><code>podcasts\tts\voice-config.ini</code> controls all audio generation settings.</p>
<p>The following table lists the available settings.</p>
<table>
<thead>
<tr>
<th scope="col">Key</th>
<th scope="col">Description</th>
<th scope="col">Example</th>
</tr>
</thead>
<tbody><tr>
<td><code>male_model</code></td>
<td>Piper ONNX model file for the male voice (Alex)</td>
<td><code>en_US-ryan-high.onnx</code></td>
</tr>
<tr>
<td><code>female_model</code></td>
<td>Piper ONNX model file for the female voice (Jamie)</td>
<td><code>en_US-lessac-high.onnx</code></td>
</tr>
<tr>
<td><code>male_pitch_semitones</code></td>
<td>Pitch shift in semitones for the male voice</td>
<td><code>-2</code></td>
</tr>
<tr>
<td><code>female_pitch_semitones</code></td>
<td>Pitch shift in semitones for the female voice</td>
<td><code>2</code></td>
</tr>
<tr>
<td><code>speech_rate</code></td>
<td>Words per minute (passed to Piper)</td>
<td><code>180</code></td>
</tr>
<tr>
<td><code>episode_audio_format</code></td>
<td>Output format: <code>wav</code>, <code>mp3</code>, or <code>both</code></td>
<td><code>mp3</code></td>
</tr>
</tbody></table>
<h2 id="npm-scripts">npm scripts</h2>
<p>The batch files wrap these npm scripts. They can also be run directly from
a PowerShell or bash session at the repo root.</p>
<table>
<thead>
<tr>
<th scope="col">npm script</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>npm run validate:podcasts</code></td>
<td>Validate the podcast catalog</td>
</tr>
<tr>
<td><code>npm run generate:podcast-transcripts</code></td>
<td>Generate transcript scripts</td>
</tr>
<tr>
<td><code>npm run build:podcast-audio</code></td>
<td>Generate audio (all episodes)</td>
</tr>
<tr>
<td><code>npm run build:podcast-site</code></td>
<td>Build RSS feed and podcast listing</td>
</tr>
<tr>
<td><code>npm run validate:podcast-feed</code></td>
<td>Validate the RSS feed</td>
</tr>
</tbody></table>
<p>To pass a range to the audio build from npm:</p>
<pre><code class="hljs"><span class="hljs-comment">npm run build:podcast</span><span class="hljs-literal">-</span><span class="hljs-comment">audio</span> <span class="hljs-literal">--</span> <span class="hljs-literal">--</span><span class="hljs-comment">start 5</span> <span class="hljs-literal">--</span><span class="hljs-comment">end 10</span></code></pre>
<h2 id="authoritative-sources">Authoritative Sources</h2>
<p>Use these official references when you need the current source of truth for facts in this chapter.</p>
<ul>
<li><a href="https://docs.github.com/en">GitHub Docs, home</a></li>
<li><a href="https://github.blog/changelog/">GitHub Changelog</a></li>
</ul>
<h3 id="section-level-source-map">Section-Level Source Map</h3>
<p>Use this map to verify facts for each major section in this file.</p>
<ul>
<li><strong>Workflow order:</strong> <a href="https://docs.github.com/en">GitHub Docs, home</a>, <a href="https://github.blog/changelog/">GitHub Changelog</a>, <a href="https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax">Workflow syntax for GitHub Actions</a>, <a href="https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions">Secure use reference for GitHub Actions</a>, <a href="https://github.blog/changelog/label/actions/">GitHub Actions changelog</a></li>
<li><strong>generate-transcripts.bat:</strong> <a href="https://docs.github.com/en">GitHub Docs, home</a>, <a href="https://github.blog/changelog/">GitHub Changelog</a></li>
<li><strong>generate-audio.bat:</strong> <a href="https://docs.github.com/en">GitHub Docs, home</a>, <a href="https://github.blog/changelog/">GitHub Changelog</a></li>
<li><strong>build-rss-feed.bat:</strong> <a href="https://docs.github.com/en">GitHub Docs, home</a>, <a href="https://github.blog/changelog/">GitHub Changelog</a></li>
<li><strong>validate-rss-feed.bat:</strong> <a href="https://docs.github.com/en">GitHub Docs, home</a>, <a href="https://github.blog/changelog/">GitHub Changelog</a></li>
<li><strong>Configuration file:</strong> <a href="https://docs.github.com/en">GitHub Docs, home</a>, <a href="https://github.blog/changelog/">GitHub Changelog</a></li>
<li><strong>npm scripts:</strong> <a href="https://docs.github.com/en">GitHub Docs, home</a>, <a href="https://github.blog/changelog/">GitHub Changelog</a></li>
</ul>
</div>
</main>
</div>
<footer role="contentinfo" class="site-footer">
<p><strong>GIT Going with GitHub</strong> - A workshop by <a href="https://community-access.org">Community Access</a></p>
<p><a href="https://github.com/community-access/git-going-with-github">View on GitHub</a> · <a href="https://community-access.org">community-access.org</a></p>
</footer>
<script>
(function() {
var key = 'gggLastVisitedPath';
var currentPath = window.location.pathname || '';
try {
if (currentPath) {
localStorage.setItem(key, currentPath);
}
} catch (e) {}
var resumeLink = document.getElementById('resume-link');
if (!resumeLink) return;
try {
var savedPath = localStorage.getItem(key);
if (savedPath && savedPath !== currentPath) {
resumeLink.hidden = false;
resumeLink.setAttribute('href', savedPath);
}
} catch (e) {}
})();
</script>
</body>
</html>