Skip to content

Commit 8d1ed4b

Browse files
committed
install.sh: use module name for docs.
1 parent b87f55e commit 8d1ed4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
LIBRARY_NAME=$(grep -m 1 name pyproject.toml | awk -F" = " '{print substr($2,2,length($2)-2)}')
3+
MODULE_NAME="ioexpander"
34
CONFIG_FILE=config.txt
45
CONFIG_DIR="/boot/firmware"
56
DATESTAMP=$(date "+%Y-%m-%d-%H-%M-%S")
@@ -341,7 +342,7 @@ if confirm "Would you like to generate documentation?"; then
341342
inform "Installing pdoc. Please wait..."
342343
pip_pkg_install pdoc
343344
inform "Generating documentation.\n"
344-
if $PYTHON -m pdoc "$LIBRARY_NAME" -o "$RESOURCES_DIR/docs" > /dev/null; then
345+
if $PYTHON -m pdoc "$MODULE_NAME" -o "$RESOURCES_DIR/docs" > /dev/null; then
345346
inform "Documentation saved to $RESOURCES_DIR/docs"
346347
success "Done!"
347348
else

0 commit comments

Comments
 (0)