Skip to content

Commit fdd6088

Browse files
author
Alban
authored
Merge pull request linode#2 from linode/DLC-137
DLC-137
2 parents 6426ea0 + 9b4c30d commit fdd6088

File tree

6 files changed

+1691
-48
lines changed

6 files changed

+1691
-48
lines changed

gatsby-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
]
2727
},
2828
plugins: [
29+
`gatsby-plugin-netlify-cms`,
2930
`gatsby-transformer-remark`,
3031
{
3132
resolve: `gatsby-source-filesystem`,

gatsby-node.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const JsonSchemaRefParser = require("json-schema-ref-parser");
22
const path = require("path");
33
const _ = require("lodash");
4-
// const axios = require("axios");
5-
// https://developers.linode.com/api/docs/v4/openapi.yaml
64

75
const specs = require("./src/data/spec.json");
86
const crypto = require("crypto");

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"gatsby": "^2.0.115",
1212
"gatsby-image": "^2.0.29",
1313
"gatsby-plugin-manifest": "^2.0.17",
14+
"gatsby-plugin-netlify-cms": "^4.0.1",
1415
"gatsby-plugin-offline": "^2.0.22",
1516
"gatsby-plugin-postcss": "^2.0.5",
1617
"gatsby-plugin-purgecss": "^3.1.0",
@@ -22,6 +23,7 @@
2223
"gatsby-transformer-remark": "^2.1.1-rc.5",
2324
"gatsby-transformer-sharp": "^2.1.13",
2425
"json-schema-ref-parser": "^6.1.0",
26+
"netlify-cms-app": "^2.9.1",
2527
"postcss-easy-import": "^3.0.0",
2628
"prop-types": "^15.6.2",
2729
"react": "^16.7.0",

static/admin/config.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

static/assets/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)