1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2025-10-15 15:08:27 +02:00
cheatsheets/astro.config.mjs
Rico Sta. Cruz 42dd9eff84
Readability updates (#2134)
This PR updates the headings to avoid thin font weights and low
constrast ratios.

<table>
<tr>
<th>Before</th>
<th>After</th>
</tr>
<tr>
<td>


![image](https://github.com/rstacruz/cheatsheets/assets/74385/b7313b99-0376-49c1-84cd-e3476b2c84ff)

</td>
<td>


![image](https://github.com/rstacruz/cheatsheets/assets/74385/c2aec010-9976-4543-910b-dd9112995846)

</td>
</tr>
<tr>
<td>


![image](https://github.com/rstacruz/cheatsheets/assets/74385/e214d4a5-9a20-4a86-abc8-3261fc418192)

</td>
<td>


![image](https://github.com/rstacruz/cheatsheets/assets/74385/71a91afc-aa7b-4b8b-adf2-30a976c4a324)

</td>
</tr>
</table>
2024-04-03 23:37:00 +11:00

35 lines
718 B
JavaScript

import { defineConfig } from 'astro/config'
import partytown from '@astrojs/partytown'
/*
* https://astro.build/config
*/
import tailwind from '@astrojs/tailwind'
// https://astro.build/config
export default defineConfig({
site: 'https://devhints.io',
build: {
format: 'file' /* generate /my-post.html instead of /my-post/index.html */,
inlineStylesheets: 'always'
},
prefetch: {
prefetchAll: true
},
server: {
host: true
} /* access from https://192.168.x.x/ */,
integrations: [
partytown({
config: {
forward: ['dataLayer.push']
}
}),
tailwind()
],
markdown: {
// Syntax highlighting is handled by render()
syntaxHighlight: false
}
})