diff --git a/.gitignore b/.gitignore index 5e5abe3a2d0aa5fba1fa247e1bd7cd272182167e..d73984bb4d4f0d487ad04d46713f12bd82d0a947 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ cscope.* .cache _build/* +build/* public/* .*project .settings diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dbccd63f0c29e10a6f0d0bd7ce635f31ac9ee54b..42ddb4ac04017d6a79314cc093b555622e01bb5a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,22 +4,21 @@ stages: - deploy before_script: + - apk update + - python -m pip install --upgrade pip - pip install -U sphinx - pip install sphinxcontrib-svg2pdfconverter - - pip install latexmk.py + - apk add librsvg - pip install sphinx_rtd_theme - apk add texlive-full + - apk add make pages: stage: deploy script: - - sphinx-build -b html . public - - sphinx-build -b latex . public - - cd ./public/ - - pwd - - uname -r - #- latexmk.py - #- cd .. + - sphinx-build -b html . public + - sphinx-build -M latexpdf . public + - mv public/latex/bbdocs.pdf public artifacts: paths: - public diff --git a/conf.py b/conf.py index 09d39b4f40bb63f445b70b74687f143775bca580..c358fe6f897fb762041730ef0410fff1f35fb4e9 100644 --- a/conf.py +++ b/conf.py @@ -54,14 +54,6 @@ html_domain_indices = False html_split_index = True html_show_sourcelink = True html_baseurl = 'https://docs.beagleboard.io/' -html_context = { - "display_gitlab": True, - "gitlab_host": "git.beagleboard.org", - "gitlab_user": "docs", - "gitlab_repo": "docs.beagleboard.io", - "gitlab_version": "main", - "conf_py_path": "/", -} # parse version from 'VERSION' file with open(BBDOCS_BASE / "VERSION") as f: @@ -86,21 +78,13 @@ with open(BBDOCS_BASE / "VERSION") as f: if extra: version += "-" + extra -release = version - -is_release = tags.has("release") -reference_prefix = "" - -if tags.has("publish"): - reference_prefix = f"/{version}" if is_release else "/latest" - -docs_title = "BBDocs / {}".format(version if is_release else "Latest") - html_context = { - "show_license": True, - "docs_title": docs_title, - "is_release": is_release, - "current_version": version, + "display_gitlab": True, + "gitlab_host": "git.beagleboard.org", + "gitlab_user": "docs", + "gitlab_repo": "docs.beagleboard.io", + "gitlab_version": "main", + "conf_py_path": "/", "versions": ( ("latest", "/"), )