-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from machow/docs-overhaul
docs: site overhaul
- Loading branch information
Showing
38 changed files
with
1,322 additions
and
761 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
### Demo sites | ||
|
||
| style | source | layout | | ||
| ----- | ------ | ------ | | ||
| [pkgdown] | [github][pkgdown-code] | Index page with a title and short description for functions listed in each section. Each function gets its own documentation page. | | ||
| [single-page] | [github][sp-code] | Index page has function documentation embedded on it. | | ||
| [shiny] | [github][shiny-code] | The shiny docs translated to quartodoc, using a custom renderer. | | ||
|
||
### Packages using quartodoc | ||
|
||
|
||
| package | source | about | | ||
| ----- | ------ | ------ | | ||
| [siuba] | [github][sb-code] | Data analysis library. | | ||
| [shiny][shiny] | | Dashboarding framework. | | ||
| [vetiver][vetiver] | [github][vt-code] | A tool to version, share, deploy and monitor ML models. | | ||
|
||
: {tbl-colwidths="[20, 20, 60]"} | ||
|
||
[pkgdown]: /examples/pkgdown/reference | ||
[pkgdown-code]: https://github.com/machow/quartodoc/tree/main/examples/pkgdown | ||
[single-page]: /examples/single-page/reference | ||
[sp-code]: https://github.com/machow/quartodoc/tree/main/examples/single-page | ||
[shiny]: /examples/shiny/reference | ||
[shiny-code]: https://github.com/machow/quartodoc/tree/main/examples/shiny | ||
[shiny]: https://shiny.rstudio.com/py/api/ | ||
[vetiver]: https://rstudio.github.io/vetiver-python/stable/reference/ | ||
[vt-code]: https://github.com/rstudio/vetiver-python | ||
[siuba]: https://siuba.org/api/ | ||
[sb-code]: https://github.com/machow/siuba.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Advanced layouts | ||
jupyter: | ||
kernelspec: | ||
display_name: Python 3 (ipykernel) | ||
language: python | ||
name: python3 | ||
--- | ||
|
||
## Pages | ||
|
||
## Children options | ||
|
||
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
title: Building and debugging docs | ||
jupyter: | ||
kernelspec: | ||
display_name: Python 3 (ipykernel) | ||
language: python | ||
name: python3 | ||
--- | ||
|
||
**tl;dr**: Once you've configured quartodoc in your `_quarto.yml` file, use the following commands to build and preview a documentation site. | ||
|
||
```bash | ||
# Create the documentation files. These are written | ||
# by default to the reference/ folder in your docs. | ||
quartodoc build --verbose | ||
|
||
# Create optional inventory files, which allow you to | ||
# link to API doc pages within and across documentation | ||
# sites. These are put in the _inv folder in your docs. | ||
quartodoc interlinks | ||
|
||
# Preview the documentation site. | ||
# Use quarto render to generate the final site. | ||
quarto preview | ||
``` | ||
|
||
## Rebuilding doc pages | ||
|
||
While using `quarto preview`, you can preview updates to your docstrings by regenerating their documentation pages: | ||
|
||
```bash | ||
quartodoc build --verbose | ||
``` | ||
|
||
## Speeding up preview | ||
|
||
### Rewriting doc files | ||
|
||
By default, the `quartodoc build` only re-writes doc pages when it detects | ||
a change to their content. This helps prevent `quarto preview` from trying | ||
to re-render every doc page--including those that haven't changed. | ||
|
||
### Selectively building doc pages | ||
|
||
Use the filter option with `quartodoc build` to generate a subset of doc pages. | ||
This is useful when you have a many (e.g. several hundred) doc pages, and want | ||
to test a change on a single page. | ||
|
||
```bash | ||
quartodoc build --filter 'get_object' | ||
``` | ||
|
||
This option also accepts a wildcard pattern, which causes it to build docs for all matching objects. | ||
|
||
```bash | ||
# write the docs for the MdRenderer class, and any of its methods | ||
# (e.g. MdRenderer.renderer) | ||
quartodoc build --filter 'MdRenderer*' | ||
``` | ||
|
||
:::{.callout-note} | ||
When using a name with a wildcard, be sure to put it in single quotes! | ||
Otherwise, your shell may try to "expand it" to match file names. | ||
::: |
Oops, something went wrong.