added too big copy button
This commit is contained in:
@@ -10,14 +10,23 @@ import rehypePrettyCode from "rehype-pretty-code";
|
|||||||
import codeTheme from "./src/styles/moonlight-ii.json";
|
import codeTheme from "./src/styles/moonlight-ii.json";
|
||||||
import mdx from "@astrojs/mdx";
|
import mdx from "@astrojs/mdx";
|
||||||
import lighthouse from "astro-lighthouse";
|
import lighthouse from "astro-lighthouse";
|
||||||
|
|
||||||
import icon from "astro-icon";
|
import icon from "astro-icon";
|
||||||
|
|
||||||
|
import expressiveCode from "astro-expressive-code";
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
integrations: [minify(), metaTags(), mdx(), lighthouse(), icon()],
|
integrations: [
|
||||||
|
minify(),
|
||||||
|
metaTags(),
|
||||||
|
expressiveCode({ themes: [codeTheme] }),
|
||||||
|
mdx(),
|
||||||
|
lighthouse(),
|
||||||
|
icon(),
|
||||||
|
],
|
||||||
markdown: {
|
markdown: {
|
||||||
syntaxHighlight: false, // Disable syntax built-in syntax hightlighting from astro
|
syntaxHighlight: false,
|
||||||
|
// Disable syntax built-in syntax hightlighting from astro
|
||||||
rehypePlugins: [
|
rehypePlugins: [
|
||||||
rehypeSlug,
|
rehypeSlug,
|
||||||
[
|
[
|
||||||
@@ -43,8 +52,5 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
shikiConfig: {
|
|
||||||
theme: "dracula",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
974
package-lock.json
generated
974
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -12,8 +12,10 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/markdown-remark": "^4.2.1",
|
"@astrojs/markdown-remark": "^4.2.1",
|
||||||
"@astrojs/mdx": "^2.1.1",
|
"@astrojs/mdx": "^2.1.1",
|
||||||
|
"@expressive-code/plugin-shiki": "^0.32.4",
|
||||||
"@microflash/remark-callout-directives": "^2.0.0",
|
"@microflash/remark-callout-directives": "^2.0.0",
|
||||||
"astro": "^4.2.6",
|
"astro": "^4.2.6",
|
||||||
|
"astro-expressive-code": "^0.32.4",
|
||||||
"astro-icon": "^1.1.0",
|
"astro-icon": "^1.1.0",
|
||||||
"astro-lighthouse": "^0.1.3",
|
"astro-lighthouse": "^0.1.3",
|
||||||
"astro-meta-tags": "^0.2.1",
|
"astro-meta-tags": "^0.2.1",
|
||||||
|
@@ -79,16 +79,24 @@ figure {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
.expressive-code {
|
||||||
code {
|
code {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
pre {
|
||||||
|
background-color: transparent !important;
|
||||||
|
border: transparent !important;
|
||||||
|
background: none !important;
|
||||||
|
}
|
||||||
|
figure {
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
display: grid;
|
display: grid;
|
||||||
padding: 15px;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border-radius: 25px;
|
|
||||||
max-width: 50vw;
|
max-width: 50vw;
|
||||||
|
background-color: #282a36;
|
||||||
|
border-radius: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
|
Reference in New Issue
Block a user