Skip to content
Snippets Groups Projects
Commit 72e08ca0 authored by Gururaj Shetty's avatar Gururaj Shetty
Browse files

Edit botton for all source file. Fixes Issue #30


Signed-off-by: default avatarshettygururaj <gururaj.shetty@huawei.com>
parent 95a60910
No related branches found
No related tags found
No related merge requests found
{%- extends "sphinx_rtd_theme/breadcrumbs.html" %}
{% block breadcrumbs_aside %}
{% if display_gitlab_local %}
<li class="wy-breadcrumbs-aside">
{% if hasdoc(pagename) and pagename != "search" and pagename != "genindex" %}
<a href="https://{{ gitlab_local_host|default("gitlab.com") }}/{{ gitlab_local_repo }}/{{ theme_vcs_pageview_mode|default("blob") }}/{{ gitlab_local_version }}{{ conf_py_path }}{{ pagename }}{{ suffix }}" class="fa fa-gitlab"> {{ _('Edit on GitLab') }}</a>
{% endif %}
</li>
{% endif %}
{% endblock %}
\ No newline at end of file
...@@ -54,7 +54,15 @@ exclude_patterns = [] ...@@ -54,7 +54,15 @@ exclude_patterns = []
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
# #
html_theme = 'sphinx_rtd_theme' html_theme = "sphinx_rtd_theme"
html_context = {
"gitlab_local_host": "git.ostc-eu.org",
"display_gitlab_local": True, # Integrate Gitlab
"gitlab_local_repo": "OSTC/OHOS/docs", # Repo name
"gitlab_local_version": "master", # Version
"conf_py_path": "/", # Path in the checkout to the docs root
}
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files, # relative to this directory. They are copied after the builtin static files,
......
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