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
HTML version of the manual #697
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic to see this work. Thanks.
Do you have any ideas on how to we can automate getting this into the docs site?
Note: We'll need to think about images too when publishing to the website as the HTML generated for the biohazard image is this:
|
I think it might be worth moving the manual source, styles and other assets such as images to their own directory. |
Agreed. Do you want to do that as part of this PR or do you want me to merge this and then work on the next one? |
I'm not really clear how we're publishing it yet so I'm not clear on how to automate the publishing |
I can move the assets if you think we're close enough. What relies on the path to the existing manual? |
Let's merge it and then iterate with it already merged? No point in having PRs hanging for so long when they are this nice. |
I think that the next step is to make both manuals build to a self-contained directory and then work out how to get them onto the website. I think that the path to the existing PDF manual is only relied on in the sense that it's all over Google. |
I moved the files, but it breaks the roles/directives that I made and I'm not sure why. Pushing the branch for now and hoping that either someone has advice for me or this all just makes more sense another day! Definitely don't merge this one :) |
This directive isn't supported by rst2html, and it makes no sense for HTML output anyway. This commit adds a "noop" directive that literally performs no operation and maps it to the oddeven directive in our custom HTML generation script
e9e497f
to
6084bcf
Compare
OK, try this! Run the I also rebased as github was showing some conflict warnings. |
Was your |
I get an error message about a missing file with the
This
From what I can tell, this is the only external dependency we have in the HTML file that'll need to be transferred to the website. |
I don't know what rst2man is or what we use it for, it was already there. I think it creates something that is used to generate the command output listing in the manual (and indeed on the command line) |
It creates what is called a "man page" which is the standard documentation
for command line tools in unix-like operating systems.
…On Sun, Dec 16, 2018, 5:44 PM Lorna Jane Mitchell ***@***.***> wrote:
I don't know what rst2man is or what we use it for, it was already there.
I *think* it creates something that is used to generate the command
output listing in the manual (and indeed on the command line)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#697 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAGK6cKxCOix_MU_urelS7I7fYLwD_Xks5u5rCrgaJpZM4YJLRt>
.
|
Ah, I know about man pages but I didn't know we had one! Is that also what's used in creating the "Command line options" section of the manual? Does anything else use that output apart from this process? I'm not sure if I'm breaking things by moving files. |
I've added the missing image, and split the outputs into a subfolder per format in an attempt to make it obvious which things we need to copy for which format. For PDF, it's self-contained, for HTML we need the "assets" folder too that I've added there and the build script copies the image in. Known bug: I've broken the coverpage on the PDF version. The document has picked up the right title but the coverpage doesn't seem to know what to do and shows |
Different installations use either rst2man or rst2man.py, so look for either to ensure that we can build the manpage.
This is great. No errors and the biohazard image is displayed in the HTML output in my browser. I've raised a PR against your branch to make rst2man work when it's installed via pip. Interestingly, |
|
The usual "python setup.py install" doesn't put the man page anywhere
useful.
But if you do man ./doc/rst2pdf.1 (assuming you have generated it, it would
work).
In operating system packages that man page would be placed in the right
directory for it to work.
…On Sun, Dec 16, 2018 at 6:56 PM Rob Allen ***@***.***> wrote:
man rst2pdf doesn't do anything on my machine. Does it do something when
rst2pdf is installed using a Linux package manager?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#697 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAGK5Odzcx248B0BP8A4UrnGakyYHtGks5u5sFugaJpZM4YJLRt>
.
|
No, the |
On my local platform the test was working (but the hash isn't known as good) until c263dec when it looks like we fixed something but it caused the templates to stop working ... only on my platform though if the main build isn't failing and @ralsina clearly thought he had fixed it! I am not sure what to do next as this is now the only thing blocking this issue (I think?) |
This PR contains a (very minor!) amendment to the manual, and some scripts and supporting code to enable us to produce an HTML version (probably to then include in the website repo, but all the work is done by files in this repo). You can see how things are looking here: http://web.lornajane.net/manual.html
Fixes rst2pdf/rst2pdf.github.io#2