<commit_before>#!/bin/bash
#
# Build the docs (vieable publicly at http://SERVER_NAME/docs).
#
# You can view them in docs/_build/html/
#

DIR="$( builtin cd "$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )" && pwd )"
source "$DIR/load_config.sh"


if [[ -z "$DOCS_DIR" ]] || [[ ! -d "$DOCS_DIR" ]]; then
	echo "No docs -- not building"
	exit 0
fi

if [[ ! -d $VENV_DIR ]]; then
	echo "Error: virtualenv not yet set up.  Please run the installer."
	exit 1
fi

builtin cd "$DOCS_DIR"
make clean html
<commit_msg>don't do a full docs rebuild every time, it's too slow<commit_after>#!/bin/bash
#
# Build the docs (vieable publicly at http://SERVER_NAME/docs).
#
# You can view them in docs/_build/html/
#

DIR="$( builtin cd "$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )" && pwd )"
source "$DIR/load_config.sh"


if [[ -z "$DOCS_DIR" ]] || [[ ! -d "$DOCS_DIR" ]]; then
	echo "No docs -- not building"
	exit 0
fi

if [[ ! -d $VENV_DIR ]]; then
	echo "Error: virtualenv not yet set up.  Please run the installer."
	exit 1
fi

builtin cd "$DOCS_DIR"
make html

{'fraction_non_alphanumeric': 0.17746478873239438, 'fraction_numerical': 0.005633802816901409, 'mean_word_length': 3.5555555555555554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7097425', 'n_tokens_mistral': 429, 'n_tokens_neox': 394, 'n_words': 133}