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

PDF manual #64

Closed
alexanderhiam opened this issue Mar 31, 2015 · 9 comments
Closed

PDF manual #64

alexanderhiam opened this issue Mar 31, 2015 · 9 comments
Milestone

Comments

@alexanderhiam
Copy link
Member

It seems like many users don't find there way to the PyBBIO wiki (https://github.com/graycatlabs/PyBBIO/wiki), so there should be a generated PDF manual for each release.

I have plans to migrate the docs and tutorials to http://graycat.io, but that might not happen for a while, so the first PDF manual might have to be made from the wiki source.

@alexanderhiam alexanderhiam added this to the v0.9.4 milestone Mar 31, 2015
@anujdeshpande
Copy link

@alexanderhiam I wrote a script to (kind of) make it easy to generate a PDF from the wiki.
https://gist.github.com/anujdeshpande/0ddf9d4b7d315c6b818e
Some changes to the wiki might be required : too many carriage returns at the end of the page has resulted in a number of blank pages in the final PDF.
Embedded links is another.
Another issue that I am getting my head around is the page numbers.
But good enough to get started I guess.

@alexanderhiam
Copy link
Member Author

Nice! Yeah, I'll have to clear some white space.

I'd also like to include the main page with the pinout diagram, and it would be great to generate a toc from those links. That may require using something like panadoc as a last step.

@anujdeshpande
Copy link

I tried pandoc initially. Directly converted the markdown files from the wiki git repo, but hated the formatting. Especially the code blocks. This one is a bit complicated but prettier.

@alexanderhiam
Copy link
Member Author

If I remember right you can specify the stylesheet to use for markdown conversion in pandoc, so it could just use the Github stylesheet.

@alexanderhiam
Copy link
Member Author

And PyPDF2 may also be able to do all that, I've never used it.

@anujdeshpande
Copy link

Yepp, it does that with grip too (easier thn pandoc), but thought it would be a better look/feel than the same old gfm.
PyPDF2 mostly does merging and stuff. Also handling the headers, encryption etc.

@lucalenardi
Copy link

Hi all!

Why not using Sphinx with reStructuredText for the documentation?

  • it can easily generates doc from code (supporting both C and Python);
  • it is supported by GitHub;
  • it lets you easily generate PDF and HTML for online documentation, even using online services such as Read The Docs. You can even add the GitHub repo to RTD to keep them synchronised.

I can create a new issue and eventually helping out porting the documentation to that format.

@alexanderhiam
Copy link
Member Author

@lucalenardi I'd like to use something like Sphinx in the long run, but I don't have the time now to make that switch, so I want to do something quicker in the interim.

@alexanderhiam alexanderhiam modified the milestones: v0.9.5, v0.9.6 May 29, 2015
@alexanderhiam
Copy link
Member Author

OK, it's time to bite the bullet and convert to using Sphinx - see issue #88

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

No branches or pull requests

3 participants