Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified docs_build.sh to support --port option #515

Merged
merged 3 commits into from
Sep 6, 2022

Conversation

pavangudiwada
Copy link
Contributor

Fixes OSError: [Errno 98] Address already in use error, caused when the default sphinx-autobuild port (8000) is reserved.

image

@pavangudiwada pavangudiwada added the bug Something isn't working label Sep 5, 2022
@@ -1,4 +1,9 @@
#!/bin/bash

cd docs && make clean && cd ..
poetry run sphinx-autobuild docs docs/_build/html || printf '\n\nError running docs_autobuild. \nMake sure you are using poetry >= 1.1.15. \nCheck out https://docs.robusta.dev/master/developer-guide/platform/docs-contributions.html\n'

if [ "$1" == "--port" ];then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pavangudiwada instead of the if/else can we always run poetry run sphinx-autobuild $@ docs docs/_build/html and such that ./docs_autobuild.sh supports all sphinx-autobuild flags and passes them in automatically no matter what?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, yep, it works without it. 😅

Copy link
Contributor Author

@pavangudiwada pavangudiwada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made changes

@@ -1,4 +1,9 @@
#!/bin/bash

cd docs && make clean && cd ..
poetry run sphinx-autobuild docs docs/_build/html || printf '\n\nError running docs_autobuild. \nMake sure you are using poetry >= 1.1.15. \nCheck out https://docs.robusta.dev/master/developer-guide/platform/docs-contributions.html\n'

if [ "$1" == "--port" ];then
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, yep, it works without it. 😅

@pavangudiwada pavangudiwada enabled auto-merge (squash) September 6, 2022 05:39
@pavangudiwada pavangudiwada changed the title Added --port argument and its documentation Modified docs_build.sh to support --port option Sep 6, 2022
@aantn aantn disabled auto-merge September 6, 2022 22:58
@aantn aantn merged commit bb1f418 into robusta-dev:master Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants