Skip to content
Snippets Groups Projects
Commit 979eaa4e authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

doc.py: read gitlab token from file

parent 9b4b1215
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
from io import BytesIO
from os import environ
from pathlib import Path
from zipfile import ZipFile
......@@ -12,7 +11,7 @@ GITLAB = "https://gitlab.laas.fr"
RAINBOARD = "https://rainboard.laas.fr"
INDEX = DOC / "index.html"
HEAD = DOC / "index.head.html"
TOKEN = environ["GITLAB_TOKEN"]
TOKEN = (Path(__file__).parent / ".gitlab-token").read_text().strip()
if __name__ == "__main__":
with INDEX.open("w") as f, HEAD.open() as head:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment