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

Transform static html folders ? #34

Closed
revskill10 opened this issue Oct 14, 2018 · 3 comments
Closed

Transform static html folders ? #34

revskill10 opened this issue Oct 14, 2018 · 3 comments
Labels
Feature New feature or enhancement Phase: Fetch question Further information is requested

Comments

@revskill10
Copy link

Let's say we have a static web site which is generated by a static site generator.
Could we transform them into one pdf ?

@danburzo
Copy link
Owner

In theory, we should be able to do something like this:

percollate pdf --output ~/Downloads/test.pdf **/*.html

Where the **/*.html glob pattern will match all HTML files, recursively, in the current directory. However, right now percollate assumes the paths are URLs, not local files. Once we sort it out, it should definitely be possible.

@danburzo danburzo added Feature New feature or enhancement question Further information is requested labels Oct 15, 2018
@revskill10
Copy link
Author

Two of things i'm concerned about are:

  • Nice table of contents based on directory structure of generated static site.
  • Nice handling of paging and break between pages.

@danburzo
Copy link
Owner

percollate can now work with local files (with or without the file:// protocol). Table of Contents generation is currently linear, based on the order of the files provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or enhancement Phase: Fetch question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants