<commit_before>#!/bin/bash
# $Id:$

TOOLS=`dirname $0`
BASE=$TOOLS/..
EPYDOC=$TOOLS/epydoc
PYTHONPATH=$EPYDOC:$BASE:$PYTHONPATH

DOC=$BASE/doc
DOC_HTML=$DOC/html
DOC_HTML_API=$DOC_HTML/api

# Clean old docs and create dir structure
rm -rf $DOC_HTML
mkdir -p $DOC_HTML

# Generate API (html) docs
export PYTHONPATH
$EPYDOC/scripts/epydoc \
    --config=$TOOLS/epydoc.config \
    --css=$TOOLS/epydoc_pyglet.css \
    $*

# Generate html docs
$TOOLS/gendoc_html.py \
    --apidoc-dir=$DOC_HTML_API \
    --html-dir=$DOC_HTML \
    --depth=2 \
    --add-navigation \
    $DOC/programming_guide.txt

$TOOLS/gendoc_html.py \
    --html-dir=$DOC_HTML \
    $DOC/index.txt

# Copy stylesheet
cp $DOC/doc.css $DOC_HTML/doc.css
<commit_msg>Programming guide docs are not yet in trunk, comment out of build script.<commit_after>#!/bin/bash
# $Id:$

TOOLS=`dirname $0`
BASE=$TOOLS/..
EPYDOC=$TOOLS/epydoc
PYTHONPATH=$EPYDOC:$BASE:$PYTHONPATH

DOC=$BASE/doc
DOC_HTML=$DOC/html
DOC_HTML_API=$DOC_HTML/api

# Clean old docs and create dir structure
rm -rf $DOC_HTML
mkdir -p $DOC_HTML

# Generate API (html) docs
export PYTHONPATH
$EPYDOC/scripts/epydoc \
    --config=$TOOLS/epydoc.config \
    --css=$TOOLS/epydoc_pyglet.css \
    $*

# Generate html docs
#$TOOLS/gendoc_html.py \
#    --apidoc-dir=$DOC_HTML_API \
#    --html-dir=$DOC_HTML \
#    --depth=2 \
#    --add-navigation \
#    $DOC/programming_guide.txt

#$TOOLS/gendoc_html.py \
#    --html-dir=$DOC_HTML \
#    $DOC/index.txt

# Copy stylesheet
cp $DOC/doc.css $DOC_HTML/doc.css

{'fraction_non_alphanumeric': 0.15610711952971915, 'fraction_numerical': 0.002612671456564337, 'mean_word_length': 3.352272727272727, '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': '6765738', 'n_tokens_mistral': 703, 'n_tokens_neox': 627, 'n_words': 110}