Skip to content

Commit

Permalink
Update docs/pre.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle authored Nov 16, 2023
1 parent 5dd0ba7 commit abe4c79
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions docs/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,14 @@
## Create modules pages
for D in ../x/*; do
if [ -d "${D}" ]; then
<<<<<<< HEAD
MODDOC=docs/build/modules/$(echo $D | awk -F/ '{print $NF}')
rm -rf $MODDOC
mkdir -p $MODDOC && cp -r $D/README.md "$_"
=======
DIR_NAME=$(basename "$D")

# Skip specific directories
if [[ "$DIR_NAME" != "counter" ]]; then
MODULE_DIRECTORY=build/modules/$DIR_NAME
rm -rf "$MODULE_DIRECTORY"
mkdir -p "$MODULE_DIRECTORY"
if [ -f "$D"/README.md ]; then
cp -r "$D"/README.md "$MODULE_DIRECTORY"
fi
fi
>>>>>>> 7a2842587 (docs: avoid copying non existent files & counter readme (#18487))
fi
done

Expand Down

0 comments on commit abe4c79

Please sign in to comment.