Skip to content

Commit 76893c8

Browse files
committed
docs: add install instructions
1 parent f06d0d7 commit 76893c8

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ Generate python API documentation for quarto.
55

66
## Install
77

8+
pip install quartodoc
9+
10+
Or for the latest changes:
11+
12+
python3 -m pip install -e git+https://github.com/machow/quartodoc.git#egg=quartodoc
13+
814
## Basic use
915

1016
``` python
@@ -45,12 +51,12 @@ print(
4551

4652
quartodoc consists of two pieces:
4753

48-
- collection: using the library
54+
- **collection**: using the library
4955
[griffe](https://github.com/mkdocstrings/griffe) to statically collect
5056
information about functions and classes in a program.
51-
- docstring parsing: also handled by griffe, which breaks it into a tree
52-
structure.
53-
- docstring rendering: use plum-dispatch on methods like
57+
- **docstring parsing**: also handled by griffe, which breaks it into a
58+
tree structure.
59+
- **docstring rendering**: use plum-dispatch on methods like
5460
MdRenderer.to_md to decide how to visit and render each piece of the
5561
tree (e.g. the examples section, a parameter, etc..).
5662

@@ -78,9 +84,9 @@ docstring = f_obj.docstring.parsed
7884
docstring
7985
```
8086

81-
[<griffe.docstrings.dataclasses.DocstringSectionText at 0x127f01f10>,
82-
<griffe.docstrings.dataclasses.DocstringSectionParameters at 0x127f27700>,
83-
<griffe.docstrings.dataclasses.DocstringSectionExamples at 0x127f27a00>]
87+
[<griffe.docstrings.dataclasses.DocstringSectionText at 0x105a2c310>,
88+
<griffe.docstrings.dataclasses.DocstringSectionParameters at 0x10f7961f0>,
89+
<griffe.docstrings.dataclasses.DocstringSectionExamples at 0x10f7965b0>]
8490

8591
Note that quartodoc’s MdRenderer can be called on any part of the parsed
8692
docstring.

README.qmd

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ Generate python API documentation for quarto.
1919

2020
## Install
2121

22+
```
23+
pip install quartodoc
24+
```
25+
26+
Or for the latest changes:
27+
28+
```
29+
python3 -m pip install -e git+https://github.com/machow/quartodoc.git#egg=quartodoc
30+
```
31+
2232
## Basic use
2333

2434
```{python}
@@ -64,10 +74,10 @@ print(
6474

6575
quartodoc consists of two pieces:
6676

67-
* collection: using the library [griffe](https://github.com/mkdocstrings/griffe) to statically
77+
* **collection**: using the library [griffe](https://github.com/mkdocstrings/griffe) to statically
6878
collect information about functions and classes in a program.
69-
* docstring parsing: also handled by griffe, which breaks it into a tree structure.
70-
* docstring rendering: use plum-dispatch on methods like MdRenderer.to_md to decide
79+
* **docstring parsing**: also handled by griffe, which breaks it into a tree structure.
80+
* **docstring rendering**: use plum-dispatch on methods like MdRenderer.to_md to decide
7181
how to visit and render each piece of the tree (e.g. the examples section, a parameter, etc..).
7282

7383
Here is a quick example of how you can grab a function from griffe and walk through it.

0 commit comments

Comments
 (0)