File tree Expand file tree Collapse file tree 6 files changed +1691
-48
lines changed Expand file tree Collapse file tree 6 files changed +1691
-48
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ module.exports = {
26
26
]
27
27
} ,
28
28
plugins : [
29
+ `gatsby-plugin-netlify-cms` ,
29
30
`gatsby-transformer-remark` ,
30
31
{
31
32
resolve : `gatsby-source-filesystem` ,
Original file line number Diff line number Diff line change 1
1
const JsonSchemaRefParser = require ( "json-schema-ref-parser" ) ;
2
2
const path = require ( "path" ) ;
3
3
const _ = require ( "lodash" ) ;
4
- // const axios = require("axios");
5
- // https://developers.linode.com/api/docs/v4/openapi.yaml
6
4
7
5
const specs = require ( "./src/data/spec.json" ) ;
8
6
const crypto = require ( "crypto" ) ;
Original file line number Diff line number Diff line change 11
11
"gatsby" : " ^2.0.115" ,
12
12
"gatsby-image" : " ^2.0.29" ,
13
13
"gatsby-plugin-manifest" : " ^2.0.17" ,
14
+ "gatsby-plugin-netlify-cms" : " ^4.0.1" ,
14
15
"gatsby-plugin-offline" : " ^2.0.22" ,
15
16
"gatsby-plugin-postcss" : " ^2.0.5" ,
16
17
"gatsby-plugin-purgecss" : " ^3.1.0" ,
22
23
"gatsby-transformer-remark" : " ^2.1.1-rc.5" ,
23
24
"gatsby-transformer-sharp" : " ^2.1.13" ,
24
25
"json-schema-ref-parser" : " ^6.1.0" ,
26
+ "netlify-cms-app" : " ^2.9.1" ,
25
27
"postcss-easy-import" : " ^3.0.0" ,
26
28
"prop-types" : " ^15.6.2" ,
27
29
"react" : " ^16.7.0" ,
Original file line number Diff line number Diff line change
1
+ backend :
2
+ name : github
3
+ branch : gastby # Branch to update (optional; defaults to master)
4
+ repo : linode/developers
5
+
6
+ publish_mode : editorial_workflow
7
+
8
+ media_folder : " static/assets" # Media files will be stored in the repo under static/images/uploads
9
+ public_folder : " /assets" # The src attribute for uploaded media will begin with /images/uploads
10
+
11
+ collections :
12
+
13
+ - name : " changelog" # Used in routes, e.g., /admin/collections/blog
14
+
15
+ label : " Changelogs" # Used in the UI
16
+
17
+ folder : " src/content/changelog/" # The path to the folder where the documents are stored
18
+
19
+ create : true # Allow users to create new documents in this collection
20
+
21
+ slug : " {{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
22
+
23
+ fields : # The fields for each document, usually in front matter
24
+
25
+ - label : " Title"
26
+ name : " title"
27
+ widget : " string"
28
+
29
+ - label : " Publish Date"
30
+ name : " date"
31
+ required : true
32
+ widget : " datetime"
33
+ default : " "
34
+
35
+ - label : " Changelog Type"
36
+ name : " changelog"
37
+ required : true
38
+ widget : list
39
+ field : {
40
+ label : " Category" ,
41
+ name : " category" ,
42
+ widget : " select" ,
43
+ options : ["API", "Cloud Manager"]
44
+ }
45
+
46
+ - label : " Content"
47
+ name : " body"
48
+ widget : " markdown"
49
+ required : true
You can’t perform that action at this time.
0 commit comments