From 75d70a0ba828ecee9ef67788f4f95afe6d661ceb Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Thu, 12 Sep 2024 12:16:58 +0530 Subject: [PATCH] Extract markup for `Improve this page` into an inclusion (#9675) Merge pull request 9675 --- docs/_config.yml | 1 + docs/_includes/improve_doc_link.html | 5 +++++ docs/_layouts/docs.html | 5 +---- docs/_layouts/page.html | 4 +--- docs/_layouts/step.html | 4 +--- docs/_layouts/tutorials.html | 5 +---- 6 files changed, 10 insertions(+), 14 deletions(-) create mode 100644 docs/_includes/improve_doc_link.html diff --git a/docs/_config.yml b/docs/_config.yml index 68e22caf..826c03d7 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -4,6 +4,7 @@ name: Jekyll • Simple, blog-aware, static sites description: Transform your plain text into static websites and blogs url: https://jekyllrb.com repository: https://github.com/jekyll/jekyll +site_branch: master timezone: America/Los_Angeles twitter: username: jekyllrb diff --git a/docs/_includes/improve_doc_link.html b/docs/_includes/improve_doc_link.html new file mode 100644 index 00000000..db7f707d --- /dev/null +++ b/docs/_includes/improve_doc_link.html @@ -0,0 +1,5 @@ +
+ +  Improve this page + +
diff --git a/docs/_layouts/docs.html b/docs/_layouts/docs.html index f52e7831..ad52bcc4 100644 --- a/docs/_layouts/docs.html +++ b/docs/_layouts/docs.html @@ -7,10 +7,7 @@ layout: default {% include docs_contents_mobile.html -%}
diff --git a/docs/_layouts/page.html b/docs/_layouts/page.html index caa61864..6e7541f5 100644 --- a/docs/_layouts/page.html +++ b/docs/_layouts/page.html @@ -7,9 +7,7 @@ layout: default
{%- if page.permalink contains "resources" %} - + {% include improve_doc_link.html %} {% endif -%}

{{ page.title }}

{{ content }} diff --git a/docs/_layouts/step.html b/docs/_layouts/step.html index 3bf1101c..a9f551a7 100644 --- a/docs/_layouts/step.html +++ b/docs/_layouts/step.html @@ -6,9 +6,7 @@ layout: default {% include docs_contents_mobile.html -%}
- + {% include improve_doc_link.html %}

Step by Step Tutorial

{{ page.position }}. {{ page.title }}

{{ content }} diff --git a/docs/_layouts/tutorials.html b/docs/_layouts/tutorials.html index de2286d2..b73fd326 100644 --- a/docs/_layouts/tutorials.html +++ b/docs/_layouts/tutorials.html @@ -8,10 +8,7 @@ layout: default
- + {% include improve_doc_link.html %}

{{ page.title }}

{% assign author = page.author %} {% if author %}