Files
Jarvis/gen_docs.sh
thevickypedia 7e8fce1a73 Allow file upload on Jarvis API
Delete SMS sent via Jarvis on Gmail's SentItems
Implement fall back for GPT with history mapping
Make recognizer settings as default
Move alarms and reminders to fileio
Fix inconsistent volume on RokuTV
Update documentation references to CNAME record
2023-09-10 23:24:42 -05:00

22 lines
1.0 KiB
Bash

#!/usr/bin/env bash
# 'set -e' stops the execution of a script if a command or pipeline has an error.
# This is the opposite of the default shell behaviour, which is to ignore errors in scripts.
set -e
if [ -e "docs/CNAME" ]; then
mv "docs/CNAME" "CNAME"
fi
gitverse-release reverse -f release_notes.rst -t 'Release Notes' # Update release notes
rm -rf docs # Remove existing docs directory
mkdir docs # Create new docs directory
mkdir -p docs_gen/_static # Create a _static directory if unavailable
cp README.md docs_gen # Copy readme file to docs_gen
cd docs_gen && make clean html # cd into doc_gen and create the runbook
mv _build/html/* ../docs && mv README.md ../docs && rm -rf fileio logs # Move the runbook, readme and cleanup
# The existence of this file tells GitHub Pages not to run the published files through Jekyll.
# This is important since Jekyll will discard any files that begin with _
cp static.css ../docs/_static
cd ../ && touch docs/.nojekyll
if [ -e "CNAME" ]; then
mv "CNAME" "docs/CNAME"
fi