mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
adds prism
This commit is contained in:
1 parent
500f7ecaba
commit
d8018f7aa1
4 files changed
+82
-2
No files matched your search
@@ -1,8 +1,8 @@
|
||||
// @ts-nocheck
|
||||
// Note: type annotations allow type checking and IDEs autocompletion
|
||||
|
||||
const lightCodeTheme = require('prism-react-renderer/themes/github')
|
||||
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
|
||||
const lightCodeTheme = require('@kiwicopple/prism-react-renderer/themes/vsDark')
|
||||
const darkCodeTheme = require('@kiwicopple/prism-react-renderer/themes/vsDark')
|
||||
const mainNavbar = require('./nav/_referenceNavbar')
|
||||
|
||||
/** @type {import('@docusaurus/types').Config} */
|
||||
|
||||
Generated
+19
@@ -10,6 +10,7 @@
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "^2.0.1",
|
||||
"@docusaurus/preset-classic": "^2.0.1",
|
||||
"@kiwicopple/prism-react-renderer": "github:kiwicopple/prism-react-renderer",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"clsx": "^1.2.1",
|
||||
"docusaurus-theme-search-typesense": "^0.5.3",
|
||||
@@ -2865,6 +2866,17 @@
|
||||
"@jridgewell/sourcemap-codec": "^1.4.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@kiwicopple/prism-react-renderer": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "git+ssh://git@github.com/kiwicopple/prism-react-renderer.git#4a09100a587bce2d94d7ac8ed3564a61c6e70781",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"prismjs": "^1.22.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=0.14.9"
|
||||
}
|
||||
},
|
||||
"node_modules/@leichtgewicht/ip-codec": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz",
|
||||
@@ -15012,6 +15024,13 @@
|
||||
"@jridgewell/sourcemap-codec": "^1.4.10"
|
||||
}
|
||||
},
|
||||
"@kiwicopple/prism-react-renderer": {
|
||||
"version": "git+ssh://git@github.com/kiwicopple/prism-react-renderer.git#4a09100a587bce2d94d7ac8ed3564a61c6e70781",
|
||||
"from": "@kiwicopple/prism-react-renderer@https://github.com/kiwicopple/prism-react-renderer.git",
|
||||
"requires": {
|
||||
"prismjs": "^1.22.0"
|
||||
}
|
||||
},
|
||||
"@leichtgewicht/ip-codec": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz",
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "^2.0.1",
|
||||
"@docusaurus/preset-classic": "^2.0.1",
|
||||
"@kiwicopple/prism-react-renderer": "github:kiwicopple/prism-react-renderer",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"clsx": "^1.2.1",
|
||||
"docusaurus-theme-search-typesense": "^0.5.3",
|
||||
|
||||
@@ -416,3 +416,63 @@ html[data-theme='dark'] .navbar-item-discord:before {
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
/* PRISM */
|
||||
|
||||
.prism-code {
|
||||
background-color: none;
|
||||
word-break: break-word;
|
||||
font-size: 0.8rem;
|
||||
outline: none !important;
|
||||
}
|
||||
.prism-code div,
|
||||
.prism-code div:focus,
|
||||
.prism-code div:active {
|
||||
outline: none !important;
|
||||
}
|
||||
.token.keyword.module,
|
||||
.token.property-access,
|
||||
.token.function {
|
||||
font-style: normal !important;
|
||||
color: #ccc !important;
|
||||
}
|
||||
.token.plain,
|
||||
.token.parameter,
|
||||
.token.punctuation,
|
||||
.token.operator,
|
||||
.token.console.class-name,
|
||||
.token.doc-comment.parameter,
|
||||
.token.doc-comment.optional-parameter,
|
||||
.token.doc-comment.parameter.punctuation,
|
||||
.token.doc-comment.optional-parameter.punctuation {
|
||||
font-style: normal !important;
|
||||
color: #ccc !important;
|
||||
}
|
||||
.token.keyword,
|
||||
.token.doc-comment.keyword {
|
||||
font-style: normal !important;
|
||||
color: #569cd6 !important;
|
||||
}
|
||||
.token.string {
|
||||
font-style: normal !important;
|
||||
color: #24b47e !important;
|
||||
}
|
||||
.token.console {
|
||||
font-style: normal !important;
|
||||
color: #49c1ad !important;
|
||||
}
|
||||
.token.constant {
|
||||
font-style: normal !important;
|
||||
color: #569cd6 !important;
|
||||
}
|
||||
.token.comment {
|
||||
font-style: normal !important;
|
||||
color: #666 !important;
|
||||
}
|
||||
.token.number {
|
||||
color: #b5cea8 !important;
|
||||
}
|
||||
.token.boolean,
|
||||
.token.doc-comment.class-name {
|
||||
@apply text-green-500;
|
||||
}
|
||||
Reference in new issue
Block a user