From 08a8d1e7b6bb958862bb8f423c39d96ced5b05a3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 8 Sep 2025 15:32:58 +0000 Subject: [PATCH 01/17] chore: bump version to v1.2.0 for next development cycle Following release branch creation for v1.1.0, updating develop branch to target the next minor version v1.2.0. Changes: - Update package.json version to 1.2.0 - Prepare for next development cycle This maintains the Git Flow pattern where develop always contains the next planned version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3040cf3..92b8de3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pico-api-docs", - "version": "1.1.0", + "version": "1.2.0", "description": "PICO SulTeng API Documentation - COVID-19 Sulawesi Tengah Data API", "main": "index.js", "scripts": { From 327cdea0ecfe90a40e45511ef6c02b92a4fcfed4 Mon Sep 17 00:00:00 2001 From: Fajrian Aidil Pratama Date: Mon, 8 Sep 2025 23:14:58 +0700 Subject: [PATCH 02/17] fix: correct changelog script arguments in workflows --- .github/workflows/create-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index f25e944..4d2fb6d 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -90,11 +90,14 @@ jobs: # Generate changelog using the Ruby script ruby scripts/generate_changelog.rb \ --version "$VERSION" \ - --output "RELEASE_CHANGELOG.md" + --force - if [ -f "RELEASE_CHANGELOG.md" ]; then + if [ -f "CHANGELOG.md" ]; then echo "โœ… Changelog generated successfully" + # Extract just the latest version section for the release notes + sed -n "/## \[v$VERSION\]/,/## \[/p" CHANGELOG.md | head -n -1 > RELEASE_CHANGELOG.md + # Save changelog content for release body (limit to reasonable size) echo "changelog<> $GITHUB_OUTPUT head -c 4000 RELEASE_CHANGELOG.md >> $GITHUB_OUTPUT From f2cfa9288aa8117ebe307bb1468643936e8a13b5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 8 Sep 2025 15:32:58 +0000 Subject: [PATCH 03/17] chore: bump version to v1.2.0 for next development cycle Following release branch creation for v1.1.0, updating develop branch to target the next minor version v1.2.0. Changes: - Update package.json version to 1.2.0 - Prepare for next development cycle This maintains the Git Flow pattern where develop always contains the next planned version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8c3f853..92b8de3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pico-api-docs", - "version": "1.1.1", + "version": "1.2.0", "description": "PICO SulTeng API Documentation - COVID-19 Sulawesi Tengah Data API", "main": "index.js", "scripts": { From bf8c2f6d100de9620e45d84f7a396569d017aaeb Mon Sep 17 00:00:00 2001 From: Fajrian Aidil Pratama Date: Mon, 8 Sep 2025 23:47:51 +0700 Subject: [PATCH 04/17] ci(workflow): fix release automation workflow --- .github/workflows/release-automation.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release-automation.yml b/.github/workflows/release-automation.yml index de92612..bbba816 100644 --- a/.github/workflows/release-automation.yml +++ b/.github/workflows/release-automation.yml @@ -149,6 +149,22 @@ jobs: echo "โœ… Tag $VERSION created and pushed successfully" + - name: Trigger deployment workflow + if: steps.check_tag.outputs.tag_exists == 'false' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + VERSION="${{ steps.version.outputs.version }}" + + echo "๐Ÿš€ Manually triggering deployment workflow for tag $VERSION..." + + # Trigger the deploy workflow by creating a repository dispatch event + # Since we can't directly trigger tag-based workflows, we'll use workflow_dispatch + # But first, let's try using the GitHub CLI to trigger it + gh workflow run deploy.yml --ref "$VERSION" || echo "โš ๏ธ Could not trigger via workflow dispatch, deployment should trigger automatically" + + echo "โœ… Deployment trigger attempted" + # STEP 2: CREATE BACK-MERGE TO DEVELOP - name: Generate unique back-merge branch name id: branch_name From f9f4fe3eb9db9a70b53e7dfbdc12d79fa1c07c9f Mon Sep 17 00:00:00 2001 From: Fajrian Aidil Pratama Date: Thu, 11 Sep 2025 09:40:38 +0700 Subject: [PATCH 05/17] fix: improve mobile responsiveness for Samsung A33 and small screens - Hero section: reduce font sizes, improve spacing, fix code terminal layout - Documentation: optimize sidebar width, reduce padding for mobile - Overview section: responsive typography, better code block handling - Reproduction Rate: mobile-friendly math formulas with overflow handling - Add responsive breakpoints for xs/sm screens (360px+) - Improve touch targets and content readability on mobile devices --- .htaccess | 17 ++- .../documentation/GlossarySection.vue | 110 +++++++++--------- .../documentation/OverviewSection.vue | 50 ++++---- src/views/Documentation.vue | 12 +- src/views/Home.vue | 66 +++++------ 5 files changed, 135 insertions(+), 120 deletions(-) diff --git a/.htaccess b/.htaccess index 965b5e0..c6fd7eb 100644 --- a/.htaccess +++ b/.htaccess @@ -16,14 +16,23 @@ RewriteRule ^api/v1/(.*)$ http://localhost:8080/api/v1/$1 [P,L] # Handle root API endpoint RewriteRule ^api/v1/?$ http://localhost:8080/api/v1/ [P,L] -# Serve Swagger UI static files (no proxy needed) -# Static files will be served directly by web server +# ============================================================================= +# SWAGGER UI STATIC FILES CONFIGURATION +# ============================================================================= + + # Serve Swagger UI + RewriteRule ^swagger/?$ /dist/index.html [L] + RewriteRule ^swagger/(.*)$ /dist/$1 [L] + + # Serve docs directory (swagger.json, swagger.yaml, swagger.html) + RewriteRule ^docs/(.*)$ /docs/$1 [L] + # Handle docs route for Vue documentation site RewriteRule ^docs/?$ /index.html [L] -# Optional: API documentation redirect -RewriteRule ^api/?$ /api/v1/health [R=302,L] +# Redirect /api/ to Swagger UI documentation +RewriteRule ^api/?$ /swagger/ [R=302,L] # ============================================================================= # CORS HEADERS CONFIGURATION diff --git a/src/components/documentation/GlossarySection.vue b/src/components/documentation/GlossarySection.vue index 9262fb1..fd32423 100644 --- a/src/components/documentation/GlossarySection.vue +++ b/src/components/documentation/GlossarySection.vue @@ -1,41 +1,41 @@