Skip to content

Commit

Permalink
Add more languages for syntax highlighting (#77)
Browse files Browse the repository at this point in the history
* Add more languages for syntax highlighting

* update specs dep

* fix
  • Loading branch information
metachris authored Dec 20, 2023
1 parent e8c8447 commit 0b3bfce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ docker-deps:

docker-start:
docker run -p 3000:3000 --name suave-docs --rm -it -w /mnt -v $(CUR_DIR):/mnt node:20 /usr/local/bin/npm start

docker-build:
docker run -p 3000:3000 --name suave-docs --rm -it -w /mnt -v $(CUR_DIR):/mnt node:20 /usr/local/bin/npm run build
2 changes: 1 addition & 1 deletion docs/technical
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
require('dotenv').config();
const {themes} = require('prism-react-renderer');
const { themes } = require('prism-react-renderer');
const tailwindcss = require('tailwindcss');
const autoprefixer = require('autoprefixer');

Expand Down Expand Up @@ -51,7 +51,7 @@ module.exports = async function createConfigAsync() {
prism: {
theme: lightTheme,
darkTheme,
additionalLanguages: ['solidity'],
additionalLanguages: ['solidity', 'typescript', 'bash', 'json', 'javascript', 'yaml'], // https://docusaurus.io/docs/markdown-features/code-blocks#supported-languages
},
docs: {
sidebar: {
Expand Down

0 comments on commit 0b3bfce

Please sign in to comment.