Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/python-update-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will install Python dependencies, executes generate_style_list script and update docs during workkflow
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Update docs

on:
workflow_dispatch:
push:
branches:
- main

jobs:
docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade --upgrade-strategy eager --no-cache-dir .[docs]
- name: execute script
run: |
python ./docs/source/generate_style_list.py
- uses: EndBug/add-and-commit@v8
with:
default_author: github_actions
message: 'docs: update style list'
1 change: 1 addition & 0 deletions docs/source/generate_style_list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
__import__("sys").path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
from table2ascii import PresetStyle, table2ascii


Expand Down