Skip to content

noahlh/svelte-dash-docset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Svelte Docset

Dash docset documentation generator for the Svelte JavaScript framework.

Prerequisites

  • The dashing generator installed in $PATH

Generating the docset

  1. npm install
  2. npm run generate (this will both fetch & generate the docset)

If you just want to fetch the site, npm run fetch.

If you just want to (re)build the docset, npm run build.

Notes / About

This runs a Node script and uses Puppetteer to fetch a few key pages from the main Svelte site (the tutorial + main docs page).

It then does some light processesing to setup the pages for local access -- removes the header, makes some CSS tweaks, fixes url/href paths, etc.

Dashing then scans the docs and generates the docset based on a healthy dose of regex matching.

Contributions welcome!

Feel free to contribute any fixes/improvements. PRs always welcome. Ideas welcome too - just open an issue.

Things to improve / TODOs

  • Add Sapper docs (will likely be in a separate repo)
  • Get scripts / REPL working.
  • Recursion in crawl() makes fans spin.
  • fonts/SVGs fail on every 3rd or 4th page. Not really a big deal since they arrive the first time around
  • Refactor without Dashing to fully support TOC (a la Vue docset)

Author

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published