Skip to content

Commit

Permalink
Revert "Absorb @github-docs/frontmatter (github#17783)" (github#17793)
Browse files Browse the repository at this point in the history
This reverts commit 1e96c03.
  • Loading branch information
JasonEtco authored Feb 10, 2021
1 parent 1e96c03 commit 11baf43
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 314 deletions.
2 changes: 1 addition & 1 deletion lib/all-products.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const assert = require('assert')
const { difference } = require('lodash')
const yaml = require('js-yaml')
const contentDir = path.join(process.cwd(), 'content')
const frontmatter = require('./read-frontmatter')
const frontmatter = require('@github-docs/frontmatter')
const getApplicableVersions = require('./get-applicable-versions')
const removeFPTFromPath = require('./remove-fpt-from-path')

Expand Down
2 changes: 1 addition & 1 deletion lib/frontmatter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const parse = require('./read-frontmatter')
const parse = require('@github-docs/frontmatter')
const layoutNames = Object.keys(require('./layouts')).concat([false])
const semverRange = {
type: 'string',
Expand Down
75 changes: 0 additions & 75 deletions lib/read-frontmatter.js

This file was deleted.

19 changes: 14 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@babel/preset-env": "^7.12.7",
"@babel/preset-react": "^7.12.7",
"@babel/runtime": "^7.11.2",
"@github-docs/frontmatter": "^1.3.1",
"@graphql-inspector/core": "^2.3.0",
"@graphql-tools/load": "^6.2.5",
"@octokit/rest": "^16.38.1",
Expand Down Expand Up @@ -46,7 +47,7 @@
"flat": "^5.0.0",
"github-slugger": "^1.2.1",
"got": "^9.6.0",
"gray-matter": "^4.0.2",
"gray-matter": "^4.0.1",
"hast-util-from-parse5": "^6.0.1",
"hast-util-parse-selector": "^2.2.5",
"hast-util-select": "^4.0.2",
Expand All @@ -64,7 +65,7 @@
"js-yaml": "^3.14.0",
"linkinator": "^2.13.1",
"liquidjs": "^9.22.1",
"lodash": "^4.17.20",
"lodash": "^4.17.19",
"lunr": "^2.3.9",
"lunr-languages": "^1.4.0",
"mdast-util-from-markdown": "^0.8.4",
Expand Down
2 changes: 1 addition & 1 deletion script/content-migrations/update-developer-site-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const fs = require('fs')
const path = require('path')
const walk = require('walk-sync')
const frontmatter = require('../../lib/read-frontmatter')
const frontmatter = require('@github-docs/frontmatter')
const { loadPages, loadPageMap } = require('../../lib/pages')
const patterns = require('../../lib/patterns')
const loadRedirects = require('../../lib/redirects/precompile')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs')
const path = require('path')
const walk = require('walk-sync')
const program = require('commander')
const frontmatter = require('../../lib/read-frontmatter')
const frontmatter = require('@github-docs/frontmatter')
const contentPath = path.join(process.cwd(), 'content')
const dataPath = path.join(process.cwd(), 'data')
const translationsPath = path.join(process.cwd(), 'translations')
Expand Down
2 changes: 1 addition & 1 deletion script/reconcile-category-dirs-with-ids.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const fs = require('fs')
const path = require('path')
const frontmatter = require('../lib/read-frontmatter')
const frontmatter = require('@github-docs/frontmatter')
const walk = require('walk-sync')
const slash = require('slash')
const GithubSlugger = require('github-slugger')
Expand Down
2 changes: 1 addition & 1 deletion script/reconcile-filenames-with-ids.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const path = require('path')
const walk = require('walk-sync')
const slugger = new (require('github-slugger'))()
const entities = new (require('html-entities').XmlEntities)()
const frontmatter = require('../lib/read-frontmatter')
const frontmatter = require('@github-docs/frontmatter')
const { execSync } = require('child_process')
const addRedirectToFrontmatter = require('../lib/redirects/add-redirect-to-frontmatter')

Expand Down
2 changes: 1 addition & 1 deletion script/update-versioning-in-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const fs = require('fs')
const path = require('path')
const walk = require('walk-sync')
const frontmatter = require('../lib/read-frontmatter')
const frontmatter = require('@github-docs/frontmatter')
const contentPath = path.join(process.cwd(), 'content')
const dataPath = path.join(process.cwd(), 'data')

Expand Down
2 changes: 1 addition & 1 deletion tests/content/category-pages.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path')
const fs = require('fs')
const walk = require('walk-sync')
const matter = require('../../lib/read-frontmatter')
const matter = require('@github-docs/frontmatter')
const { zip, difference } = require('lodash')
const GithubSlugger = require('github-slugger')
const { XmlEntities } = require('html-entities')
Expand Down
2 changes: 1 addition & 1 deletion tests/content/liquid-line-breaks.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path')
const fs = require('fs')
const walk = require('walk-sync')
const matter = require('../../lib/read-frontmatter')
const matter = require('@github-docs/frontmatter')
const { zip } = require('lodash')
const yaml = require('js-yaml')

Expand Down
2 changes: 1 addition & 1 deletion tests/content/site-data-references.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { isEqual, get, uniqWith } = require('lodash')
const loadSiteData = require('../../lib/site-data')
const { loadPages } = require('../../lib/pages')
const getDataReferences = require('../../lib/get-liquid-data-references')
const frontmatter = require('../../lib/read-frontmatter')
const frontmatter = require('@github-docs/frontmatter')
const fs = require('fs').promises
const path = require('path')

Expand Down
Loading

0 comments on commit 11baf43

Please sign in to comment.