mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 21:35:16 +00:00
Merge branch 'master' of https://github.com/bluekitchen/btstack
This commit is contained in:
commit
04bee3d032
1
docs/manual/markdown/.gitignore
vendored
1
docs/manual/markdown/.gitignore
vendored
@ -1 +1,2 @@
|
||||
btstack
|
||||
site
|
||||
|
@ -1,4 +1,5 @@
|
||||
site_name: BTstack Manual
|
||||
site_dir: btstack
|
||||
pages:
|
||||
- [index.md, Welcome]
|
||||
- [quick_start.md, Quick Start]
|
||||
|
20
docs/manual/markdown/upload_site_sftp.sh
Executable file
20
docs/manual/markdown/upload_site_sftp.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user