[docs] Project guides in PDF format

Peter Matulis peter.matulis at canonical.com
Mon Mar 29 20:34:16 UTC 2021


~ Update ~

I've managed to build a PDF locally using a tox target:

$ tox -e deploy-guide-pdf
deploy-guide/build/pdf/DeploymentGuide.pdf

For my local web server, the resulting HTML has an icon with this download
link:
http://<domain>//doc-charm-deployment-guide.pdf

Which doesn't work.

How do I fix that? And especially, how do I get Zuul to do it?

My PR is here:

https://review.opendev.org/c/openstack/charm-deployment-guide/+/782581


On Thu, Mar 4, 2021 at 2:13 PM Michael Johnson <johnsomor at gmail.com> wrote:

> Peter,
>
> Feel free to message me on IRC (johnsom) if you run into questions
> about enabling the PDF docs for your projects. I did the work for
> Octavia so might have some answers.
>
> Michael
>
> On Thu, Mar 4, 2021 at 12:36 AM Bogdan Dobrelya <bdobreli at redhat.com>
> wrote:
> >
> > On 3/3/21 9:30 PM, Jeremy Stanley wrote:
> > > On 2021-03-03 15:05:10 -0500 (-0500), Peter Matulis wrote:
> > > [...]
> > >> How do I get a download PDF link like what is available in the
> > >> published pages of the Nova project? Where is that documented?
> >
> > On each project's documentation page, there is a "Download PDF" button,
> > at the top, near to the "Report a Bug".
> >
> > >>
> > >> In short, yes, I am interested in having downloadable PDFs for the
> > >> projects that I maintain:
> > >>
> > >> https://opendev.org/openstack/charm-guide
> > >> https://opendev.org/openstack/charm-deployment-guide
> > >
> > > The official goal document is still available here:
> > >
> > >
> https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html
> > >
> > > Some technical detail can also be found in the earlier docs spec:
> > >
> > >
> https://specs.openstack.org/openstack/docs-specs/specs/ocata/build-pdf-from-rst-guides.html
> > >
> > > A bit of spelunking in Git history turns up, for example, this
> > > change implementing PDF generation for openstack/ironic (you can
> > > find plenty more if you hunt):
> > >
> > > https://review.opendev.org/680585
> > >
> > > I expect you would just do something similar to that. If memory
> > > serves (it's been a couple years now), each project hit slightly
> > > different challenges as no two bodies of documentation are every
> > > quite the same. You'll likely have to dig deep occasionally in
> > > Sphinx and LaTeX examples to iron things out.
> > >
> > > One thing which would have been nice as an output of that cycle goal
> > > was if the PTI section for documentation was updated with related
> > > technical guidance on building PDFs, but it's rather lacking in that
> > > department still:
> > >
> > >
> https://governance.openstack.org/tc/reference/project-testing-interface.html#documentation
> > >
> > > If you can come up with a succinct summary for what's needed, I
> > > expect adding it there would be really useful to others too.
> > >
> >
> >
> > --
> > Best regards,
> > Bogdan Dobrelya,
> > Irc #bogdando
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210329/882460d7/attachment.html>


More information about the openstack-discuss mailing list