Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 18233edf authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

Fix PDF and version links

parent 78d7fc91
Branches
Tags
1 merge request!22Fix PDF and version links
......@@ -8,13 +8,13 @@
<div class="rst-other-versions">
<dl>
<dt>{{ _('Document Release Versions') }}</dt>
{% for slug, url in versions %}
<dd><a href="{{ url }}">{{ slug }}</a></dd>
{% endfor %}
<dd><a class="reference internal" href="">latest</a></dd>
<dd><a class="reference internal" href="0.0.7">0.0.7</a></dd>
<dd><a class="reference internal" href="0.1.0">0.1.0</a></dd>
</dl>
<dl>
<dt>{{ _('Downloads') }}</dt>
<dd><a href="{{ html_baseurl }}/beagleboard-docs.pdf">PDF</a></dd>
<dd><a class="reference internal" href="beagleboard-docs.pdf">PDF</a></dd>
</dl>
<dl>
<dt>{{ _('BeagleBoard.org Links') }}</dt>
......
......@@ -55,6 +55,7 @@ html_last_updated_fmt = "%b %d, %Y"
html_domain_indices = False
html_split_index = True
html_show_sourcelink = False
html_baseurl = 'docs.beagleboard.io'
# parse version from 'VERSION' file
with open(BBDOCS_BASE / "VERSION") as f:
......@@ -89,15 +90,15 @@ docs_title = "Docs / {}".format(version if is_release else "Latest")
html_context = {
"display_gitlab": True,
"gitlab_host": "git.beagleboard.org",
"gitlab_user": "docs",
"gitlab_repo": "docs.beagleboard.io",
"gitlab_version": "main",
"conf_py_path": "/",
"show_license": True,
"docs_title": docs_title,
"is_release": is_release,
"current_version": version,
"versions": (
("latest", "/"),
("0.0.7", "/0.0.7/"),
("0.1.0", "/0.1.0/"),
)
"current_version": version
}
# -- Options for LaTeX output ---------------------------------------------
......
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