We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0367de commit dc0367fCopy full SHA for dc0367f
1 file changed
scripts/build-all.js
@@ -8,13 +8,11 @@ const DIST = path.join(ROOT, 'dist')
8
9
const repoName = process.env.GITHUB_REPOSITORY
10
? process.env.GITHUB_REPOSITORY.split('/')[1]
11
- : ''
+ : null
12
13
fs.mkdirSync(DIST, { recursive: true })
14
15
-const decks = fs.readdirSync(DECKS_DIR)
16
-
17
-for (const deck of decks) {
+for (const deck of fs.readdirSync(DECKS_DIR)) {
18
const deckDir = path.join(DECKS_DIR, deck)
19
const slides = path.join(deckDir, 'slides.md')
20
@@ -23,7 +21,9 @@ for (const deck of decks) {
23
21
continue
24
22
}
25
26
- const base = `/${repoName}/${deck}/` // ← THIS WAS THE BUG
+ const base = repoName
+ ? `/${repoName}/${deck}/`
+ : `/${deck}/`
27
28
console.log(`Building ${deck} with base ${base}`)
29
0 commit comments