From e8dcdf45142a7afc4faedce674c9b04a79582486 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Fri, 26 Mar 2021 17:23:56 +0000 Subject: [PATCH] Remove the "Edit on GitLab" button The final documentation is flattened from a symlink-based structure. Pointing from the documentation to the flatten structure will only add confusion. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- _templates/breadcrumbs.html | 14 -------------- conf.py | 8 -------- 2 files changed, 22 deletions(-) delete mode 100644 _templates/breadcrumbs.html diff --git a/_templates/breadcrumbs.html b/_templates/breadcrumbs.html deleted file mode 100644 index ba025b7..0000000 --- a/_templates/breadcrumbs.html +++ /dev/null @@ -1,14 +0,0 @@ -.. SPDX-FileCopyrightText: Huawei Inc. -.. -.. SPDX-License-Identifier: CC-BY-4.0 -{%- 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 diff --git a/conf.py b/conf.py index b3eb377..ce9c07a 100644 --- a/conf.py +++ b/conf.py @@ -59,14 +59,6 @@ exclude_patterns = ['README.rst', 'contributing/project.rst', 'experimental'] # 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, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -- GitLab