Custom Dash docset scripts for various JavaScript libraries and tools.
- Dash is a documentation browser for macOS.
To setup the project, install dependencies:
pnpm installBuild standalone JavaScript files for each docset:
pnpm buildThis generates standalone files in the build/ directory that can be copied and pasted directly into Dash’s custom index field.
pnpm build- Build all docset scripts as standalone filespnpm check- Run all checks (code, format, types)pnpm fix- Auto-fix formatting and linting issuespnpm copy-icons- Copy icons from./iconsto Dash docsets
Once the docsets are built, you can use them in Dash by following the instructions below:
-
Open
Dash Settings>Downloads>Docset Generator>Create a new docset -
Select
Download websiteas the source -
Website download settings:
(copied from the docset's TypeScript file comments)Field Value Website URL @URLDownload pages matching @DownloadIgnore pages matching @Ignore -
Enter Docset name and keyword
-
Choose
Custom indexand paste the contents from the corresponding file inbuild/ -
Save and click
Generate
Dash will automatically use a site’s favicon as the docset icon. To override this, you can:
-
Place custom icons in the
icons/directory with the structure:icons/ docset-name/ icon.tiff -
Then run:
pnpm copy-icons
This will automatically copy icons to the appropriate Dash docset directories.
You can periodically update by right-clicking the docset in Dash and selecting “Update Docset”.