From afd3fa510ce265cb6b1d71316d54778e90155b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Wed, 15 Oct 2025 15:09:02 +0200 Subject: [PATCH] feat: serve markdown automatically based on `Accept` header Alters the nginx config so it checks the `Accept` header, if it contains `text/plain` or `text/markdown`, we serve the markdown version directly. Also added tests for this behavior to the existing PR check. --- .github/workflows/test.yaml | 118 ++++++++++++++++++------------------ nginx.conf | 42 ++++++++++++- 2 files changed, 99 insertions(+), 61 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9e13e424a..721a56669 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -35,65 +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 < /dev/null + + - name: Start Nginx with project config + run: | + cat > default.conf <