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"
ls
source venv/bin/activate
cd docsource
make github && cd ..
cd docsource && make github && cd ..
echo "$PWD"
ls
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git add docs

View File

@ -26,35 +26,27 @@ from PIL import Image
stream_handler = logging.StreamHandler()
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'):
os.mkdir(f'{top_level}/logs')
if not os.path.exists(f'{top_level}/logs'):
os.mkdir(f'{top_level}/logs')
# Save all logs to a file, which contains more detailed output
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s | %(name)s | %(levelname)s: %(message)s',
datefmt='%d-%m-%Y %H:%M:%S',
handlers=[
# Save all logs to a file, which contains more detailed output
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s | %(name)s | %(levelname)s: %(message)s',
datefmt='%d-%m-%Y %H:%M:%S',
handlers=[
stream_handler, # add stream handler from above
stream_handler, # add stream handler from above
RotatingFileHandler( # log to a file too
f'{top_level}/logs/inkycal.log', # file to log
maxBytes=2097152, # 2MB max filesize
backupCount=5 # create max 5 log files
)
]
)
RotatingFileHandler( # log to a file too
f'{top_level}/logs/inkycal.log', # file to log
maxBytes=2097152, # 2MB max filesize
backupCount=5 # create max 5 log files
)
]
)
# Show less logging for PIL module
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