|
1 |
| -### Demo sites |
| 1 | +--- |
| 2 | +jupyter: |
| 3 | + kernel: python3 |
| 4 | +--- |
| 5 | + |
| 6 | +:::::: {.column-page } |
| 7 | + |
| 8 | +::::: {.d-none} |
| 9 | + |
2 | 10 |
|
3 | 11 | | style | source | layout |
|
4 | 12 | | ----- | ------ | ------ |
|
5 | 13 | | [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. |
|
6 | 14 | | [single-page] | [github][sp-code] | Index page has function documentation embedded on it. |
|
7 | 15 |
|
8 |
| -### Packages using quartodoc |
9 |
| - |
10 | 16 |
|
11 | 17 | | package | source | about |
|
12 | 18 | | ----- | ------ | ------ |
|
13 | 19 | | [siuba] | [github][sb-code] | Data analysis library. |
|
14 | 20 | | [shiny][shiny] | | Dashboarding framework. |
|
15 | 21 | | [vetiver][vetiver] | [github][vt-code] | A tool to version, share, deploy and monitor ML models. |
|
| 22 | +| pins | | | |
| 23 | +| shinyswatch | | | |
| 24 | +| tiledb | | | |
| 25 | + |
16 | 26 |
|
17 | 27 | : {tbl-colwidths="[20, 20, 60]"}
|
18 | 28 |
|
| 29 | +https://tiledb-inc.github.io/TileDB-Vector-Search/documentation/reference/ |
| 30 | + |
19 | 31 | [pkgdown]: /examples/pkgdown/reference
|
20 | 32 | [pkgdown-code]: https://github.com/machow/quartodoc/tree/main/examples/pkgdown
|
21 | 33 | [single-page]: /examples/single-page/reference
|
|
24 | 36 | [vetiver]: https://rstudio.github.io/vetiver-python/stable/reference/
|
25 | 37 | [vt-code]: https://github.com/rstudio/vetiver-python
|
26 | 38 | [siuba]: https://siuba.org/api/
|
27 |
| -[sb-code]: https://github.com/machow/siuba.org |
| 39 | +[sb-code]: https://github.com/machow/siuba.org |
| 40 | + |
| 41 | +::::: |
| 42 | + |
| 43 | + |
| 44 | +```{python} |
| 45 | +#| output: asis |
| 46 | +#| echo: false |
| 47 | +
|
| 48 | +def gallery(entries): |
| 49 | + combined = "\n\n".join(entries) |
| 50 | +
|
| 51 | + return f":::::: {{.gallery .list .grid}}\n{combined}\n::::::" |
| 52 | +
|
| 53 | +
|
| 54 | +def gallery_entry(src_thumbnail: str, href: str, title: str, href_ref=None, href_source=None): |
| 55 | + href_ref = href if href_ref is None else href_ref |
| 56 | + href_source = href if href_source is None else href_source |
| 57 | +
|
| 58 | + return f""" |
| 59 | +<div class="card border-2 rounded-3 g-col-12 g-col-sm-6 g-col-md-4 mb-2"> |
| 60 | +<a href="{href}"> |
| 61 | + <div class="card-header py-1 px-2 border-bottom border-1 bg-light"> |
| 62 | + <p>{title}</p> |
| 63 | + </div> |
| 64 | + <div class="gallery-card-body"> |
| 65 | + <img src="{src_thumbnail}"> |
| 66 | + </div> |
| 67 | + <ul class="gallery-links"> |
| 68 | + <li> |
| 69 | + <a class="view-reference" href="{href_ref}">Reference Page</a> |
| 70 | + </li> |
| 71 | + <li> |
| 72 | + <a class="view-source" href="{href_source}">Source</a> |
| 73 | + </li> |
| 74 | + </ul> |
| 75 | +</a> |
| 76 | +</div> |
| 77 | +""" |
| 78 | +
|
| 79 | +print( |
| 80 | + gallery([ |
| 81 | + gallery_entry( |
| 82 | + "images/siuba-home.png", |
| 83 | + "https://siuba.org", |
| 84 | + "Siuba", |
| 85 | + href_ref = "https://siuba.org/api", |
| 86 | + href_source = "https://github.com/machow/siuba.org", |
| 87 | + ), |
| 88 | + gallery_entry( |
| 89 | + "images/pins-home.png", |
| 90 | + "https://rstudio.github.io/pins-python", |
| 91 | + "Pins", |
| 92 | + href_ref = "https://rstudio.github.io/pins-python/reference", |
| 93 | + href_source = "http://github.com/rstudio/pins-python", |
| 94 | + ), |
| 95 | + gallery_entry( |
| 96 | + "images/vetiver-home.png", |
| 97 | + "https://rstudio.github.io/vetiver-python", |
| 98 | + "Vetiver", |
| 99 | + href_ref = "https://rstudio.github.io/vetiver-python/stable/reference", |
| 100 | + href_source = "https://github.com/rstudio/vetiver-python", |
| 101 | + ), |
| 102 | + gallery_entry( |
| 103 | + "images/shiny-home.png", |
| 104 | + "https://shiny.rstudio.com/py/", |
| 105 | + "Shiny", |
| 106 | + href_ref = "https://shiny.rstudio.com/py/api", |
| 107 | + href_source = "https://github.com/rstudio/py-shiny", |
| 108 | + ), |
| 109 | + gallery_entry( |
| 110 | + "images/shinyswatch-home.png", |
| 111 | + "https://rstudio.github.io/py-shinyswatch/", |
| 112 | + "Shinyswatch", |
| 113 | + href_ref = "https://rstudio.github.io/py-shinyswatch/reference", |
| 114 | + href_source = "https://github.com/rstudio/py-shinyswatch", |
| 115 | + ), |
| 116 | + ]) |
| 117 | +) |
| 118 | +``` |
| 119 | + |
| 120 | + |
| 121 | +:::::: |
0 commit comments