Skip to content

Commit

Permalink
chore(makefile): preview by default in interactive mode for both docs…
Browse files Browse the repository at this point in the history
… and manpage
  • Loading branch information
friday committed May 12, 2024
1 parent 8763281 commit 3f3bb6b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,7 @@ docs: ## Build the API docs
sphinx-apidoc -d 5 -o source ../ulauncher
sphinx-build -M html . ./_build
if [ -n "${INTERACTIVE}" ]; then
while true; do
read -p "Do you want to preview the generated documentation? (answer y to start a server) " yn
case $$yn in
[Yy]* ) python -m http.server -d _build/html 3000; break;;
[Nn]* ) exit;;
* ) exit;;
esac
done
python -m http.server -d _build/html 3000
fi

docker: # Build the docker image (only needed if you make changes to it)
Expand Down Expand Up @@ -201,4 +194,6 @@ manpage: # Generate manpage
fi
help2man --section=1 --name="Feature rich application Launcher for Linux" --no-info ./bin/ulauncher > ulauncher.1
echo -e "Generated manpage to ${BOLD}${GREEN}./ulauncher.1${RESET}"
echo -e "You can preview it with ${BOLD}${GREEN}man -l ulauncher.1${RESET}"
if [ -n "${INTERACTIVE}" ]; then
man -l ulauncher.1
fi

0 comments on commit 3f3bb6b

Please sign in to comment.