tree: c228d34885c8a085fc928c625bee65ffd51215c0 [path history] [tgz]
  1. main.js
  2. README.md
  3. rustdoc.d.ts
  4. scrape-examples.js
  5. search.js
  6. settings.js
  7. src-script.js
  8. storage.js
  9. stringdex.d.ts
  10. stringdex.js
  11. tsconfig.json
src/librustdoc/html/static/js/README.md

Rustdoc JS

These JavaScript files are incorporated into the rustdoc binary at build time, and are minified and written to the filesystem as part of the doc build process.

We use the TypeScript Compiler dialect of JSDoc to comment our code and annotate params and return types. To run a check:

npm i -g typescript
tsc --project tsconfig.json