Skip to content

Commit b46852e

Browse files
committed
Add note on use inside addon
1 parent cabd954 commit b46852e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,8 @@ or implementing `sort_field` as a property in a subclass (similar to `guid`).
112112
## YAML for Templates (and Fields)
113113
You can create your template definitions in the YAML format and pass them as a `str` to `Model()`. You can also do this
114114
for fields.
115+
116+
## Using genanki inside an Anki addon
117+
`genanki` supports adding generated notes to the local collection when running inside an Anki 2.1 addon (Anki 2.0
118+
may work but has not been tested). See the [`.write_to_collection_from_addon() method`](
119+
https://github.com/kerrickstaley/genanki/blob/0c2cf8fea9c5e382e2fae9cd6d5eb440e267c637/genanki/__init__.py#L275).

0 commit comments

Comments
 (0)