mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
renamed generated site folder to btstack, provide script to upload docs to server
This commit is contained in:
parent
d9f907dbc9
commit
360f3fe3b0
1
docs/manual/markdown/.gitignore
vendored
1
docs/manual/markdown/.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
|
btstack
|
||||||
site
|
site
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
site_name: BTstack Manual
|
site_name: BTstack Manual
|
||||||
|
site_dir: btstack
|
||||||
pages:
|
pages:
|
||||||
- [index.md, Welcome]
|
- [index.md, Welcome]
|
||||||
- [quick_start.md, Quick Start]
|
- [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