Skip to content

Xav/productionize docs #334

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 5 commits into from
Nov 25, 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
2 changes: 1 addition & 1 deletion js/anchors-indicator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default () => {
}

if (currentID) {
currentItem = component.querySelector(`a[href='#${currentID}']`)
currentItem = component.querySelector(`a[href='${document.location.pathname}#${currentID}']`)
}

if (window.innerWidth >= 768) {
Expand Down
2 changes: 0 additions & 2 deletions src/_data/sidenav/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ sections:
section:
- path: /guides
title: Getting Started with Segment
- path: /guides/how-does-segment-work
title: How does Segment work?
- path: /guides/filtering-data
title: Filtering your Segment Data
- path: /guides/duplicate-data
Expand Down
2 changes: 1 addition & 1 deletion src/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
<script>
window.analytics = null
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t,e){var n=document.createElement("script");n.type="text/javascript";n.async=!0;n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(n,a);analytics._loadOptions=e};analytics.SNIPPET_VERSION="4.1.0";
analytics.page();
analytics.page('{{page.title}}');
// analytics.identify();
}}();
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/_sass/components/_search.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.search {
display: none;
display: none !important;

@include breakpoint(large up) {
display: block;
Expand Down