Skip to content

Commit 8b622e7

Browse files
committed
flesh out docs
1 parent 3f48d84 commit 8b622e7

File tree

5 files changed

+38
-14
lines changed

5 files changed

+38
-14
lines changed

docs/_quarto.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,15 @@ website:
7979
contents:
8080
- get-started/basic-docs.qmd
8181
- get-started/crossrefs.qmd
82+
- get-started/sidebar.qmd
8283
- section: "Advanced"
8384
contents:
84-
- get-started/architecture.qmd
8585
- get-started/docstrings.qmd
8686
- get-started/renderers.qmd
8787
- get-started/interlinks.qmd
88+
- section: "Extra Topics"
89+
contents:
90+
- get-started/architecture.qmd
8891
- id: dummy
8992

9093

docs/get-started/crossrefs.qmd

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Cross references
2+
title: Linking to pages
33
jupyter:
44
kernelspec:
55
display_name: Python 3 (ipykernel)
@@ -9,21 +9,20 @@ jupyter:
99

1010
Coming soon!
1111

12-
| style | link text | syntax | output |
13-
| ----- | ---- | ------ | ------ |
14-
| manual | | `[a link](../api/#get_object)` | [a link](../api/#get_object) |
15-
| md | custom | `` [some explanation](`quartodoc.get_object`) `` | [some explanation](`quartodoc.get_object`) |
16-
| md | default | `` [](`quartodoc.get_object`) `` | [](`quartodoc.get_object`) |
17-
| md | shortened | `` [](`~quartodoc.get_object`) `` | [](`~quartodoc.get_object`) |
18-
| rst | custom | `` :ref:`some explanation <quartodoc.get_object>` `` | :ref:`some explanation <quartodoc.get_object>` |
19-
| rst | default | `` :ref:`quartodoc.get_object` `` | :ref:`quartodoc.get_object` |
20-
| rst | shortened | `` :ref:`~quartodoc.get_object` `` | :ref:`~quartodoc.get_object` |
12+
## Linking by path
2113

14+
You can link to function docs by using the path to the generated documentation file:
2215

23-
## Link to external docs
16+
``[get_object](/reference/get_object.qmd)``
2417

25-
### Inventory files
18+
19+
* /reference/
20+
21+
22+
## Linking by function name
2623

2724

2825
## The "See Also" section
2926

27+
28+

docs/get-started/docstrings.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Handling docstrings
2+
title: Inspecting docstrings
33
jupyter:
44
kernelspec:
55
display_name: Python 3 (ipykernel)

docs/get-started/interlinks.qmd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,17 @@ Where files like `objects_numpy.json` and `objects_python.json` are their invent
5050

5151
The rough idea is that this plugin will behave similar to [jupyterbook linking](https://jupyterbook.org/en/stable/content/references.html),
5252
which supports both some intersphinx syntax, but also markdown syntax.
53+
54+
## Link formats
55+
56+
| style | link text | syntax | output |
57+
| ----- | ---- | ------ | ------ |
58+
| manual | | `[a link](../api/#get_object)` | [a link](../api/#get_object) |
59+
| md | custom | `` [some explanation](`quartodoc.get_object`) `` | [some explanation](`quartodoc.get_object`) |
60+
| md | default | `` [](`quartodoc.get_object`) `` | [](`quartodoc.get_object`) |
61+
| md | shortened | `` [](`~quartodoc.get_object`) `` | [](`~quartodoc.get_object`) |
62+
| rst | custom | `` :ref:`some explanation <quartodoc.get_object>` `` | :ref:`some explanation <quartodoc.get_object>` |
63+
| rst | default | `` :ref:`quartodoc.get_object` `` | :ref:`quartodoc.get_object` |
64+
| rst | shortened | `` :ref:`~quartodoc.get_object` `` | :ref:`~quartodoc.get_object` |
65+
66+

docs/get-started/sidebar.qmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Sidebar navigation
3+
---
4+
5+
Currently, adding API reference pages to the left-hand sidebar requires manually
6+
listing each page in `_quarto.yml`. See the [quarto sidebar docs](https://quarto.org/docs/websites/website-navigation.html#side-navigation) for details.
7+
8+
Generating sidebar entries is being tracked in [this quartodoc issue](https://github.com/machow/quartodoc/issues/20).

0 commit comments

Comments
 (0)