This repository contains source code for https://pptr.dev website.
pptr.dev doesn't have any server side part. All the data is fetched dynamically from NPM and GitHub via XHRs.
On the first load, pptr.dev:
- fetches puppeteer releases from NPM
- fetches
docs/api.mdfor every release - caches all the loaded data locally
On a subsequent load, pptr.dev occasionally invalidates cached documentation and releases.
- To run debug version, use
npm run serveand navigate browser tohttp://localhost:8887. - To run prod version, use
npm run build && npm run prodand then navigate browser tohttp://localhost:8888
NOTE Debug version of
pptr.devdoesn't require any build steps; servingindex.htmlwith any static server is sufficient.
NOTE Debug version of
pptr.devdoesn't include service worker to simplify development
- commonmark.js is used to parse and render markdown documentation
- idb-keyval is used to work with IndexedDB
- codemirror is used to highlight code snippets inside markdown
No. pptr.dev creates HTML elements with descriptive names to make markup nicer; this approach works in old browsers as well.