# Export DBT docs

**URL:** <https://discourse.getdbt.com/t/export-dbt-docs/6276>\
**Category:** Help\
**Created:** [January 20, 2023, 7:03pm UTC](https://discourse.getdbt.com/t/export-dbt-docs/6276 "2023-01-20T19:03:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ted.conbeer](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/ted.conbeer/32/42_2.png) [@ted.conbeer](https://discourse.getdbt.com/u/ted.conbeer)\
**Post date:** [January 20, 2023, 8:37pm UTC](https://discourse.getdbt.com/t/export-dbt-docs/6276/2 "2023-01-20T20:37:12Z")

</div>

You can’t “export” the files from dbt Cloud, but it’s easy to rebuild them with `dbt docs generate`.

The docs site is a static SPA, so it’s pretty easy to host anywhere – you just copy the artifacts from `dbt docs generate` into S3 or another hosting provider. Official docs are [here](https://docs.getdbt.com/docs/collaborate/documentation#deploying-the-documentation-site).

I’ve used GitHub pages for this, since all you have to do is copy the artifacts into a subdirectory in your project, and GitHub will automatically host them. See [this package](https://github.com/pvcy/dbt-privacy) for an example. I have `make` command to generate the docs and move them from the `/integration-tests/target` directory to the `/docs` directory. Then you can configure GitHub Pages in your repo settings to serve the `/docs` directory. Here’s the config:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/2X/a/a53d83b17d6b7c48aa461014465129ba0e69a71e.png)

If you need auth, you can use Netlify: [Publishing dbt Docs to Netlify - Show and Tell - dbt Community Forum (getdbt.com)](https://discourse.getdbt.com/t/publishing-dbt-docs-to-netlify/121)

---

_[View the full topic](https://discourse.getdbt.com/t/export-dbt-docs/6276)._
