diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5ba0689..7884921 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,6 +6,10 @@ on: paths: - 'site/**' - '.github/workflows/docs.yml' + pull_request: + paths: + - 'site/**' + - '.github/workflows/docs.yml' workflow_dispatch: permissions: @@ -13,9 +17,10 @@ permissions: pages: write id-token: write +# Pull requests only build; each gets its own group so it never queues behind a deploy. concurrency: - group: pages - cancel-in-progress: false + group: ${{ github.event_name == 'pull_request' && format('docs-{0}', github.ref) || 'pages' }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: build: @@ -34,16 +39,19 @@ jobs: cache: npm cache-dependency-path: site/package-lock.json - uses: actions/configure-pages@v6.0.0 + if: github.event_name != 'pull_request' - run: npm ci working-directory: site - run: npm run build working-directory: site - uses: actions/upload-pages-artifact@v5.0.0 + if: github.event_name != 'pull_request' with: path: site/.vitepress/dist deploy: needs: build + if: github.event_name != 'pull_request' runs-on: ubuntu-latest environment: name: github-pages diff --git a/site/.vitepress/theme/HeroInstall.vue b/site/.vitepress/theme/HeroInstall.vue index 190db6d..9711964 100644 --- a/site/.vitepress/theme/HeroInstall.vue +++ b/site/.vitepress/theme/HeroInstall.vue @@ -1,97 +1,93 @@ diff --git a/site/.vitepress/theme/style.css b/site/.vitepress/theme/style.css index 596421c..ca9d06f 100644 --- a/site/.vitepress/theme/style.css +++ b/site/.vitepress/theme/style.css @@ -94,6 +94,12 @@ max-width: 560px; } +/* Korean wraps between words, not between syllables. */ +:lang(ko) .VPHome { + word-break: keep-all; + overflow-wrap: break-word; +} + /* Hero: a tinted band in the accent colour, demo in the right column on wide screens. */ .VPHome { overflow-x: clip; diff --git a/site/index.md b/site/index.md index 7a23729..3cdaa37 100644 --- a/site/index.md +++ b/site/index.md @@ -19,10 +19,17 @@ hero: link: https://github.com/NaNIsaac/codigest install: - label: Install - command: uv tool install codigest + label: Install Codigest + windowsLabel: Windows + unixLabel: Linux / macOS / Termux + pythonLabel: Python (uv) + windows: 'irm https://raw.githubusercontent.com/NaNIsaac/codigest/main/install.ps1 | iex' + unix: 'curl -fsSL https://raw.githubusercontent.com/NaNIsaac/codigest/main/install.sh | sh' + python: 'uv tool install codigest' copy: Copy copied: Copied + moreLabel: All installation options + moreLink: /installation demo: alt: cdg cap runs a failing pytest, then cdg pack bundles the failure, the test file it names and the changed file diff --git a/site/ko/index.md b/site/ko/index.md index be3cb1c..cb49977 100644 --- a/site/ko/index.md +++ b/site/ko/index.md @@ -19,10 +19,17 @@ hero: link: https://github.com/NaNIsaac/codigest install: - label: 설치 - command: uv tool install codigest + label: Codigest 설치 + windowsLabel: Windows + unixLabel: Linux / macOS / Termux + pythonLabel: Python (uv) + windows: 'irm https://raw.githubusercontent.com/NaNIsaac/codigest/main/install.ps1 | iex' + unix: 'curl -fsSL https://raw.githubusercontent.com/NaNIsaac/codigest/main/install.sh | sh' + python: 'uv tool install codigest' copy: 복사 copied: 복사됨 + moreLabel: 설치 방법 자세히 보기 + moreLink: /ko/installation demo: alt: cdg cap으로 실패하는 pytest를 실행한 뒤, cdg pack이 실패 출력과 오류가 가리키는 테스트 파일, 바뀐 파일을 묶는 화면