Skip to content

Commit 5d9c033

Browse files
committed
add generate-devsite-help.sh
1 parent 7883727 commit 5d9c033

5 files changed

Lines changed: 39 additions & 176 deletions

File tree

docs/devsite-help/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/devsite-help/docfx_helper.py

Lines changed: 0 additions & 101 deletions
This file was deleted.

docs/devsite-help/noxfile.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

docs/devsite-help/toc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- uid: product-neutral-guides
2+
name: 'Client library help'
3+
items:
4+
-
5+
name: 'Getting Started'
6+
href: 'getting-started.md'

docs/generate-devsite-help.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
set -e
4+
REPOROOT=$(git rev-parse --show-toplevel)
5+
6+
if [[ -z "$1" ]]
7+
then
8+
declare -r VERSION="1.0.0"
9+
else
10+
declare -r VERSION=$1
11+
fi
12+
13+
DEVSITE_STAGING_BUCKET=docs-staging-v2
14+
15+
rm -rf $REPOROOT/docs/output
16+
mkdir -p $REPOROOT/docs/output
17+
18+
cp $REPOROOT/docs/devsite-help/* $REPOROOT/docs/output
19+
cd $REPOROOT/docs/output
20+
21+
# Create the docs metadata.
22+
docuploader create-metadata \
23+
--name help \
24+
--version $VERSION \
25+
--language python
26+
27+
# Upload the
28+
docuploader upload . \
29+
--staging-bucket="$DEVSITE_STAGING_BUCKET" \
30+
--destination-prefix="docfx-" \
31+
--metadata-file="docs.metadata"
32+
33+
echo 'Done'

0 commit comments

Comments
 (0)