more docs fixes

- be more verbose
- export necessary variable
parent dc9b8540
Pipeline #47825 failed with stages
in 27 minutes and 43 seconds
......@@ -51,11 +51,11 @@ docs:
before_script:
# install python
- apk add python3
- LSCSOFT_CONDA_DOCKER_IMAGE=${TAG}
- export LSCSOFT_CONDA_DOCKER_IMAGE="${TAG}"
- python3 -m pip install -r docs/requirements.txt
script:
- cd docs
- python3 -m sphinx -M html . ../build/sphinx
- python3 -m sphinx -M html -vv . ../build/sphinx
artifacts:
paths:
- build/sphinx/html
......
......@@ -193,12 +193,13 @@ def build_environment_list(_):
from utils import (find_environments, write_environment)
logger = logging.getLogger('environments')
logger.info("[env] creating environment pages")
for env in find_environments(path=Path.cwd().parent):
envfn = Path('environments')/(env.stem + '.rst')
with open(envfn, 'w') as envf:
write_environment(env, file=envf)
logger.info("created {0}".format(envfn))
logger.info("[env] created {0}".format(envfn))
# -- Setup --------------------------------------------------------------------
......
......@@ -11,6 +11,8 @@ from subprocess import check_output
import yaml
from sphinx.util import logging
from tabulate import tabulate
ANACONDA_CHANNELS = {
......@@ -24,6 +26,7 @@ DOCKER_IMAGE = os.getenv("LSCSOFT_CONDA_DOCKER_IMAGE", None)
def run_conda_command(cmd):
if DOCKER_IMAGE:
cmd = ["docker", "run", DOCKER_IMAGE, "ligo-py37"] + cmd
logging.info("[utils] $ {0}".format(" ".format(cmd)))
return check_output(cmd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment