From c6c32d0b0afdb914acc7e6fd78bd732546937a74 Mon Sep 17 00:00:00 2001 From: "Your Name (aider)" Date: Mon, 28 Apr 2025 18:00:19 +0800 Subject: [PATCH] feat: Add formatdoc.html and update Vite config --- formatdoc.html | 33 +++++++++++++++++++++++++++++++++ vite.config.js | 27 +++++++++++++++++++++++---- 2 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 formatdoc.html diff --git a/formatdoc.html b/formatdoc.html new file mode 100644 index 0000000..d8953c1 --- /dev/null +++ b/formatdoc.html @@ -0,0 +1,33 @@ + + + + + + + Formatting Options - Behind the Desk + + + +
+
+

+ Blank lines separate paragraphs.

+ Text surrounded by asterisks is italicized. To get a literal asterisk, use \* or **.

+ Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.)

+ Urls become links, except in the text field of a submission.

+ If your url gets linked incorrectly, put it in <angle brackets> and it should work. +

+
+
+ + diff --git a/vite.config.js b/vite.config.js index 55cf747..4431ef2 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,9 +1,28 @@ import { defineConfig } from 'vite'; +import path from 'path'; export default defineConfig({ - server: { - host: '0.0.0.0', - port: 5173, - open: false, + root: './', + build: { + outDir: 'dist', + }, + resolve: { + alias: { + '@': path.resolve(__dirname, './src'), }, + }, + server: { + port: 3000, + }, + plugins: [ + { + name: 'html-transform', + transformIndexHtml(html) { + return html.replace( + /(.*?)<\/title>/, + '<title>Behind the Desk' + ); + }, + }, + ], });