feat: Add formatdoc.html and update Vite config
This commit is contained in:
1 parent
4ccb728a8b
commit
c6c32d0b0a
2 files changed
+56
-4
No files matched your search
@@ -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 <angle brackets> and it should work.
|
||||
</p>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
+23
-4
@@ -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>/,
|
||||
'<title>Behind the Desk</title>'
|
||||
);
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in new issue
Block a user