Skip to content

Commit 6dc5458

Browse files
authoredJul 2, 2020
remove last updated field on docs pages (#25399)
1 parent ff4ce02 commit 6dc5458

File tree

4 files changed

+3
-44
lines changed

4 files changed

+3
-44
lines changed
 

‎www/gatsby-config.js

-6
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ module.exports = {
9191
},
9292
},
9393
},
94-
{
95-
resolve: `gatsby-transformer-gitinfo`,
96-
options: {
97-
include: /mdx?$/i,
98-
},
99-
},
10094
{
10195
resolve: `gatsby-source-npm-package-search`,
10296
options: {

‎www/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"gatsby-source-npm-package-search": "^2.3.8",
6666
"gatsby-transformer-csv": "^2.3.6",
6767
"gatsby-transformer-documentationjs": "^4.3.8",
68-
"gatsby-transformer-gitinfo": "^1.1.0",
6968
"gatsby-transformer-remark": "^2.8.20",
7069
"gatsby-transformer-screenshot": "^2.3.12",
7170
"gatsby-transformer-sharp": "^2.5.7",

‎www/src/components/markdown-page-footer.js

+3-25
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,17 @@ export default function MarkdownPageFooter(props) {
1212
sx={{
1313
display: `flex`,
1414
alignItems: `center`,
15-
justifyContent: `space-between`,
1615
mt: 9,
1716
}}
1817
>
1918
<a
2019
sx={{ variant: `links.muted` }}
21-
href={`https://github.com/gatsbyjs/gatsby/blob/master/${
22-
props.packagePage ? `packages` : `docs`
23-
}/${props.page ? props.page.parent.relativePath : ``}`}
20+
href={`https://github.com/gatsbyjs/gatsby/blob/master/docs/${
21+
props.page ? props.page.parent.relativePath : ``
22+
}`}
2423
>
2524
<EditIcon sx={{ mr: 2 }} /> Edit this page on GitHub
2625
</a>
27-
{props.page?.parent?.fields?.gitLogLatestDate && (
28-
<span sx={{ color: `textMuted`, fontSize: 1 }}>
29-
Last updated:{` `}
30-
<time dateTime={props.page.parent.fields.gitLogLatestDate}>
31-
{props.page.parent.fields.gitLogLatestDate}
32-
</time>
33-
</span>
34-
)}
3526
</div>
3627
)}
3728
</Fragment>
@@ -43,19 +34,6 @@ export const fragment = graphql`
4334
parent {
4435
... on File {
4536
relativePath
46-
fields {
47-
gitLogLatestDate(formatString: "MMMM D, YYYY")
48-
}
49-
}
50-
}
51-
}
52-
fragment MarkdownPageFooter on MarkdownRemark {
53-
parent {
54-
... on File {
55-
relativePath
56-
fields {
57-
gitLogLatestDate(formatString: "MMMM D, YYYY")
58-
}
5937
}
6038
}
6139
}

‎www/src/utils/node/docs.js

-12
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,6 @@ exports.createSchemaCustomization = ({ actions: { createTypes } }) => {
6161
locale: String
6262
}
6363
64-
type File implements Node {
65-
fields: FileFields
66-
}
67-
68-
# Added by gatsby-transformer-gitinfo
69-
# TODO add these back upstream
70-
type FileFields {
71-
gitLogLatestDate: Date @dateformat
72-
gitLogLatestAuthorName: String
73-
gitLogLatestAuthorEmail: String
74-
}
75-
7664
type GatsbyAPICall implements Node @derivedTypes @dontInfer {
7765
name: String
7866
file: String

0 commit comments

Comments
 (0)
Please sign in to comment.