Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#19 : Generate epub #42

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

binarystargames
Copy link
Contributor

@binarystargames binarystargames commented Jul 29, 2022

When run from the command line on a local repo, this will take every subsection of your Platen site and make:

  • A markdown file with the entire thing in order of appearance
  • Simple and complex HTML files
  • An epub

This also increments headers down one step on sub-pages, which makes bookmarks for epubs populate correctly:

36wtoc

Outstanding as of starting this PR:

  • It's just an absolute mess, code-wise. Needs more handling for errors/edge cases/etc.
  • Some command line flags to indicate which subsections to do this to (so there's no effort wasted on ones where it would make no sense), as well as other options, would be good.
  • CSS isn't included very cleanly when present and doesn't seem to work/embed correctly.
  • Output folder structure could stand to be tidied up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant