Skip to content

Commit 8d8ff53

Browse files
committed
docs(api): add social cards + add auto-generated documentation with mkdocstrings.
1 parent 8ed5501 commit 8d8ff53

File tree

5 files changed

+399
-8
lines changed

5 files changed

+399
-8
lines changed

default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ let
7474
arpy = overrideWithSetuptools super.arpy { };
7575
yaffshiv = overrideWithSetuptools super.yaffshiv { };
7676
ubi-reader = overrideWithSetuptools super.ubi-reader { };
77+
cairosvg = overrideWithSetuptools super.cairocffi { };
7778
});
7879

7980
python = python3;

docs/api.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
hide:
3+
- navigation
4+
---
5+
6+
# API Reference
7+
8+
::: unblob.models.Handler
9+
handler: python
10+
options:
11+
members:
12+
- get_dependencies
13+
- calculate_chunk
14+
- extract
15+
show_root_heading: true
16+
show_source: true
17+
18+
::: unblob.models.StructHandler
19+
handler: python
20+
options:
21+
members:
22+
- parse_header
23+
show_root_heading: true
24+
show_source: true
25+
26+
::: unblob.models.Extractor
27+
handler: python
28+
options:
29+
members:
30+
- get_dependencies
31+
- extract
32+
show_root_heading: true
33+
show_source: true

mkdocs.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ nav:
1414
- Supported Formats: formats.md
1515
- extractors.md
1616
- development.md
17+
- API: api.md
1718
- glossary.md
1819
- support.md
1920

@@ -55,11 +56,13 @@ extra_css:
5556
- extra.css
5657

5758
plugins:
59+
- search
60+
- mkdocstrings
5861
- social:
59-
cards_color:
60-
fill: "#002060"
61-
text: "#00FFC8"
62-
cards_font: Artegra Sans
62+
cards: true
63+
cards_color:
64+
fill: "#002060"
65+
text: "#00FFC8"
6366

6467
extra:
6568
social:

0 commit comments

Comments
 (0)