Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

puppeteer/pptr.dev

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

251 Commits
251 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains source code for https://pptr.dev website.

How it works

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.md for every release
  • caches all the loaded data locally

On a subsequent load, pptr.dev occasionally invalidates cached documentation and releases.

Building and Running

  1. To run debug version, use npm run serve and navigate browser to http://localhost:8887.
  2. To run prod version, use npm run build && npm run prod and then navigate browser to http://localhost:8888

NOTE Debug version of pptr.dev doesn't require any build steps; serving index.html with any static server is sufficient.

NOTE Debug version of pptr.dev doesn't include service worker to simplify development

Dependencies

  • 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

FAQ

Q: Does pptr.dev use Custom Elements?

No. pptr.dev creates HTML elements with descriptive names to make markup nicer; this approach works in old browsers as well.

About

Puppeteer documentation website (old website for versions <=15.2.0)

Resources

License

Contributing

Stars

62 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.