From 2e0a84fe61996fe7c031dfa391d0fa954beea36e Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Mon, 25 Nov 2019 15:55:32 +1300 Subject: [PATCH] UX improvements per Paul design --- gatsby-browser.js | 5 -- gatsby-config.js | 2 +- src/components/Header.tsx | 9 +-- src/components/SearchBox.tsx | 13 +++- src/theme/assets/scss/ss-docs.scss | 111 +++++++++++++++++++++-------- 5 files changed, 100 insertions(+), 40 deletions(-) diff --git a/gatsby-browser.js b/gatsby-browser.js index 9306848..1ed0245 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -2,14 +2,9 @@ require("prismjs/themes/prism-okaidia.css"); require("./src/theme/assets/scss/theme.scss"); require('./src/theme/assets/fontawesome/css/all.css'); require('./src/theme/assets/search/algolia.css'); -const smoothScroll = require('smooth-scroll'); const Layout = require('./src/components/Layout').default; const React = require('react'); -if (typeof window !== "undefined") { - smoothScroll('a[href*="#"]') - } - exports.wrapPageElement = ({ element, props }) => { return {element} }; diff --git a/gatsby-config.js b/gatsby-config.js index 3528239..29b3256 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -16,7 +16,7 @@ module.exports = { resolve: `gatsby-source-git`, options: { name: `4`, - remote: `/Users/acarlino/Sites/gatsby-docs-4`, + remote: `https://github.com/silverstripe/silverstripe-framework.git`, branch: `4`, patterns: `docs/en/**` } diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 88c2e7f..8d650e0 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -36,10 +36,11 @@ const Header: StatelessComponent = ({ handleSidebarToggle }): React
- - Silverstripe CMS documentation - Documentation + + Silverstripe CMS Documentation + + Documentation
@@ -50,7 +51,7 @@ const Header: StatelessComponent = ({ handleSidebarToggle }): React
-