https://github.com/hadley/htmlbook
Convert a Quarto book to O'Reilly's html book format
https://github.com/hadley/htmlbook
Last synced: 9 months ago
JSON representation
Convert a Quarto book to O'Reilly's html book format
- Host: GitHub
- URL: https://github.com/hadley/htmlbook
- Owner: hadley
- License: other
- Created: 2023-01-12T22:43:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T14:56:42.000Z (almost 3 years ago)
- Last Synced: 2025-04-14T04:16:52.318Z (9 months ago)
- Language: HTML
- Size: 108 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# htmlbook
htmlbook converts Quarto books to O'Reilly's [HTMLBook](http://oreillymedia.github.io/HTMLBook/) format.
It's far from perfect but was successfully on [R4DS](https://r4ds.hadley.nz) and [R packages](https://r-pkgs.org).
## Installation
You can install the development version of htmlbook from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("hadley/htmlbook")
```
## Usage
First render your quarto book, and then call:
``` r
htmlbook::convert_book()
```
This will create a new `oreilly` directory containing the files you need to upload to [Atlas](https://atlas.oreilly.com).
You'll also need to manually update your `atlas.json` (either by hand or with Configure \| Files) to reflect the correct chapter ordering.
## Supported features
- Overall structure including parts and appendices.
- Figures and code blocks.
- Cross-references.
- Call outs.
- Footnotes.