Skip to content

Commit a0e9111

Browse files
author
Darrenn Jackson
committed
deleted api DP files. added flatten.sh. Modified build.sh
1 parent 4c43759 commit a0e9111

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

docs/portal/developer-portal/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ mkdir -m777 -p build/Markdown
6565
echo "Building SHS Install Guide";
6666

6767
# This line builds the HPESC HTML bundle for the install guide
68-
dita -i tmp/shs_install_guide.ditamap -o build/install -f HPEscHtml5 && cp install_publication.json build/install/publication.json && cd build/install/ && zip -r crs8032_@docid_suffix@en_us.zip ./
68+
dita -i tmp/shs_install_guide.ditamap -o build/install -f HPEscHtml5 && cp shs_install_publication.json build/install/publication.json && cd build/install/ && zip -r crs8032_@docid_suffix@en_us.zip ./
6969
cd $THIS_DIR
7070
# This builds the PDF using DITA-OT's default PDF transform
7171
dita -i shs_install_guide.ditamap -o build/PDF/install -f pdf

docs/portal/developer-portal/direct_publish_hpesc.sh

-2
This file was deleted.

docs/portal/developer-portal/direct_publish_itg.sh

-2
This file was deleted.
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# create tmp subdir
2+
mkdir tmp
3+
#mkdir tmp/images
4+
# copy all markdown files to the tmp subdir
5+
cp ./*/*.md tmp/
6+
# copy all images to the tmp subdir
7+
#cp ./*/*/*.png tmp/images/
8+
# copy ditamap to the tmp subdir
9+
cp ./*.ditamap tmp/
10+
# convert links in the ditamap
11+
sed -i 's/overview\///' tmp/shs_install_guide.ditamap
12+
sed -i 's/install\///' tmp/shs_install_guide.ditamap
13+
14+
# convert all links in all Markdown files.
15+
declare -a prefixes=("\.\.\/install" "\.\.\/overview")
16+
for file in $(ls tmp/*.md);do for prefix in ${prefixes[@]}; do sed -i "s/$prefix\///g" $file;done;done

0 commit comments

Comments
 (0)