feat: Add formatdoc.html and update Vite config

This commit is contained in:
Your Name (aider) committed 2025-04-28 18:00:19 +08:00
1 parent 4ccb728a8b
commit c6c32d0b0a
2 files changed
+56 -4

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="/src/styles.css" rel="stylesheet">
<title>Formatting Options - Behind the Desk</title>
</head>
<body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
<div class="max-w-screen-lg mx-auto px-4">
<div class="flex justify-between">
<div class="flex">
<a class="py-2 px-3 font-bold text-primary" href="/">
Formatting Options
</a>
</div>
</div>
</div>
</nav>
<main class="max-w-screen-lg mx-auto py-4 pb-16 bg-bg-footer">
<div class="px-4 mt-8">
<p class="text-xs">
Blank lines separate paragraphs.<br><br>
Text surrounded by asterisks is italicized. To get a literal asterisk, use \* or **.<br><br>
Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.)<br><br>
Urls become links, except in the text field of a submission.<br><br>
If your url gets linked incorrectly, put it in &lt;angle brackets&gt; and it should work.
</p>
</div>
</main>
</body>
</html>
+23 -4
View File
@@ -1,9 +1,28 @@
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
import path from 'path';
export default defineConfig({ export default defineConfig({
server: { root: './',
host: '0.0.0.0', build: {
port: 5173, outDir: 'dist',
open: false, },
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
}, },
},
server: {
port: 3000,
},
plugins: [
{
name: 'html-transform',
transformIndexHtml(html) {
return html.replace(
/<title>(.*?)<\/title>/,
'<title>Behind the Desk</title>'
);
},
},
],
}); });