File tree 4 files changed +31
-3
lines changed
4 files changed +31
-3
lines changed Original file line number Diff line number Diff line change 1
1
build
2
2
dist
3
3
venv
4
+ nitrokey-sdk-py *
Original file line number Diff line number Diff line change
1
+ NITROKEY_SDK_PY_VERSION ?= v0.2.3
2
+ NITROKEY_SDK_PY_CHECKSUM ?= b0547efe0bce6907f831a80297baf5393825037d3996edd6cf9f1ccc796e736e
1
3
4
+ NITROKEY_SDK_PY_URL := https://github.com/Nitrokey/nitrokey-sdk-py/archive/refs/tags/$(NITROKEY_SDK_PY_VERSION ) .tar.gz
5
+ NITROKEY_SDK_PY := nitrokey-sdk-py-$(NITROKEY_SDK_PY_VERSION )
6
+ NITROKEY_SDK_PY_ARCHIVE := $(NITROKEY_SDK_PY ) .tar.gz
7
+ NITROKEY_SDK_PY_LINK := source/components/software/nitrokey-sdk-py
2
8
3
-
9
+ .PHONY : all
4
10
all : venv
5
11
venv/bin/sphinx-build -j auto -b html -D language=en -d build/en/doctrees source dist/en
6
12
7
- venv :
13
+ .PHONY : venv
14
+ venv : $(NITROKEY_SDK_PY )
8
15
python -m venv venv
9
16
venv/bin/pip3 install -r requirements.txt
17
+ venv/bin/pip3 install ./$(NITROKEY_SDK_PY )
18
+
19
+ $(NITROKEY_SDK_PY ) : $(NITROKEY_SDK_PY_ARCHIVE )
20
+ mkdir " $@ "
21
+ tar --directory " $@ " --extract --strip-components 1 --file " $<"
22
+ rm -f $(NITROKEY_SDK_PY_LINK )
23
+ ln -s ../../../$(NITROKEY_SDK_PY ) /docs $(NITROKEY_SDK_PY_LINK )
24
+
25
+ $(NITROKEY_SDK_PY_ARCHIVE ) :
26
+ curl " $( NITROKEY_SDK_PY_URL) " --location --output " $@ "
27
+ echo " $( NITROKEY_SDK_PY_CHECKSUM) $@ " | sha256sum -c
10
28
29
+ .PHONY : clean
11
30
clean :
12
- rm -rf dist build venv
31
+ rm -rf dist build venv nitrokey-sdk-py * $( NITROKEY_SDK_PY_LINK )
Original file line number Diff line number Diff line change 7
7
8
8
nk-app2/index
9
9
nitropy/index
10
+ nitrokey-sdk-py/index
Original file line number Diff line number Diff line change 39
39
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
40
40
# ones.
41
41
extensions = [
42
+ 'sphinx.ext.autodoc' ,
42
43
'sphinx.ext.todo' ,
43
44
'sphinx.ext.coverage' ,
44
45
#'sphinx_copybutton',
434
435
435
436
# Disables the closing of tabs if clicked on the currently active tab
436
437
sphinx_tabs_disable_tab_closing = True
438
+
439
+ # -- Options for autodoc extension -------------------------------------------
440
+
441
+ autodoc_class_signature = 'separated'
442
+ autodoc_member_order = 'groupwise'
443
+ autodoc_typehints = 'description'
You can’t perform that action at this time.
0 commit comments