Skip to content

Commit 35f13d9

Browse files
authored
build: Add colortables and other files to addon doc (#5316)
This adds missing files to the addons subdirectory when the documentation is build in the CI. It gets all the directories in the parent dir and copies them over except the addons directory itself and libpython directory (filtering the two know unwanted ones out rather than trying to capture all directory names). An alternative solution would be to generate the links differently when compiling addons, but that would need post-processing like for keywords or changes to the parser code.
1 parent 08286fb commit 35f13d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/documentation.yml

+9
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ jobs:
126126
grass --tmp-project XY --exec \
127127
python grass/man/build_keywords.py md "$MKDOCS_DIR/source" "$MKDOCS_DIR/source/addons"
128128
129+
- name: Copy shared files to addons
130+
run: |
131+
cd "$MKDOCS_DIR/source"
132+
# This should match directories with color tables and other files
133+
# linked from the pages.
134+
for name in $(ls -1d */ | grep -vE "^(addons|libpython)/$"); do
135+
cp -rv $name addons
136+
done
137+
129138
- name: Get mkdocs
130139
run: |
131140
pip install -r "grass/man/mkdocs/requirements.txt"

0 commit comments

Comments
 (0)