Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hxlnt/carouselprint
A printing utility for Carousel
https://github.com/hxlnt/carouselprint
Last synced: 8 days ago
JSON representation
A printing utility for Carousel
- Host: GitHub
- URL: https://github.com/hxlnt/carouselprint
- Owner: hxlnt
- Created: 2023-04-13T06:09:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-06T19:46:50.000Z (over 1 year ago)
- Last Synced: 2024-10-28T05:00:56.963Z (about 2 months ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# carouselprint
A utility for Carousel that generates topic-wide HTML and print-ready PDFs## Installation
```
git clone https://github.com/hxlnt/carouselprint
cd carouselprint
npm install carouselprint
```### Additional step for Raspberry Pi / ARM7 devices
To get this working on my Raspberry Pi, I had to change a line of code somewhere in `node_modules` to point to the correct ARM7 path for Chromium, which is used by puppeteer to generate the PDF. IIRC, this is due to a bug in puppeteer.I don't remember which file I modified; I'll look it up shortly and update this section once I have more information. However, I think it's more or less the change described [in this Stack Overflow post](https://stackoverflow.com/questions/60129309/puppeteer-on-raspberry-pi-zero-w).
## Usage
Collect all Carousel-generated Markdown files into a single folder, then run
`node index.js folderpath`
where **folderpath** is the path to the folder.
All timestamped Markdown files will be collated into a single Markdown file, a single HTML file, and a single PDF. The PDF is printer-ready.