From ee3653c412b003131def3e5d8d058dfdc2ebdb3b Mon Sep 17 00:00:00 2001 From: astridx Date: Sat, 26 Jun 2021 11:41:30 +0200 Subject: [PATCH] remove mbxMeta --- docs/components/api/search.js | 7 --- docs/components/page-shell.js | 103 ++++++++++++++++------------------ 2 files changed, 48 insertions(+), 62 deletions(-) diff --git a/docs/components/api/search.js b/docs/components/api/search.js index c8935c761..189e934ef 100644 --- a/docs/components/api/search.js +++ b/docs/components/api/search.js @@ -36,13 +36,6 @@ export default class ApiSearch extends React.Component { // perform these functions when the users selects a menu item handleResultClick = (selection) => { try { - // track click so we can guage usage of this feature - if (window && window.analytics) { - analytics.track('Searched GL JS API Reference', { - query: this.state.filter, - clicked: selection.path - }); - } // open selection in current window routeTo(selection.path); // clear search diff --git a/docs/components/page-shell.js b/docs/components/page-shell.js index 9d0539505..c0a8f3945 100644 --- a/docs/components/page-shell.js +++ b/docs/components/page-shell.js @@ -3,7 +3,6 @@ import PropTypes from 'prop-types'; // docs-page-shell import ReactPageShell from '../../vendor/docs-page-shell/react-page-shell.js'; // dr-ui components -import AnalyticsShell from '@mapbox/dr-ui/analytics-shell'; import PageLayout from '@mapbox/dr-ui/page-layout'; import { buildMeta, findParentPath } from '@mapbox/dr-ui/page-layout/utils'; // site variables @@ -13,7 +12,6 @@ import { withLocation } from '@mapbox/batfish/modules/with-location'; // dataSelectors import navigation from '@mapbox/batfish/data/navigation'; import filters from '@mapbox/batfish/data/filters'; -import mbxMeta from '@mapbox/batfish/data/mbx-meta'; import apiNavigation from '@mapbox/batfish/data/api-navigation'; import { styleSpecNavigation } from '../data/style-spec-navigation'; @@ -108,62 +106,57 @@ class PageShell extends React.Component { meta={meta} darkHeaderText={true} > - + + + + + ) + }) + } + }), + headings: this.renderCustomHeadings() + }} + constants={constants} + navigation={navigation} + filters={filters} + AppropriateImage={AppropriateImage} + // use custom sidebar for API and Style Spec since this data needs to be generated + customAside={this.renderCustomAside()} > - - - - - - ) - }) - } - }), - headings: this.renderCustomHeadings() - }} - constants={constants} - navigation={navigation} - filters={filters} - AppropriateImage={AppropriateImage} - // use custom sidebar for API and Style Spec since this data needs to be generated - customAside={this.renderCustomAside()} +
-
- {children} -
- - + {children} +
+
); }