To create a website with Quarto, you will need⁴:
- Quarto installed on your computer.
- A text editor or an IDE (such as VS Code) to write your documents.
- A web hosting service (such as GitHub Pages) to publish your website.
Then, you can follow these steps¹²³⁴:
- Create a new website project using the `quarto create-project` command. For example:
```
quarto create-project mysite --type website
```
This will create a folder named `mysite` with some files and subfolders inside.
- Write your documents using Markdown or other supported formats and save them in the `_posts` subfolder. You can also add images, data files, etc. in the `_posts` subfolder or other subfolders. See [R Quarto Tutorial - How To Create Interactive Markdown Documents - R programming (appsilon.com)](https://appsilon.com/r-quarto-tutorial/)
- Build your website using the `quarto render` command. For example:
```
quarto render mysite
```
This will generate HTML files for each document and place them in the `_site` subfolder.
- Preview your website locally using the `quarto serve` command. For example:
```
quarto serve mysite
```
This will launch a web browser and display your website at `http://localhost:4000`.
Publish your website online using a web hosting service of your choice. You can use GitHub Pages for free if you have a GitHub account. To do this, you need to:
- Create a repository on GitHub and push your project files to it.
- Set up GitHub Actions to automatically build and deploy your website whenever you push changes to your repository.
- Configure GitHub Pages settings to use the `_site` subfolder as the source for your website.
Source: Conversation with Bing, 3/10/2023
(1) Quarto - Creating a Website. https://quarto.org/docs/websites/ Accessed 3/10/2023.
(2) Set up a website with Quarto and automate deployment. https://www.wrprates.com/posts/website-with-quarto-automated-deployment/ Accessed 3/10/2023.
(3) Set up a website with Quarto and automate deployment. https://www.wrprates.com/posts/website-with-quarto-automated-deployment/ Accessed 3/10/2023.
(4) Creating your personal website using Quarto. https://ucsb-meds.github.io/creating-quarto-websites/ Accessed 3/10/2023.
(5) Quarto - Creating a Blog. https://quarto.org/docs/websites/website-blog.html Accessed 3/10/2023.
***
2023 cloudedknowledge.net