Skip to content

Commit

Permalink
docs: expressive-code
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed Sep 22, 2023
1 parent a20168d commit 5abbc04
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 7 deletions.
14 changes: 8 additions & 6 deletions docs/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import { defineConfig, passthroughImageService } from 'astro/config'
import starlight from '@astrojs/starlight'
import tailwind from '@astrojs/tailwind'
import expressiveCode from 'astro-expressive-code'
import { defineConfig, passthroughImageService } from 'astro/config'

// https://astro.build/config
export default defineConfig({
site: 'https://docs.ethfollow.xyz',
integrations: [
expressiveCode(),
expressiveCode({
theme: 'dracula-soft',
}),
tailwind({
applyBaseStyles: false,
configFile: './tailwind.config.ts',
}),
starlight({
title: 'EFP',
description: 'Ethereum Follow Protocol',
Expand Down Expand Up @@ -36,10 +42,6 @@ export default defineConfig({
'@fontsource/ibm-plex-serif/600.css',
],
}),
tailwind({
applyBaseStyles: false,
configFile: './tailwind.config.ts',
}),
],
image: {
service: passthroughImageService(),
Expand Down
5 changes: 4 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
},
"dependencies": {
"@astrojs/starlight": "^0.10.1",
"@expressive-code/plugin-collapsible-sections": "^0.24.0",
"@fontsource/ibm-plex-serif": "^5.0.8",
"@fontsource/inter": "^5.0.8",
"astro": "^3.1.2",
"astro-expressive-code": "^0.24.0"
"astro-expressive-code": "^0.24.0",
"expressive-code": "^0.24.0",
"hast-util-to-html": "^9.0.0"
},
"devDependencies": {
"@astrojs/starlight-tailwind": "^2.0.0",
Expand Down
Loading

0 comments on commit 5abbc04

Please sign in to comment.