Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fasionchan committed Nov 9, 2019
1 parent 13a39d0 commit 3178bdf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/zh_CN/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@


# -- Options for HTML output -------------------------------------------------

html_title = project
html_favicon = '_static/favicon.png'

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
12 changes: 11 additions & 1 deletion docs/zh_CN/scripts/auto-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
#
#

SELF_PATH=`realpath "$0"`
SCRIPT_DIR_PATH=`dirname "$SELF_PATH"`
DOC_ROOT_PATH=`dirname "$SCRIPT_DIR_PATH"`
PYENV_PATH="$DOC_ROOT_PATH/opt/pyenv"
BUILD_PATH="$DOC_ROOT_PATH/_build"

BIND_ADDR=nodejs.local
sudo ifconfig lo0 alias $BIND_ADDR up
sphinx-autobuild -H $BIND_ADDR . _build/html
rm -rf "$BUILD_PATH"
(
cd "$DOC_ROOT_PATH"
PATH="$PYENV_PATH/bin:$PATH" "$PYENV_PATH/bin/sphinx-autobuild" -H $BIND_ADDR . "$BUILD_PATH/html"
)

0 comments on commit 3178bdf

Please sign in to comment.