File tree 4 files changed +17
-5
lines changed
docs/portal/developer-portal
4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ mkdir -m777 -p build/Markdown
65
65
echo " Building SHS Install Guide" ;
66
66
67
67
# 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 ./
69
69
cd $THIS_DIR
70
70
# This builds the PDF using DITA-OT's default PDF transform
71
71
dita -i shs_install_guide.ditamap -o build/PDF/install -f pdf
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments