Skip to content

Commit

Permalink
build backup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stsievert committed Dec 4, 2022
1 parent d3a1a2f commit f33a7eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
run: |
cd docs
make html
zip build/html/salmon-html-docs.zip build/html/* build/html/**/*
- name: Build backup docs
run: |
cd docs
make latexpdf
mv build/latexpdf/salmon.pdf build/html/salmon.pdf
- name: Upload docs to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
5 changes: 3 additions & 2 deletions salmon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
from queue import SimpleQueue as Queue
from typing import List

LOG_LEVEL = os.environ.get("LOG_LEVEL", "INFO")


def get_logger(name):
# Config from https://docs.python-guide.org/writing/logging/ and
# https://docs.python-guide.org/writing/logging/
logger = logging.getLogger(name)
DEBUG = int(os.environ.get("SALMON_DEBUG", "0"))
LOG_LEVEL = "DEBUG" if DEBUG else "INFO"
LEVEL = getattr(logging, LOG_LEVEL)

formatter = logging.Formatter("%(asctime)s %(name)s %(levelname)s: %(message)s")
handlers = []

Expand Down

0 comments on commit f33a7eb

Please sign in to comment.