Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ scripts/cppref_cache/
# Ignore Any Caches brought from local
.cache/
.vscode/

# Native .venv
.venv/
7 changes: 5 additions & 2 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface Volume {
}

const VOLUMES: Volume[] = [
{ name: 'gettting-started', srcDir: 'gettting-started', urlPrefix: '/gettting-started' },
{ name: 'getting-started', srcDir: 'getting-started', urlPrefix: '/getting-started' },
{ name: 'vol1', srcDir: 'vol1-fundamentals', urlPrefix: '/vol1-fundamentals' },
{ name: 'vol2', srcDir: 'vol2-modern-features', urlPrefix: '/vol2-modern-features' },
{ name: 'vol3', srcDir: 'vol3-standard-library', urlPrefix: '/vol3-standard-library' },
Expand Down Expand Up @@ -652,7 +652,10 @@ async function main() {
for (const vol of VOLUMES) {
for (const lang of ['zh', 'en'] as const) {
const volDocDir = lang === 'en' ? join(DOCUMENTS, 'en', vol.srcDir) : join(DOCUMENTS, vol.srcDir)
if (!existsSync(volDocDir)) continue
if (!existsSync(volDocDir)){
log(` ${volDocDir}: source dir missing, skipping`)
continue
}
tasks.push(prepareVolume(vol, lang, manifest, buildInputsHash))
}
}
Expand Down
Loading