Skip to content

Commit 41e93c1

Browse files
author
sanscontext
committed
test update to the year+ old sidebar links PR
1 parent b9ebcbd commit 41e93c1

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

src/_includes/icons/symbols/edit.svg

Lines changed: 5 additions & 0 deletions
Loading

src/_includes/icons/symbols/plus.svg

Lines changed: 3 additions & 0 deletions
Loading

src/_includes/sidebar/edit-tools.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div>
2+
<a href="https://github.com/segmentio/segment-docs/edit/master/src/{{ page.name }}" class="button button-hollow button-hollow--small button-hollow--gray button--xsmall flex" target="_blank">
3+
<span class="button__icon">{% include icons/symbols/edit.svg %}</span>
4+
5+
<span class="button__text">Edit this page</span>
6+
</a>
7+
8+
<a href="https://github.com/segmentio/segment-docs/issues/new?body=File:%20[{{ page.name }}](https://segment.com/docs/)" class="button button-hollow button-hollow--small button-hollow--gray button--xsmall" target="_blank">
9+
<span class="button__icon">{% include icons/symbols/plus.svg %}</span>
10+
11+
<span class="button__text">Request docs change</span>
12+
</a>
13+
</div>

src/_layouts/integration.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ <h1 id="{{ page.title | slugify }}">
9090

9191
<div class="docs__sidebar page__sidebar">
9292
<div class="sidebar sidebar--sticky sidebar--scroll">
93+
{% unless page.no-edit %}
94+
{% include sidebar/edit-tools.html %}
95+
{% endunless %}
9396
{%- unless page.hide_toc -%}
9497
{% if page.integration_type == 'destination' %}
9598
{% if page.hide-boilerplate == true %}

src/_layouts/page.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ <h1 id="{{ page.title | slugify }}">
6565
{%- unless page.hide-sidebar -%}
6666
<div class="docs__sidebar page__sidebar">
6767
<div class="sidebar sidebar--sticky sidebar--scroll">
68+
{% unless page.no-edit %}
69+
{% include sidebar/edit-tools.html %}
70+
{% endunless %}
6871
{%- unless page.hide_toc -%}
6972
<div data-anchors-indicator data-sections="h2" data-active-class="menu-side__link--active">
7073
{% include_cached sidebar/menu-side.html class="menu-side" anchor_class="menu-side__link" html=content h_min=2 h_max=2 %}

0 commit comments

Comments
 (0)