Skip to content

fix trailing slashes in links, and delete CI #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2019
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
35 changes: 0 additions & 35 deletions .circleci/config.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .run/segment-docs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/_includes/base-top.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1 class="Navigation-item">
<!-- TODO: old topnav "responsive" hamburger - should we keep this? -->
<div class="Navigation-right">
<div class="Navigation-LinkList Navigation-item">
<a href="/contact">Contact Support</a>
<a href="/contact/">Contact Support</a>
</div>
<a open-sidebar href="#" class="Navigation-Burger Navigation-item"></a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/_includes/data-collection-footer.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div id="data-collection">
<p>© <span id="year"></span>, Segment.io, Inc.</p>
<a class="DataCollection-link" href="#" id="open-consent-manager">Website Data Collection Preferences</button>
<a href="{{ "/legal/privacy" | relative_url}}" class="DataCollection-link">Privacy</a>
<a href="{{ "/legal/terms" | relative_url}}" class="DataCollection-link">Terms</a>
<a class="DataCollection-link" href="/#" id="open-consent-manager">Website Data Collection Preferences</button>
<a href="{{ "/legal/privacy" | relative_url}}/" class="DataCollection-link">Privacy</a>
<a href="{{ "/legal/terms" | relative_url}}/" class="DataCollection-link">Terms</a>
<script>
var d = new Date().getFullYear();
document.getElementById("year").innerHTML = d;
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% assign url = url | replace: "app", "segment-app" %}
{% endif %}

<a class="block-grid-item" href="{{url | relative_path }}">
<a class="block-grid-item" href="{{url | relative_path }}/">
<div class="logo">
<img src="{{site.baseurl}}/assets/icons/home/{{ category.icon }}" />
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/_includes/sidenav/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% for item in item.section %}
{% if item.path %}
<li>
<a href="{{site.baseurl}}{{ item.path }}">{{ item.title }}</a>
<a href="{{site.baseurl}}{{ item.path }}/">{{ item.title }}</a>
</li>
{% endif %}
{% if item.section_title %}
Expand All @@ -25,7 +25,7 @@
<ul class="l-sidenav-subnav">
{% for subsection in item.section %}
<li>
<a href="{{ site.baseurl }}{{ subsection.path }}">{{ subsection.title }}</a>
<a href="{{ site.baseurl }}{{ subsection.path }}/">{{ subsection.title }}</a>
</li>
{% endfor %}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/sidenav/destinations.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% for destination in category.items %}
{% assign doc_path = destination.name | replace: "catalog", "connections" %}
<li>
<a href="{{doc_path | relative_url }}">
<a href="{{doc_path | relative_url }}/">
{{destination.display_name}}
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/sidenav/glossary.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% assign item = site.data.glossary %}
{% for item in site.data.glossary %}
<li>
<a href="{{site.baseurl}}/glossary#{{ item | first | downcase | replace: ' ', '-' }}">{{ item | first }}</a>
<a href="{{site.baseurl}}/glossary/#{{ item | first | downcase | replace: ' ', '-' }}">{{ item | first }}</a>
</li>
{% endfor %}
</ul>
2 changes: 1 addition & 1 deletion src/_includes/sidenav/legal.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% assign item = site.data.sidenav.legal.sections | first %}
{% for item in item.section %}
<li>
<a href="{{site.baseurl}}{{ item.path }}">{{ item.title }}</a>
<a href="{{site.baseurl}}{{ item.path }}/">{{ item.title }}</a>
</li>
{% endfor %}
</ul>
18 changes: 9 additions & 9 deletions src/_includes/sidenav/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{% for item in root_section.section %}
{% if item.path %}
<li>
<a href="{{site.baseurl}}{{ item.path }}">{{ item.title }}</a>
<a href="{{site.baseurl}}{{ item.path }}/">{{ item.title }}</a>
</li>
{% endif %}
{% if item.section_title %}
Expand All @@ -42,7 +42,7 @@
<ul class="l-sidenav-subnav">
{% for subsection in item.section %}
<li>
<a href="{{ site.baseurl }}{{ subsection.path }}">{{ subsection.title }}</a>
<a href="{{ site.baseurl }}{{ subsection.path }}/">{{ subsection.title }}</a>
</li>
{% endfor %}
</ul>
Expand All @@ -53,27 +53,27 @@
</li>
{% endfor %}
<li class="section">
<a href="{{site.baseurl}}/partners">
<a href="{{site.baseurl}}/partners/">
<img src="{{site.baseurl}}/assets/icons/nav/partners.svg"></img>
Partners
</a>
</li>
<li class="section">
<a href="{{site.baseurl}}/glossary">
<a href="{{site.baseurl}}/glossary/.">
<img src="{{site.baseurl}}/assets/icons/nav/partners.svg"></img>
Glossary
</a>
</li>
</ul>
<ul class="l-fixed-sidenav-section">
<li class="section">
<a href="{{site.baseurl}}/api">
<a href="{{site.baseurl}}/api/">
<img src="{{site.baseurl}}/assets/icons/nav/reference.svg"></img>
API Reference
</a>
</li>
<li class="section">
<a href="https://segment.com/help">
<a href="https://segment.com/help/">
<img src="{{site.baseurl}}/assets/icons/nav/help.svg"></img>
Help
</a>
Expand All @@ -88,17 +88,17 @@
</div>
<ul class="l-sidenav-subnav">
<li>
<a href="https://segment.com/recipes">
<a href="https://segment.com/recipes/">
Recipes
</a>
</li>
<li>
<a href="https://segment.com/university">
<a href="https://segment.com/university/">
University
</a>
</li>
<li>
<a href="https://segment.com/academy">
<a href="https://segment.com/academy/">
Academy
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/sidenav/partners.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% assign item = site.data.sidenav.partners.sections | first %}
{% for item in item.section %}
<li>
<a href="{{site.baseurl}}{{ item.path }}">{{ item.title }}</a>
<a href="{{site.baseurl}}{{ item.path }}/">{{ item.title }}</a>
</li>
{% endfor %}
</ul>