summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra McCann <samccann@redhat.com>2020-09-24 15:07:53 -0400
committerGitHub <noreply@github.com>2020-09-24 14:07:53 -0500
commit29535446161513273317b4f39bfe3de4ad70f6cd (patch)
tree8c1c941b2fc0b49cec602a9be4854b60caa41f71
parent67cd27400ab4838a41749cf46efbf97a082cdd40 (diff)
downloadansible-29535446161513273317b4f39bfe3de4ad70f6cd.tar.gz
[backport][2.8] remove github link from plugins (#70951) (#71915)
* remove github link from plugins (#70951) (cherry picked from commit e28b20d72930ad8c0a359de05e05726090165fda) * remove cli section
-rw-r--r--docs/docsite/_themes/sphinx_rtd_theme/breadcrumbs.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/docsite/_themes/sphinx_rtd_theme/breadcrumbs.html b/docs/docsite/_themes/sphinx_rtd_theme/breadcrumbs.html
index 7dcdeb34b2..2a537d4078 100644
--- a/docs/docsite/_themes/sphinx_rtd_theme/breadcrumbs.html
+++ b/docs/docsite/_themes/sphinx_rtd_theme/breadcrumbs.html
@@ -44,8 +44,14 @@
<a href="{{ meta['github_url'] }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
{% else %}
<!-- Ansible-specific additions for modules etc -->
- {% if pagename.endswith('_module') %}
- <a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode|default("blob") }}/{{ github_module_version }}{{ meta.get('source', '') }}?description=%23%23%23%23%23%20SUMMARY%0A%3C!---%20Your%20description%20here%20--%3E%0A%0A%0A%23%23%23%23%23%20ISSUE%20TYPE%0A-%20Docs%20Pull%20Request%0A%0A%2Blabel:%20docsite_pr" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
+ {% if (pagename.endswith('_module')) or (pagename.endswith('_become'))
+ or (pagename.endswith('_cache')) or (pagename.endswith('_callback'))
+ or (pagename.endswith('_connection')) or (pagename.endswith('_inventory'))
+ or (pagename.endswith('_lookup')) or (pagename.endswith('_shell'))
+ or (pagename.endswith('_strategy')) or (pagename.endswith('_vars'))
+ %}
+ <!-- <a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode|default("blob") }}/{{ github_module_version }}{{ meta.get('source', '') }}?description=%23%23%23%23%23%20SUMMARY%0A%3C!---%20Your%20description%20here%20--%3E%0A%0A%0A%23%23%23%23%23%20ISSUE%20TYPE%0A-%20Docs%20Pull%20Request%0A%0A%2Blabel:%20docsite_pr" class="fa fa-github"> {{ _('Edit on GitHub') }}</a> -->
+ <br>
{% elif (not 'list_of' in pagename) and (not 'category' in pagename) %}
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode|default("blob") }}/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ suffix }}?description=%23%23%23%23%23%20SUMMARY%0A%3C!---%20Your%20description%20here%20--%3E%0A%0A%0A%23%23%23%23%23%20ISSUE%20TYPE%0A-%20Docs%20Pull%20Request%0A%0A%2Blabel:%20docsite_pr" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
{% endif %}