Skip to content
Open
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
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
"version": "1.0.0",
"author": "Instabug Team <[email protected]>",
"dependencies": {
"gatsby": "^2.0.53",
"gatsby-cli": "^2.4.8",
"gatsby-image": "^2.0.20",
"gatsby-plugin-manifest": "^2.0.9",
"gatsby-plugin-offline": "^2.0.16",
"gatsby-plugin-react-helmet": "^3.0.2",
"gatsby-plugin-sharp": "^2.0.12",
"gatsby-remark-prismjs": "^3.1.4",
"gatsby-source-filesystem": "^2.0.8",
"gatsby-transformer-remark": "^2.1.17",
"gatsby-transformer-sharp": "^2.1.8",
"gatsby": "^3.1.2",
"gatsby-cli": "^3.1.0",
"gatsby-image": "^3.1.0",
"gatsby-plugin-manifest": "^3.1.0",
"gatsby-plugin-offline": "^4.1.0",
"gatsby-plugin-react-helmet": "^4.1.0",
"gatsby-plugin-sharp": "^3.1.2",
"gatsby-remark-prismjs": "^4.1.0",
"gatsby-source-filesystem": "^3.1.0",
"gatsby-transformer-remark": "^3.1.0",
"gatsby-transformer-sharp": "^3.1.0",
"prismjs": "^1.15.0",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-helmet": "^5.2.0",
"spark": "git+ssh://[email protected]/Instabug/sparkui.git#feature/spark-rebranding"
"spark": "git+ssh://[email protected]/Instabug/sparkui.git"
},
"keywords": [
"gatsby"
Expand All @@ -34,10 +34,10 @@
"deploy": "gatsby build && gh-pages -d public -b deploys"
},
"devDependencies": {
"gatsby-plugin-sass": "^2.0.4",
"gatsby-plugin-sass": "^4.1.0",
"gh-pages": "^2.0.1",
"node-sass": "^4.10.0",
"prettier": "^1.15.2"
"node-sass": "^5.0.0",
"prettier": "^2.2.1"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion public/index.html

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ const Layout = ({ children }) => (
siteMetadata {
title
}
},
siteBuildMetadata {
buildTime,
buildTimeAgo: buildTime(fromNow: true)
}
}
`}
Expand All @@ -34,7 +38,7 @@ const Layout = ({ children }) => (
<div className="spark-docs-container">
<Header siteTitle={data.site.siteMetadata.title} />
<div className="spark-docs-layout">
<Sidebar/>
<Sidebar buildInfo={data.siteBuildMetadata} />
<div className="spark-docs-details-body">
{children}
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/components/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { StaticQuery, Link, graphql } from 'gatsby'
// import PropTypes from 'prop-types'
// import './layout.css'
const Sidebar = ({ data }) => (
const Sidebar = ({ data, buildInfo }) => (
<StaticQuery
query={graphql`
query {
Expand All @@ -26,6 +26,9 @@ const Sidebar = ({ data }) => (
render={ data => (
<div className="spark-docs-sidebar">
<PagesList pages={data.allMarkdownRemark.edges} />
<div class="u-color--grey-light">
built at <span class="" title={buildInfo.buildTime}>{buildInfo.buildTimeAgo}</span>
</div>
</div>
)
}
Expand Down
Loading