Skip to content

Commit a401954

Browse files
authored
Remove crashlytics from toc.yaml, and dont try to delete css.map files if they dont exist (#871)
1 parent 92916aa commit a401954

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

docgen/content-sources/toc.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,6 @@ toc:
6969
- title: 'UserRecord'
7070
path: /docs/reference/functions/providers_auth_.html#userrecord
7171

72-
- title: 'functions.crashlytics'
73-
path: /docs/reference/functions/providers_crashlytics_.html
74-
section:
75-
- title: 'Issue'
76-
path: /docs/reference/functions/providers_crashlytics_.issue.html
77-
- title: 'IssueBuilder'
78-
path: /docs/reference/functions/providers_crashlytics_.issuebuilder.html
79-
- title: 'AppInfo'
80-
path: /docs/reference/functions/providers_crashlytics_.appinfo.html
81-
- title: 'VelocityAlert'
82-
path: /docs/reference/functions/providers_crashlytics_.velocityalert.html
83-
8472
- title: 'functions.firestore'
8573
path: /docs/reference/functions/providers_firestore_.html
8674
section:

docgen/generate-docs.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ Promise.all([
323323
// Clean up temp home markdown file. (Nothing needs to wait for this.)
324324
fs.unlink(tempHomePath);
325325
// Devsite doesn't like css.map files.
326-
return fs.unlink(`${docPath}/assets/css/main.css.map`);
326+
if (fs.existsSync(`${docPath}/assets/css/main.css.map`)) {
327+
return fs.unlink(`${docPath}/assets/css/main.css.map`);
328+
}
327329
})
328330
// Write out TOC file. Do this after Typedoc step to prevent Typedoc
329331
// erroring when it finds an unexpected file in the target dir.

0 commit comments

Comments
 (0)