-
Notifications
You must be signed in to change notification settings - Fork 145
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
ePub build #50
Comments
I agree also a PDF and don't forget to add a license to the project. |
ooo that's a great idea! thank you hehe :) i think we'll wait a month or so for the amazing open source community to help strengthen the guide and we'll look into converting it into an epub/pdf version. if anyone is willing to take this on, we'd also really appreciate it! |
hii :)) on creating a PDF version: we hope to create it in a month or so but if you do create it before then, we'd love for you to share it w/ everyone else here hehe! if you make a PR, we can add a link to download in the guide (and attribute you appropriately). thank you :) on licence: thanks for the reminder! we'll add it :)) also, yes you can print it for your own usage (or even share with other people so long there's attribution).
|
I wouldn't mind giving this a shot! I'll make a branch on my fork and try to see if I can convert them to epub and then maybe make a script or something to automate it when new commits are pushed. |
https://github.com/pandoc/pandoc-action-example Pandoc looks really slick but instead of doing it all manually, your team might benefit from adding it into Github Actions so it can always be up to date when changes are merged in! That way there aren't issues with updates making it out of sync. As much as I'd love to learn Github Actions, I'm not sure if I can make them in my fork and merge them over to yours. I could, on the other hand, get it working on my fork and then communicate to the team what to do to implement it if you want? Just let me know! |
I can try setting up an Action if you come up with the right commands to
build the books.
|
hii @m3rcurial omg if you can get it working and share instructions on how to replicate it, that would be AMAZING! thank you so so much! |
hey @m3rcurial hope you're doing incredible! any updates on this? if not, no worries at all hehe :) thank you SO MUCH for your help :) |
Work has really picked up for me so I had to put this on the backburner!! But I was able to get a Github action to convert the markdown file into epub, where I ran into issue(s) was stitching the files together in a way that was....actually good haha. It looked like one thing I would have to consider is changing the folder structure / layout of how the files are stored in the repo, OR get fancy with some scripting (not my strong suite but we can learn!) and do something with that. Either way I plan on trying to get back to this hopefully in the next week or two! |
@m3rcurial ahh that's completely understandable haha, hope it's going well? oooo that's pretty cool, if there's anything I can do on my end to help, please let me know! I'd be happy to work on this together :) Thank you so much! |
So here is the main.yml file I made for a GitHub action. This does make some output of an epub and pdf, but I was not able to (currently at least) get something working to verify that epub file. Basically it's in a state where it just needs to be fed the proper order of files and how to link them with a Table of Contents of sorts (depending on how complex you want the output to be that is). My understanding is you'd just have to add an action to the repository, then you could copy this yml content in there. It should run any time things are pushed into main (by y'all) or a pull_request is accepted (by community). If you want to have separate branches you can modify that as well. It uses pandoc core for epub and pandoc latex for PDF. All the versions that I was using are just what I had working at the time, they could probably be updated if needed (or modified completely if there's a better way). Overall I'd still like to come back to this at some point but I have really struggled to find the spare time for it (serious apologies for delays on even posting what I'd done so far!!).
|
@m3rcurial thank you so much!! no worries at all — that's fully understandable and your contribution is very valued! i just tried it out on my fork — this is awesome!! i'd love to try building on this; do you have suggestions/advice on how to iterate through the folders to feed it all the files within? thank you!
|
@bellesea I think what I would suggest is some shell wizardry with that One solution I can think of, that would look so ugly and 100% could be optimized, would be to do find && cd to different directory && find && cd && find && cd , etc. etc. until we've gone through all of the folders in the proper order. That being said, the moment y'all add a new folder that command would need refactored, which would just be painful. But this might be enough for a proof of concept to make sure we can build in the proper order at least. |
I'd love to have an ePub version of the guide. I understand it's a hands-on guide, but being able to read it on the go and then practice at home would be nice.
The text was updated successfully, but these errors were encountered: