-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deleted api DP files. added flatten.sh. Modified build.sh
- Loading branch information
Darrenn Jackson
committed
Apr 25, 2024
1 parent
4c43759
commit a0e9111
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# create tmp subdir | ||
mkdir tmp | ||
#mkdir tmp/images | ||
# copy all markdown files to the tmp subdir | ||
cp ./*/*.md tmp/ | ||
# copy all images to the tmp subdir | ||
#cp ./*/*/*.png tmp/images/ | ||
# copy ditamap to the tmp subdir | ||
cp ./*.ditamap tmp/ | ||
# convert links in the ditamap | ||
sed -i 's/overview\///' tmp/shs_install_guide.ditamap | ||
sed -i 's/install\///' tmp/shs_install_guide.ditamap | ||
|
||
# convert all links in all Markdown files. | ||
declare -a prefixes=("\.\.\/install" "\.\.\/overview") | ||
for file in $(ls tmp/*.md);do for prefix in ${prefixes[@]}; do sed -i "s/$prefix\///g" $file;done;done |