Skip to content

Commit

Permalink
Refactor / Markdown rendering issues (#17)
Browse files Browse the repository at this point in the history
* wip

* refactor and add collapse

* add scripts

* rest of markdown working properly
  • Loading branch information
rambleraptor authored Sep 22, 2024
1 parent 967443a commit c2045aa
Show file tree
Hide file tree
Showing 8 changed files with 370 additions and 243 deletions.
7 changes: 7 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import * as fs from 'fs';
import tailwind from "@astrojs/tailwind";
import { Graphviz } from "@hpcc-js/wasm";
import rehypeGraphviz from "rehype-graphviz";


let sidebar = JSON.parse(fs.readFileSync("generated/sidebar.json"));
let linter_sidebar = JSON.parse(fs.readFileSync("generated/linter_sidebar.json"));
let redirects = JSON.parse(fs.readFileSync("generated/redirects.json"));
Expand All @@ -12,6 +16,9 @@ let config = JSON.parse(fs.readFileSync("generated/config.json"));
export default defineConfig({
site: 'https://beta.aep.dev',
redirects: redirects,
markdown: {
rehypePlugins: [[rehypeGraphviz, { graphviz: await Graphviz.load() }]],
},
integrations: [starlight({
title: 'AEP',
customCss: [
Expand Down
81 changes: 81 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"@astrojs/starlight": "^0.26.1",
"@astrojs/starlight-tailwind": "^2.0.3",
"@astrojs/tailwind": "^5.1.0",
"@hpcc-js/wasm": "^2.22.1",
"astro": "^4.10.2",
"rehype-graphviz": "^0.3.0",
"sharp": "^0.32.5",
"tailwindcss": "^3.4.10"
},
Expand Down
Loading

0 comments on commit c2045aa

Please sign in to comment.