<commit_before>name: Docs

on:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Setup Python
      uses: actions/setup-python@v1
      with:
        python-version: 3.7
    - name: Checkout Pygments
      uses: actions/checkout@v1
    - name: Install Sphinx
      run: pip install Sphinx
    - name: Create Pyodide WASM package
      uses: ./.github/actions/pyodide-package
    - name: Sphinx build
      run: |
        cd doc
        WEBSITE_BUILD=1 make dirhtml
        cp -a ../pyodide _build/dirhtml/_static
        touch _build/dirhtml/.nojekyll
        echo -e 'pygments.org\nwww.pygments.org' > _build/dirhtml/CNAME
        echo 'Automated deployment of docs for GitHub pages.' > _build/dirhtml/README
    - name: Deploy to repo
      uses: peaceiris/actions-gh-pages@v2.5.0
      env:
        ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
        EXTERNAL_REPOSITORY: pygments/pygments.github.io
        PUBLISH_BRANCH: master
        PUBLISH_DIR: ./doc/_build/dirhtml<commit_msg>Fix docs build.<commit_after>name: Docs

on:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Setup Python
      uses: actions/setup-python@v1
      with:
        python-version: 3.7
    - name: Checkout Pygments
      uses: actions/checkout@v1
    - name: Install Sphinx & WCAG contrast ratio
      run: pip install Sphinx wcag-contrast-ratio
    - name: Create Pyodide WASM package
      uses: ./.github/actions/pyodide-package
    - name: Sphinx build
      run: |
        cd doc
        WEBSITE_BUILD=1 make dirhtml
        cp -a ../pyodide _build/dirhtml/_static
        touch _build/dirhtml/.nojekyll
        echo -e 'pygments.org\nwww.pygments.org' > _build/dirhtml/CNAME
        echo 'Automated deployment of docs for GitHub pages.' > _build/dirhtml/README
    - name: Deploy to repo
      uses: peaceiris/actions-gh-pages@v2.5.0
      env:
        ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
        EXTERNAL_REPOSITORY: pygments/pygments.github.io
        PUBLISH_BRANCH: master
        PUBLISH_DIR: ./doc/_build/dirhtml
{'fraction_non_alphanumeric': 0.09328358208955224, 'fraction_numerical': 0.007462686567164179, 'mean_word_length': 2.2158920539730134, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6857546', 'n_tokens_mistral': 765, 'n_tokens_neox': 726, 'n_words': 167}