Skip to content

Commit

Permalink
docs: avoid copying non existent files & counter readme (#18487)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7a28425)

# Conflicts:
#	docs/pre.sh
  • Loading branch information
tac0turtle authored and mergify[bot] committed Nov 16, 2023
1 parent 50fb4fa commit 5dd0ba7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,23 @@
## 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 5dd0ba7

Please sign in to comment.