Skip to content

Commit

Permalink
fix(apps/docsite): code blocks colorization (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpierre74 authored Jan 12, 2022
1 parent 0573764 commit f52f8c0
Show file tree
Hide file tree
Showing 3 changed files with 1,127 additions and 345 deletions.
13 changes: 10 additions & 3 deletions apps/docsite/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');

module.exports = {
title: 'Bedrock Streaming Forms',
tagline: 'I receive inputs, you receive forms',
Expand Down Expand Up @@ -74,6 +77,10 @@ module.exports = {
}
],
copyright: `Copyright © ${new Date().getFullYear()} BedrockStreaming, Inc. Built with Docusaurus.`
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme
}
},
presets: [
Expand All @@ -90,7 +97,7 @@ module.exports = {
}
}
]
],
themes: ['@docusaurus/theme-live-codeblock']
]

// themes: ['@docusaurus/theme-live-codeblock']
};
// https://github.com/nielsen-oss/docs/blob/master/.github/workflows/documentation.yml
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
"private": true,
"resolutions": {
"glob-parent": "5.1.2",
"immer": "9.0.6",
"terser": "4.8.0",
"trim": "1.0.1"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.14",
"@docusaurus/preset-classic": "2.0.0-beta.14",
"@docusaurus/theme-live-codeblock": "2.0.0-beta.14",
"@docusaurus/preset-classic": "2.0.0-beta.759298296",
"@emotion/react": "11.7.0",
"@emotion/styled": "11.6.0",
"@mdx-js/react": "1.6.21",
Expand All @@ -60,6 +60,7 @@
"lodash-es": "4.17.21",
"moment": "2.29.1",
"polished": "4.1.3",
"prism-react-renderer": "1.2.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hook-form": "7.19.1",
Expand Down
Loading

0 comments on commit f52f8c0

Please sign in to comment.