Skip to content

Commit

Permalink
add remark-toc to auto-generate table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryThePenguin committed Apr 25, 2019
1 parent 3ef1927 commit 2b8687a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/discussions/mutation-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Mutation Lifecycle

# Mutation Lifecycle

<!-- TODO auto-generated TOC -->
## Table of Contents

- [Mutation Phases](#mutation-phases)
- [Access Control Phase](#access-control-phase)
Expand All @@ -23,6 +23,8 @@ title: Mutation Lifecycle
- [6. Resolve backlinks \[create/update/delete\]](#6-resolve-backlinks-createupdatedelete)
- [7. After change \[create/update/delete\]](#7-after-change-createupdatedelete)

## Introduction

The Keystone GraphQL API implements a CRUD API with `create`, `update` and `delete` mutations for each `List`.
Each of these mutations can be applied to either a single item or many items at once.

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@
"ruleSpaces": false
},
"plugins": [
"remark-frontmatter"
"remark-frontmatter",
"remark-toc"
]
},
"bolt": {
Expand Down Expand Up @@ -339,6 +340,7 @@
"prettier": "^1.17.0",
"remark-cli": "^6.0.1",
"remark-frontmatter": "^1.3.1",
"remark-toc": "^5.1.1",
"start-server-and-test": "^1.7.13",
"supertest-light": "^1.0.2",
"terminal-link": "^1.3.0",
Expand Down
36 changes: 35 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9625,6 +9625,13 @@ [email protected]:
resolved "https://registry.yarnpkg.com/github-from-package/-/github-from-package-0.0.0.tgz#97fb5d96bfde8973313f20e8288ef9a167fa64ce"
integrity sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=

github-slugger@^1.0.0, github-slugger@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/github-slugger/-/github-slugger-1.2.1.tgz#47e904e70bf2dccd0014748142d31126cfd49508"
integrity sha512-SsZUjg/P03KPzQBt7OxJPasGw6NRO5uOgiZ5RGXVud5iSIZ0eNZeNp5rTwCxtavrRUa/A77j8mePVc5lEvk0KQ==
dependencies:
emoji-regex ">=6.0.0 <=6.1.1"

github-slugger@^1.1.1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/github-slugger/-/github-slugger-1.2.0.tgz#8ada3286fd046d8951c3c952a8d7854cfd90fd9a"
Expand Down Expand Up @@ -13573,7 +13580,7 @@ mdast-util-to-nlcst@^3.2.0:
unist-util-position "^3.0.0"
vfile-location "^2.0.0"

mdast-util-to-string@^1.0.2, mdast-util-to-string@^1.0.4, mdast-util-to-string@^1.0.5:
mdast-util-to-string@^1.0.0, mdast-util-to-string@^1.0.2, mdast-util-to-string@^1.0.4, mdast-util-to-string@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-1.0.5.tgz#3552b05428af22ceda34f156afe62ec8e6d731ca"
integrity sha512-2qLt/DEOo5F6nc2VFScQiHPzQ0XXcabquRJxKMhKte8nt42o08HUxNDPk7tt0YPxnWjAT11I1SYi0X0iPnfI5A==
Expand All @@ -13587,6 +13594,16 @@ mdast-util-toc@^2.0.1:
mdast-util-to-string "^1.0.2"
unist-util-visit "^1.1.0"

mdast-util-toc@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/mdast-util-toc/-/mdast-util-toc-3.1.0.tgz#395eeb877f067f9d2165d990d77c7eea6f740934"
integrity sha512-Za0hqL1PqWrvxGtA/3NH9D5nhGAUS9grMM4obEAz5+zsk1RIw/vWUchkaoDLNdrwk05A0CSC5eEXng36/1qE5w==
dependencies:
github-slugger "^1.2.1"
mdast-util-to-string "^1.0.5"
unist-util-is "^2.1.2"
unist-util-visit "^1.1.0"

mdn-data@~1.1.0:
version "1.1.4"
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-1.1.4.tgz#50b5d4ffc4575276573c4eedb8780812a8419f01"
Expand Down Expand Up @@ -18262,6 +18279,15 @@ remark-retext@^3.1.0:
dependencies:
mdast-util-to-nlcst "^3.2.0"

remark-slug@^5.0.0:
version "5.1.1"
resolved "https://registry.yarnpkg.com/remark-slug/-/remark-slug-5.1.1.tgz#eb5dba0cf779487ef7ddf65c735ba4d4ca017542"
integrity sha512-r591rdoDPJkSSAVvEaTVUkqbMp7c7AyZfif14V0Dp66GQkOHzaPAS6wyhawSbqpS0ZdTnfJS+TltFoxzi6bdIA==
dependencies:
github-slugger "^1.0.0"
mdast-util-to-string "^1.0.0"
unist-util-visit "^1.0.0"

remark-squeeze-paragraphs@^3.0.1:
version "3.0.3"
resolved "https://registry.yarnpkg.com/remark-squeeze-paragraphs/-/remark-squeeze-paragraphs-3.0.3.tgz#299d8db7d44008c9ae240dbf6d1f55b8b0f924ce"
Expand Down Expand Up @@ -18309,6 +18335,14 @@ remark-stringify@^6.0.0:
unherit "^1.0.4"
xtend "^4.0.1"

remark-toc@^5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/remark-toc/-/remark-toc-5.1.1.tgz#8c229d6f834cdb43fde6685e2d43248d3fc82d78"
integrity sha512-vCPW4YOsm2CfyuScdktM9KDnJXVHJsd/ZeRtst+dnBU3B3KKvt8bc+bs5syJjyptAHfqo7H+5Uhz+2blWBfwow==
dependencies:
mdast-util-toc "^3.0.0"
remark-slug "^5.0.0"

remark@^10.0.0:
version "10.0.1"
resolved "https://registry.yarnpkg.com/remark/-/remark-10.0.1.tgz#3058076dc41781bf505d8978c291485fe47667df"
Expand Down

0 comments on commit 2b8687a

Please sign in to comment.