Skip to content

Commit

Permalink
using python 3.10
Browse files Browse the repository at this point in the history
in the github action for building documentation, i got this:

```
Configuration error:
There is a programmable error in your configuration file:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/sphinx/config.py", line 348, in eval_config_file
    execfile_(filename, namespace)
  File "/usr/local/lib/python3.8/site-packages/sphinx/util/pycompat.py", line 81, in execfile_
    exec(code, _globals)
  File "/github/workspace/docs/conf.py", line 42, in <module>
    import markdown2canvas
  File "/github/workspace/markdown2canvas/__init__.py", line 10, in <module>
    logging.basicConfig(encoding='utf-8')
  File "/usr/local/lib/python3.8/logging/__init__.py", line 1997, in basicConfig
    raise ValueError('Unrecognised argument(s): %s' % keys)
ValueError: Unrecognised argument(s): encoding
make: *** [Makefile:20: html] Error 2
```
  • Loading branch information
ofloveandhate committed Jul 12, 2024
1 parent 4d0b49a commit 63a4cad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ on: push
permissions:
contents: write



jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Build HTML
uses: ammaraskar/sphinx-action@master
with:
Expand Down

0 comments on commit 63a4cad

Please sign in to comment.