Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# quarto-web

This is the repo for the documentation hosted at [quarto.org](https://quarto.org/).
This is the repo for the documentation hosted at:

* **Current release:** [quarto.org](https://quarto.org/)
* **Pre-release:** [prerelease.quarto.org](https://prerelease.quarto.org/)

## Reporting Issues

Please report issues on quarto.org by opening a "Documentation Issue" in the `quarto-dev/quarto-cli` repository: [New Issue](https://github.com/quarto-dev/quarto-cli/issues/new/choose)

## Contributing
## Rendering `quarto-web` locally

This section discusses how to contribute to the documentation by rendering a document locally.

Expand All @@ -21,6 +24,8 @@ What is the impact if you modify (or add) a document:

### Rendering the whole website

When you render `quarto-web`, you should use the current [Pre-release of Quarto](https://quarto.org/docs/download/prerelease.html).

To render the whole website locally, you can use the following command:

```bash
Expand Down Expand Up @@ -83,4 +88,23 @@ If you are adding a new document that may use a new package, follow these steps:
- `Pipfile` could be manually edited but using the command is recommended.
- Commit the modified `Pipfile` and `Pipfile.lock` files with your document changes (don't forget any changes in the `_freeze` folder if needed).

Documents running python with the Knitr engine will go through **reticulate**. **reticulate** will use the python version defined with `pipenv` when a `PipFile` is present. So, it will use the Python version from `.venv` --- no specific configuration is needed as [reticulate's python discovery mechanism](https://rstudio.github.io/reticulate/articles/versions.html#order-of-discovery) will find it.
Documents running python with the Knitr engine will go through **reticulate**. **reticulate** will use the python version defined with `pipenv` when a `PipFile` is present. So, it will use the Python version from `.venv` --- no specific configuration is needed as [reticulate's python discovery mechanism](https://rstudio.github.io/reticulate/articles/versions.html#order-of-discovery) will find it.


## Reference pages are automatically generated

The tablular data on options listed in the [Reference section](https://quarto.org/docs/reference/) are generated automatically by running:

```
quarto run tools/reference.ts
```

This builds the `.json` files in `docs/references` based on the [Quarto CLI schema](https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/schema). The script assumes you have `quarto-cli/` at the same level in your directory structure as `quarto-web/`.

## GitHub Action Workflows

Our GitHub Action workflows are documented in [`.github/workflows/README.md`](.github/workflows/README.md)

## Style Guide

You can find some style guidance in [style-guide.md](style-guide.md).
9 changes: 9 additions & 0 deletions style-guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Terminology

## Link Recommendations

* Use relative paths for child or sibling documents. E.g. `images/fig-1.png`, `pdf-basics.qmd`. **Avoid** using `http://quarto.org` for internal links.
* Prefer absolute paths from the root of the project over relative paths involving `../`. E.g. use `/docs/output-formats/html-themes.qmd`, not `../output-formats/html-themes.qmd`.
* Possible exception: documents in a subfolder of a section that link to the section root, e.g. you may use `../index.qmd` to refer to `docs/manuscripts/index.qmd` from `docs/manuscripts/authoring/index.qmd`.
* Use `.qmd` instead of `.html`. E.g. use `content.qmd#editing-tables`, not `content.html#editing-tables`
* Possible exception: links in blog posts