Skip to content

Commit

Permalink
Update EDSL Docs Build Script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythicaeda authored and adrienmaillard committed Nov 8, 2022
1 parent f65c5d1 commit 8f2e668
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/buildExternalDocs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Build the EDSL documentation and insert it into the current build directory
../gradlew publishDocs -p ../


mkdir -p ./source/constraints-edsl-api
cp -a ../merlin-server/constraints-dsl-compiler/build/docs/. ./source/constraints-edsl-api
rm -f ./source/constraints-edsl-api/.nojekyll
Expand Down Expand Up @@ -32,6 +31,12 @@ do
tail -n +3 "$file" > "$file.tmp" && mv "$file.tmp" "$file"
sed -i -e 's/README/index/g' $file
done
for file in ./source/constraints-edsl-api/modules/*.md
do
[ -e "$file" ] || continue
tail -n +3 "$file" > "$file.tmp" && mv "$file.tmp" "$file"
sed -i -e 's/README/index/g' $file
done

# Remove the extra navigation bar from the generated Scheduling EDSL files
tail -n +3 "./source/scheduling-edsl-api/modules/Scheduling_eDSL.md" > "./source/scheduling-edsl-api/Scheduling_eDSL.tmp" && mv "./source/scheduling-edsl-api/Scheduling_eDSL.tmp" "./source/scheduling-edsl-api/Scheduling_eDSL.md"
Expand Down Expand Up @@ -90,6 +95,7 @@ echo '
classes/*
enums/*
modules/*
```' | cat ./source/constraints-edsl-api/README.md - > ./source/constraints-edsl-api/index.md

# Generate an index.md for scheduling-dsl-api
Expand Down

0 comments on commit 8f2e668

Please sign in to comment.