File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -16,25 +16,33 @@ if [ ! -f "${DOCS_DIR}/html/index.html" ]; then
1616 exit 1
1717fi
1818
19- # Validate documentation directory has content
20- if [ ! -d " ${DOCS_DIR} /html " ] || [ -z " $( ls -A $ {DOCS_DIR} /html ) " ] ; then
21- echo " Error: ${DOCS_DIR} /html is empty or does not exist "
19+ if [ ! -f " ${DOCS_DIR} /markdown/API.md " ] ; then
20+ echo " Error: $ {DOCS_DIR} /markdown/API.md not found "
21+ echo " Run 'mise run docs:generate:markdown' first to generate markdown documentation "
2222 exit 1
2323fi
2424
25+ if [ ! -d " ${DOCS_DIR} /xml" ] || [ -z " $( ls -A ${DOCS_DIR} /xml/* .xml 2> /dev/null) " ]; then
26+ echo " Error: ${DOCS_DIR} /xml/*.xml files not found"
27+ echo " Run 'mise run docs:generate' first to generate XML documentation"
28+ exit 1
29+ fi
30+
31+
32+
2533# Create output directory
2634mkdir -p " ${OUTPUT_DIR} "
2735
2836# Create archives
2937echo " Creating archives..."
3038cd " ${DOCS_DIR} "
3139
32- # Create ZIP archive
33- zip -r -q " ../../${OUTPUT_DIR} /eql-docs-${VERSION} .zip" html/
40+ # Create ZIP archive with all documentation formats
41+ zip -r -q " ../../${OUTPUT_DIR} /eql-docs-${VERSION} .zip" markdown/API.md xml/ * .xml html/
3442echo " Created ${OUTPUT_DIR} /eql-docs-${VERSION} .zip"
3543
36- # Create tarball
37- tar czf " ../../${OUTPUT_DIR} /eql-docs-${VERSION} .tar.gz" html/
44+ # Create tarball with all documentation formats
45+ tar czf " ../../${OUTPUT_DIR} /eql-docs-${VERSION} .tar.gz" markdown/API.md xml/ html/
3846echo " Created ${OUTPUT_DIR} /eql-docs-${VERSION} .tar.gz"
3947
4048cd ../..
You can’t perform that action at this time.
0 commit comments