I did various changes and updates, using the question 8 (modelovani a projekce) as my lab rat. It's a pretty good case, containing images, plenty of math, footnotes, everything. I now feel it looks pretty good, I'll try to import more content.
47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
import starlight from '@astrojs/starlight';
|
|
import remarkGithubAlerts from 'remark-github-alerts';
|
|
import remarkMath from 'remark-math';
|
|
import rehypeKatex from 'rehype-katex';
|
|
import rehypeCustomFootnotes from './src/plugins/custom-footnote';
|
|
|
|
|
|
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
markdown: {
|
|
|
|
remarkPlugins: [remarkGithubAlerts, remarkMath],
|
|
rehypePlugins: [rehypeKatex, rehypeCustomFootnotes]
|
|
},
|
|
integrations: [
|
|
starlight({
|
|
title: 'SZMGR',
|
|
logo: {
|
|
src: "./src/assets/fi_16.png"
|
|
},
|
|
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }],
|
|
customCss: [
|
|
"remark-github-alerts/styles/github-colors-light.css",
|
|
"remark-github-alerts/styles/github-colors-dark-class.css",
|
|
"remark-github-alerts/styles/github-base.css",
|
|
"katex/dist/katex.min.css",
|
|
"./src/styles/theme.css",
|
|
"./src/styles/footnotes-fix.css",
|
|
"./src/styles/pixelated-logo.css",
|
|
],
|
|
sidebar: [
|
|
{
|
|
label: 'SZMGR',
|
|
autogenerate: {
|
|
directory: "szmgr"
|
|
}
|
|
},
|
|
|
|
],
|
|
}),
|
|
],
|
|
});
|