Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
jastack committed Jan 30, 2018
1 parent 99da0b6 commit cb316ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 106 deletions.
11 changes: 6 additions & 5 deletions packages/gatsby-source-npm-package-search/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ exports.sourceNodes = async ({ boundActionCreators }, {keywords}) => {
hitsPerPage: 1000,
})

// Currently the gatsby-transformer-remark plugin
// has a hard time with markdown that includes
// images -> for now this filters out those packages

data.hits.forEach(hit => {
if (hit.readme.includes("![")){
return
Expand All @@ -51,14 +55,11 @@ exports.sourceNodes = async ({ boundActionCreators }, {keywords}) => {
delete hit._highlightResult
delete hit.versions

const modified = new Date(hit.modified)
const created = new Date(hit.created)
hit.modified = modified
hit.created = created

const node = {
...hit,
deprecated: `${hit.deprecated}`,
created: new Date(hit.created),
modified: new Date(hit.modified),
id: parentId,
parent: null,
children: [],
Expand Down
2 changes: 0 additions & 2 deletions www/src/templates/template-docs-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from "react"
import Helmet from "react-helmet"
import distanceInWords from 'date-fns/distance_in_words'

import MarkdownPageFooter from "../components/markdown-page-footer"
import { rhythm, scale } from "../utils/typography"
import presets from "../utils/presets"
import Container from "../components/container"
Expand Down Expand Up @@ -84,7 +83,6 @@ class DocsPackagesTemplate extends React.Component {
__html: html,
}}
/>
{/* <MarkdownPageFooter page={page} /> */}
</Container>
)
}
Expand Down
99 changes: 0 additions & 99 deletions www/src/templates/template-remote-packages.js

This file was deleted.

0 comments on commit cb316ca

Please sign in to comment.