Publishing Websites


There are a wide variety of ways to publish Quarto websites. Website content is by default written to the _site sub-directory (you can customize this using the output-dir option). Publishing is simply a matter of copying the output directory to a web server or web hosting service.

Below we describe several convenient options for Quarto website deployment including GitHub Pages, Netlify, RStudio Connect, Firebase, Site44, and Amazon S3. We’ll mostly defer to the documentation provided by the various services, but will note any Quarto website specific configuration required.

Rendering for Publish

The most important thing you should be sure to do before publishing is a final render of your project:

quarto render

If you are publishing a book you’ll want to add the --to all argument to ensure that all output formats (e.g. PDF, EPUB) have up to date content:

quarto render --to all

This is particularly important to remember because incremental changes you make when using the development server aren’t rendered into the output directory. To ensure that your output is up to date before publishing you should always do a full quarto render.

GitHub Pages

GitHub Pages is a service that lets you publish a website from any GitHub repository. There are a few configuration steps required to host a Quarto website using GitHub Pages:

  1. Create a file named .nojekyll in your repository (this is required to disable some processing of HTML files that GitHub does by default). You can do this with the following:

    touch .nojekyll

    If you are using Windows Powershell, you can do this with:

    ni  .nojekyll
  2. Set the output-dir within your _quarto.yml project file to “docs”:

      type: website
      output-dir: docs
  3. Configure your gh-pages to serve content from the “docs” directory:

    A screenshot of the Github Pages section of a Github repository's settings. The folder option is selected in the 'Source' section and the `/docs' folder is checkmarked.

See the GitHub Pages documentation for additional details on creating and deploying websites with GitHub.


Netlify is a popular website hosting service that allows for both direct upload of website files or integrated publishing from Git repositories (GitHub, GitLab, or Bitbucket) via commit-hooks.

If you are using Netlify Git integration, be sure to set the publish directory to the output directory of your website (_site by default but modifiable via the output-dir metadata value). For example:

The `Basic build settings` section of a Netlify page. The 'Publish directory' is highlighted and the value is set to '_site'.

RStudio Connect

RStudio Connect is a server product from RStudio for secure sharing of websites, applications, reports, and plots.

Unlike the other website publishing options described here, RStudio Connect is a server that you run inside an organization, so is suitable for publishing content that you only want visible within your organization’s network as opposed to visible to the entire internet.

You can deploy a Quarto website to RStudio Connect from the command line using the quarto_publish_site() function from the R quarto package. For example:

quarto_publish_site(server = "")

Note that once you’ve published the site for the first time you can omit the server argument:


You can also publish to RStudio Connect directly from within RStudio. To do this, just click the Publish button on the editor toolbar or preview window:

A screnshot of the 'Publish to RStudio Connect' menu in RStudio. There are two options: 'Publish website with source code' and 'Publish finished website only', which is highlighted.

For the time being Publish finished website only is the only option supported for publishing Quarto websites to RStudio Connect. Support for publishing websites with source code (so they can be rendered on the server) will be added to an upcoming release of RStudio Connect.


You should be running the latest release of RStudio (v2022.02) if you want to publish Quarto websites. The preview release has many other Quarto related enhancements so is highly recommended even if you aren’t using the publishing features.

Google Firebase

Google Firebase has a web hosting service that enables easy deployment of websites using a set of command line tools.

Firebase websites by default deploy content from the public directory of the Firebase project directory. This means that you should set the output-dir to "public" within _quarto.yml:

  type: website
  output-dir: public


Site44 is a service that allows you to publish websites from within Dropbox folders. Site44 creates a Dropbox/Apps/site44 directory, and any folders within that directory are published as websites.

The recommended workflow for deploying Quarto websites to Site44 is to develop your website in a separate project directory, and then, when it’s ready for final publishing, copy the contents of the _site directory to the folder for your website.

Amazon S3

If you are a user of Amazon Web Services you can serve your website directly from Amazon S3. Note however that this option is a bit more technically involved than GitHub Pages, Netlify, or Site44. See the article on Hosting a Static Website on Amazon S3 for additional details.

Other services

Any web server or web host can be used to deploy a Quarto website. Here’s a recent CNET roundup of other web hosts you could consider. You can also deploy a Quarto website on any internal (intranet) web server.