Skip to content

Commit

Permalink
Set up magic comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mbirkegaard committed Nov 10, 2023
1 parent 903ac51 commit 2203c6c
Show file tree
Hide file tree
Showing 4 changed files with 2,327 additions and 1,632 deletions.
27 changes: 27 additions & 0 deletions rescript-relay-documentation/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,33 @@ module.exports = {
projectName: "rescript-relay", // Usually your repo name.
themeConfig: {
prism: {
magicComments: [
{
className: "code-change",
line: "change-line",
block: {start: "change", end: "end-change"},
},
{
className: "color1",
line: "color1",
},
{
className: "color2",
line: "color2",
},
{
className: "color3",
line: "color3",
},
{
className: "color4",
line: "color4",
},
{
className: "color5",
line: "color5",
},
],
additionalLanguages: ["rescript"],
},
navbar: {
Expand Down
4 changes: 2 additions & 2 deletions rescript-relay-documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"deploy": "docusaurus deploy"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.18",
"@docusaurus/preset-classic": "2.0.0-beta.18",
"@docusaurus/core": "2.1.0",
"@docusaurus/preset-classic": "2.1.0",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1",
Expand Down
24 changes: 24 additions & 0 deletions rescript-relay-documentation/src/css/custom.css

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

Loading

0 comments on commit 2203c6c

Please sign in to comment.