fix docs path
This commit is contained in:
parent
375f152e8f
commit
2bf47c8f2d
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@ -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
|
||||||
|
@ -26,35 +26,27 @@ 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',
|
||||||
handlers=[
|
handlers=[
|
||||||
|
|
||||||
stream_handler, # add stream handler from above
|
stream_handler, # add stream handler from above
|
||||||
|
|
||||||
RotatingFileHandler( # log to a file too
|
RotatingFileHandler( # log to a file too
|
||||||
f'{top_level}/logs/inkycal.log', # file to log
|
f'{top_level}/logs/inkycal.log', # file to log
|
||||||
maxBytes=2097152, # 2MB max filesize
|
maxBytes=2097152, # 2MB max filesize
|
||||||
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)
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user