Skip to content

Commit 4c8dfe3

Browse files
committed
enable sidebar edit links
1 parent a0367d7 commit 4c8dfe3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permalink: /:categories/:title/
1010

1111
exclude: ['js', '_site', '*.sketch']
1212
# Build settings
13-
os_links: false
13+
os_links: true
1414
markdown: kramdown
1515
highlighter: rouge
1616
defaults:

src/_includes/sidebar/edit-tools.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{% if site.os_links %}
22
<div>
3-
<a href="https://github.com/segmentio/segment-docs/edit/master/src/{{ page.path }}" class="button edit flex no-icon" target="_blank">
3+
<a href="{{site.env.REPOSITORY_URL}}/edit/master/src/{{ page.path }}" class="button edit flex no-icon" target="_blank">
44
<span class="button__icon">{% include icons/symbols/edit.svg %}</span>
55

66
<span class="button__text">Edit this page</span>
77
</a>
88

9-
<a href="https://github.com/segmentio/segment-docs/issues/new?body=File:%20[{{ page.path }}](https://segment.com/docs/)" class="button edit no-icon" target="_blank">
9+
<a href="{{site.env.REPOSITORY_URL}}/issues/new/choose?body=File:%20[{{ page.path }}](https://segment.com/docs/)" class="button edit no-icon" target="_blank">
1010
<span class="button__icon">{% include icons/symbols/plus.svg %}</span>
1111

1212
<span class="button__text">Request docs change</span>

0 commit comments

Comments
 (0)