Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chriscoyier/practical-svg
https://github.com/chriscoyier/practical-svg
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chriscoyier/practical-svg
- Owner: chriscoyier
- Created: 2024-07-12T15:16:15.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-08-12T20:37:21.000Z (3 months ago)
- Last Synced: 2024-08-12T23:38:36.943Z (3 months ago)
- Language: JavaScript
- Size: 27 MB
- Stars: 26
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Book Depart
### First…
`npm install`
## Then…
### Extract the Book Contents
Drop your .epub into the `./epub` directory and run `npm run extract`.
Thanks to Jeff Eaton’s 「[DANCING QUEEN](https://github.com/eaton/dq)」, the contents of the .epub will get turned into Markdown and dropped into `_src/chapter` alongside all your images, while a `_data/meta.json` will be created with basic information—book title, your name, copyright information, ISBN, former publisher, and cover color. `_data/` will also contain JSON files with lists of all the extracted files, links in the copy, and the table of contents.
## And finally…
### Build the Dev Site
`npm start`
### Build the Production Site
`npm run production` or just `eleventy`
## Known Issues
Some maniacs (cough) used bold and italics in their code snippets. Unfortunately, the markup responsible for that formatting is going to come through as Markdown, which won’t be _interpreted_ as Markdown on account of being inside codeblocks. Those will have to be cleaned out manually.
Don’t forget to update all your icons and your social preview card thing. Those are all in `_src/_assets/img`.