Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions prepare-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ cp -r examples upload/img/
# Merge repo JSON files into single file
python merge_repo.py

# PWE data files for /repo/ endpoint
mkdir -p upload/dat
cp site/dat/out.xml upload/dat/
cp -r site/dat/repo upload/dat/
cp -r site/files upload/ 2>/dev/null || true

# PHP for /repo/ endpoint (stays dynamic)
cp site/index.php upload/
cp site/cfg.php upload/
cp site/composer.json upload/
cp -r site/JPGC upload/
cp site/dat/out.xml upload/dat/
cp -r site/files upload/ 2>/dev/null || true

php --version
curl -sS https://getcomposer.org/installer | php
Expand Down
11 changes: 9 additions & 2 deletions site/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@ set -e

cd "$(dirname "$0")"

# Assemble MkDocs source with only markdown files
rm -rf .mkdocs_src
mkdir -p .mkdocs_src/wiki .mkdocs_src/install
cp dat/wiki/*.md .mkdocs_src/wiki/
cp dat/install/Install.md .mkdocs_src/install/
cp dat/index.md dat/catalogue.md dat/stats.md .mkdocs_src/

mkdocs build --clean

rm -rf .mkdocs_src

# Static assets not managed by MkDocs
cp robots.txt build/
cp favicon.ico build/ 2>/dev/null || true
cp -r img build/
mkdir -p build/dat/stats
cp -r dat/repo build/dat/

echo "Build complete: build/"
2 changes: 1 addition & 1 deletion site/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ site_name: JMeter-Plugins.org
site_url: https://jmeter-plugins.org/
site_description: Custom plugins for Apache JMeter

docs_dir: dat
docs_dir: .mkdocs_src
site_dir: build

use_directory_urls: true
Expand Down
Loading