# PDF of official Hugo documentation?

**URL:** https://discourse.gohugo.io/t/pdf-of-official-hugo-documentation/20778
**Category:** support
**Created:** [September 13, 2019, 12:52pm UTC](https://discourse.gohugo.io/t/pdf-of-official-hugo-documentation/20778 "2019-09-13T12:52:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![BayuAngora](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bayuangora/32/26104_2.png) [@BayuAngora](https://discourse.gohugo.io/u/BayuAngora)
#### Post date: [September 13, 2019, 12:52pm UTC](https://discourse.gohugo.io/t/pdf-of-official-hugo-documentation/20778/1 "2019-09-13T12:52:16Z")

</div>

Dear All

Official Hugo documentation is the best source to learn Hugo. But sometimes we need to develope it locally, even without internet connection first. Is there a way to convert Hugo documentation to pdf version?

Regards

---

<div class="post-metadata">

### Author: ![RickCogley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rickcogley/32/10269_2.png) [@RickCogley](https://discourse.gohugo.io/u/RickCogley)
#### Post date: [September 13, 2019, 1:39pm UTC](https://discourse.gohugo.io/t/pdf-of-official-hugo-documentation/20778/2 "2019-09-13T13:39:55Z")

</div>

It’s a hugo site, so, you can clone it to your local and run hugo in the cloned project, to see it offline.  
Otherwise I guess you could probably rig up pandoc or something to go through and convert it all to PDF.  
If you get the PDF conversion working, do post back with the solution.

---

<div class="post-metadata">

### Author: ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)
#### Post date: [September 14, 2019, 2:53am UTC](https://discourse.gohugo.io/t/pdf-of-official-hugo-documentation/20778/3 "2019-09-14T02:53:15Z")

</div>

Some ideas:

- clone the hugo docs repo locally [https://github.com/gohugoio/hugoDocs](https://github.com/gohugoio/hugoDocs)
- create a new template, in which you range all regular pages, aka `{{ range site.RegularPages }}`
- this will generate a single _long_ page of all the hugo docs pages
- then like @RickCogley mentioned, use pandoc or similar tool to convert html to pdf (even good old print to save as pdf in chrome)

---

<div class="post-metadata">

### Author: ![BayuAngora](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bayuangora/32/26104_2.png) [@BayuAngora](https://discourse.gohugo.io/u/BayuAngora)
#### Post date: [September 14, 2019, 5:35am UTC](https://discourse.gohugo.io/t/pdf-of-official-hugo-documentation/20778/4 "2019-09-14T05:35:16Z")

</div>

Great idea. I will try through Pandoc. Thanks.

---

<div class="post-metadata">

### Author: ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)
#### Post date: [September 14, 2019, 6:54am UTC](https://discourse.gohugo.io/t/pdf-of-official-hugo-documentation/20778/5 "2019-09-14T06:54:04Z")

</div>

> [@zwbetz](#):
>
> this will generate a single _long_ page of all the hugo docs pages

Only comes out to 2.2M. I thought it’d be bigger. Just a lot of good text. 🙂

---

<div class="post-metadata">

### Author: ![Grob](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Grob](https://discourse.gohugo.io/u/Grob)
#### Post date: [September 14, 2019, 8:48am UTC](https://discourse.gohugo.io/t/pdf-of-official-hugo-documentation/20778/6 "2019-09-14T08:48:03Z")

</div>

Bep is investigating [PDF as an output format](https://github.com/gohugoio/hugo/issues/6332).
