Skip to content

Commit

Permalink
Update project specific config of docs
Browse files Browse the repository at this point in the history
Signed-off-by: guillemdb <guillem@fragile.tech>
  • Loading branch information
Guillemdb committed Sep 12, 2022
1 parent 6fe5eb7 commit 7c59dc1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,23 @@
#
import os
import sys

from pathlib import Path
from ruamel.yaml import load as yaml_load, Loader

sys.path.insert(0, os.path.abspath("../../"))
sys.setrecursionlimit(1500)

def read_template() -> dict:
"""Load the project configuration from the target path."""
template_path = Path(__file__).parent / "_static" / "mloq.yml"
with open(template_path, "r") as config:
params = yaml_load(config.read(), Loader)
return params

# -- Project information -----------------------------------------------------
project = "mloq"
copyright = "2020, FragileTech"
author = "FragileTech"
project = "MLOQ"
copyright = "2020-2022, FragileTech"
author = "Guillem Duran, Vadim Markovtsev"

# The short X.Y version
from mloq.version import __version__
Expand Down Expand Up @@ -134,7 +142,7 @@
"smartquotes",
"substitution",
]

# myst_substitutions = read_template()

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True

0 comments on commit 7c59dc1

Please sign in to comment.