Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ For more information about contributing, see Contributing.
- [Style Guide](#)
- [Developer Guide](#)

## License
## License

1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permalink: /:categories/:title/

exclude: ['js', '_site', '*.sketch']
# Build settings
os_links: false
markdown: kramdown
highlighter: rouge
defaults:
Expand Down
5 changes: 5 additions & 0 deletions src/_includes/icons/symbols/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/_includes/icons/symbols/plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/_includes/sidebar/edit-tools.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% if site.os_links %}
<div>
<a href="https://github.com/segmentio/segment-docs/edit/master/src/{{ page.path }}" class="button edit flex no-icon" target="_blank">
<span class="button__icon">{% include icons/symbols/edit.svg %}</span>

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

<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">
<span class="button__icon">{% include icons/symbols/plus.svg %}</span>

<span class="button__text">Request docs change</span>
</a>
</div>
{% endif %}
3 changes: 3 additions & 0 deletions src/_layouts/integration.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ <h1 id="{{ page.title | slugify }}">

<div class="docs__sidebar page__sidebar">
<div class="sidebar sidebar--sticky sidebar--scroll">
{% unless page.no-edit %}
{% include sidebar/edit-tools.html %}
{% endunless %}
{%- unless page.hide_toc -%}
{% if page.integration_type == 'destination' %}
{% if page.hide-boilerplate == true %}
Expand Down
3 changes: 3 additions & 0 deletions src/_layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ <h1 id="{{ page.title | slugify }}">
{%- unless page.hide-sidebar -%}
<div class="docs__sidebar page__sidebar">
<div class="sidebar sidebar--sticky sidebar--scroll">
{% unless page.no-edit %}
{% include sidebar/edit-tools.html %}
{% endunless %}
{%- unless page.hide_toc -%}
<div data-anchors-indicator data-sections="h2" data-active-class="menu-side__link--active">
{% include_cached sidebar/menu-side.html class="menu-side" anchor_class="menu-side__link" html=content h_min=2 h_max=2 %}
Expand Down
12 changes: 9 additions & 3 deletions src/_sass/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
border-radius: 4px;
cursor: pointer;

@include breakpoint(medium up) {
@include breakpoint(medium up) {
padding: 8px 16px;
}

Expand All @@ -23,8 +23,8 @@

&__icon {
vertical-align: middle;
& > svg {

&>svg {
max-width: 12px;
max-height: 12px;
}
Expand All @@ -34,3 +34,9 @@
width: 100%;
}
}

.edit {
padding: 8px 0px;
text-align: left;
color: #8f95b2;
}