Skip to content

Commit

Permalink
Merge pull request #362 from moonbitlang/zhiyuan/change-tour-route
Browse files Browse the repository at this point in the history
change base
  • Loading branch information
bzy-debug authored Dec 17, 2024
2 parents 4786507 + 2add8c7 commit 184aafc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion moonbit-tour/dev/const.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const BASE = "/moonbit-docs/tour";
const BASE = "";

export { BASE };
6 changes: 2 additions & 4 deletions moonbit-tour/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
</head>
<body class="flex flex-col font-sans md:h-screen">
<header class="flex h-8 items-center gap-2 bg-purple-200 px-2 py-6 md:px-6">
<a class="text-base" href="/moonbit-docs/tour/index.html"
>MoonBit Language Tour</a
>
<a class="text-base" href="/index.html">MoonBit Language Tour</a>
<a class="ml-auto" href="https://www.moonbitlang.com">MoonBit</a>
<div class="ml-2 cursor-pointer" id="theme">
<svg
Expand Down Expand Up @@ -37,7 +35,7 @@
<div class="w-full">%MARKDOWN%</div>
<nav class="flex gap-4 md:pb-2">
%BACK% —
<a href="/moonbit-docs/tour/table-of-contents/index.html">Contents</a>
<a href="/table-of-contents/index.html">Contents</a>
— %NEXT%
</nav>
</section>
Expand Down
2 changes: 1 addition & 1 deletion moonbit-tour/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import indexPlugin from "./dev/index-plugin";
export default defineConfig({
base: BASE,
build: {
outDir: "dist/tour",
outDir: "dist",
rollupOptions: {
output: {
entryFileNames: `assets/[name].js`,
Expand Down

0 comments on commit 184aafc

Please sign in to comment.