From 6bac35b681647acaff29a4b3c0a7c832faf8009f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Fri, 10 Oct 2025 13:17:39 +0200 Subject: [PATCH 1/2] feat: serve markdown automatically based on `Accept` header --- .github/workflows/test.yaml | 59 +++++++++++++++++++++++++++++++++++++ CONTRIBUTING.md | 2 +- nginx.conf | 43 ++++++++++++++++++++++++++- 3 files changed, 102 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 20217ad0ff..523d10e1f0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -35,6 +35,65 @@ jobs: INTERCOM_APP_ID: ${{ secrets.INTERCOM_APP_ID }} SEGMENT_TOKEN: ${{ secrets.SEGMENT_TOKEN }} + - name: Install Nginx + run: | + sudo apt-get update + sudo apt-get install -y nginx + + - name: Start Docusaurus server + run: | + nohup npx docusaurus serve --port 3000 --no-open & + sleep 5 + curl -f http://localhost:3000 > /dev/null + + - name: Start Nginx with project config + run: | + cat > default.conf < Date: Fri, 10 Oct 2025 14:22:07 +0200 Subject: [PATCH 2/2] drop the old nginx config workflow --- .github/workflows/nginx.conf-test.yaml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .github/workflows/nginx.conf-test.yaml diff --git a/.github/workflows/nginx.conf-test.yaml b/.github/workflows/nginx.conf-test.yaml deleted file mode 100644 index a727bfdaaa..0000000000 --- a/.github/workflows/nginx.conf-test.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: Nginx configuration test - -on: - pull_request: - paths: - - nginx.conf - -jobs: - nginx-test-job: - runs-on: ubuntu-latest - container: - image: docker.io/library/nginx:1.29.2-alpine-slim - steps: - - name: Checkout repository - uses: actions/checkout@v5 - - name: Test Nginx configuration - run: | - cat > default.conf <