Browse code

[backport][2.8] remove github link from plugins (#70951) (#71915)

* remove github link from plugins (#70951)

(cherry picked from commit e28b20d72930ad8c0a359de05e05726090165fda)

* remove cli section

Sandra McCann authored on 2020/09/25 04:07:53
Showing 1 changed files
... ...
@@ -44,8 +44,14 @@
44 44
               <a href="{{ meta['github_url'] }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
45 45
             {% else %}
46 46
               <!-- Ansible-specific additions for modules etc -->
47
-                {% if pagename.endswith('_module') %}
48
-                  <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>
47
+                {% if (pagename.endswith('_module')) or (pagename.endswith('_become'))
48
+                  or (pagename.endswith('_cache')) or (pagename.endswith('_callback'))
49
+                  or (pagename.endswith('_connection')) or (pagename.endswith('_inventory'))
50
+                  or (pagename.endswith('_lookup')) or (pagename.endswith('_shell'))
51
+                  or (pagename.endswith('_strategy')) or (pagename.endswith('_vars'))
52
+                 %}
53
+                <!--  <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> -->
54
+                  <br>
49 55
                 {% elif (not 'list_of' in pagename) and (not 'category' in pagename) %}
50 56
                   <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>
51 57
                 {% endif %}