Skip to content

Commit b6c2609

Browse files
committed
Override module name for documentation.
1 parent 5c02ef8 commit b6c2609

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="bme280"
34
CONFIG=/boot/config.txt
45
DATESTAMP=`date "+%Y-%m-%d-%H-%M-%S"`
56
CONFIG_BACKUP=false
@@ -280,7 +281,7 @@ printf "\n"
280281
if confirm "Would you like to generate documentation?"; then
281282
pip_pkg_install pdoc
282283
printf "Generating documentation.\n"
283-
$PYTHON -m pdoc $LIBRARY_NAME -o $RESOURCES_DIR/docs > /dev/null
284+
$PYTHON -m pdoc $MODULE_NAME -o $RESOURCES_DIR/docs > /dev/null
284285
if [ $? -eq 0 ]; then
285286
inform "Documentation saved to $RESOURCES_DIR/docs"
286287
success "Done!"

0 commit comments

Comments
 (0)