renamed generated site folder to btstack, provide script to upload docs to server

This commit is contained in:
Matthias Ringwald 2015-05-06 17:17:32 +02:00
parent d9f907dbc9
commit 360f3fe3b0
3 changed files with 22 additions and 0 deletions

View File

@ -1 +1,2 @@
btstack
site

View File

@ -1,4 +1,5 @@
site_name: BTstack Manual
site_dir: btstack
pages:
- [index.md, Welcome]
- [quick_start.md, Quick Start]

View File

@ -0,0 +1,20 @@
#!/bin/bash
USAGE="Usage: upload_site_sftp.sh host path user"
# command line checks, bash
if [ $# -ne 3 ]; then
echo ${USAGE}
exit 0
fi
host=$1
path=$2
user=$3
echo Uploading generated docs to ${host}/${path}/btstack with user ${user}
# SFTP is very peculiar: recursive put only works for a single directory
sftp ${user}@${host} << EOF
mkdir ${path}/btstack
put -r btstack ${path}
quit
EOF