-
Notifications
You must be signed in to change notification settings - Fork 53
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
Allow downloading of the entire code, sections of code, and chapters of code, in EPUB, Word, and PDF formats #50
Comments
Look at using EPUB Boilerplate. |
See the the PHPDocX library to generate DOCX files. |
PDFs can be generated with the promising-looking FPDF. |
These should be easy enough to create functions for within The licensing for PHPDocX and FPDF is entirely GPL-compatible. I don't know about ePub-Boilerplate—it doesn't include a license, making it implicitly copyrighted and thus can't be included. @javierarce, are you willing to put a license on ePub-Boilerplate? |
Sure, what kind of license would work for you? GNU GPL? |
Anything GPL-compatible would be great! MIT and BSD are the licenses I prefer for my own work, which are both GPL-compatible. Thanks for ePub-Boilerplate, @javierarce—it's a real time-saver. |
Ok, I'll go with the MIT license. I'm glad you find this project useful, Waldo! |
Wonderful—thanks so much for doing that. |
👍 |
Propose moving Milestone to |
I'm not concerned about stepping on toes—we can make it a config option as to whether each of these is provided. Nobody needs to enable the feature if they don't want it. Hell, this whole project is about stepping on toes. :) Realistically, of course, this needs to be broken out into three tickets. I'm inclined to provide functionality for just one format in |
+1 for PDF. Though that requires generating a one-page HTML version first in most libraries, and increases the dependencies to run the app. |
Ok, the hard part of this is done – I've refactored the entire export process into a plugin-based system to generate files. This will make creating new export types much, much easier. Now all that remains is to use this to generate the new file types. The generation of the all-in-one files should happen in the new Here's the branch: https://github.com/statedecoded/statedecoded/tree/export-refactor |
That should be the bulk of the work for generating exports. Most of the new formats rely on The only thing left here is adding new hooks to the plugins to show the download links dynamically on the relevant pages. |
This is great! Presumably we should hold off on merging this branch until those hooks are included? |
Yup! Hoping to get to that today/this weekend. |
There are two promising potential methods of providing EPUB files: ePubExport and "EPub". The former is a MediaWiki extension, the latter a PHP class. Elmer Masters took the "EPub" class and improved upon it for Free Law Reporter, specifically found here.
The text was updated successfully, but these errors were encountered: