fix docs path

This commit is contained in:
Ace 2023-06-03 21:56:01 +02:00
parent 375f152e8f
commit 2bf47c8f2d
3 changed files with 19 additions and 39 deletions

View File

@ -109,8 +109,9 @@ jobs:
echo "$PWD" echo "$PWD"
ls ls
source venv/bin/activate source venv/bin/activate
cd docsource cd docsource && make github && cd ..
make github && cd .. echo "$PWD"
ls
git config --global user.name 'GitHub Actions' git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com' git config --global user.email 'actions@github.com'
git add docs git add docs

View File

@ -26,21 +26,13 @@ from PIL import Image
stream_handler = logging.StreamHandler() stream_handler = logging.StreamHandler()
stream_handler.setLevel(logging.ERROR) stream_handler.setLevel(logging.ERROR)
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s | %(name)s | %(levelname)s: %(message)s',
datefmt='%d-%m-%Y %H:%M:%S',
handlers=[stream_handler])
else:
if not os.path.exists(f'{top_level}/logs'): if not os.path.exists(f'{top_level}/logs'):
os.mkdir(f'{top_level}/logs') os.mkdir(f'{top_level}/logs')
# Save all logs to a file, which contains more detailed output # Save all logs to a file, which contains more detailed output
logging.basicConfig( logging.basicConfig(
level=logging.INFO, level=logging.INFO,
format='%(asctime)s | %(name)s | %(levelname)s: %(message)s', format='%(asctime)s | %(name)s | %(levelname)s: %(message)s',
datefmt='%d-%m-%Y %H:%M:%S', datefmt='%d-%m-%Y %H:%M:%S',
@ -54,7 +46,7 @@ else:
backupCount=5 # create max 5 log files backupCount=5 # create max 5 log files
) )
] ]
) )
# Show less logging for PIL module # Show less logging for PIL module
logging.getLogger("PIL").setLevel(logging.WARNING) logging.getLogger("PIL").setLevel(logging.WARNING)

View File

@ -1,13 +0,0 @@
version: 2
python:
version: 3.7
install:
- requirements: requirements.txt
- requirements: docs/requirements.txt
- method: pip
path: .
sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: false