docs: make 2.x the default version (#3369)

This commit is contained in:
Marvin Hagemeister
2025-09-09 14:36:51 +02:00
committed by GitHub
parent 2c315a9972
commit 79d8cfc3ed
109 changed files with 1589 additions and 1502 deletions
+6 -2
View File
@@ -4,6 +4,7 @@ import tailwindcss from "@tailwindcss/vite";
import inspect from "vite-plugin-inspect";
import { copy } from "@std/fs";
import * as path from "@std/path";
import { pathWithRoot } from "../packages/plugin-vite/src/utils.ts";
export default defineConfig({
plugins: [
@@ -20,10 +21,13 @@ function copyDocs(): Plugin {
return {
name: "fresh:copy-docs",
configResolved(config) {
serverOutDir = config.environments.ssr.build.outDir;
serverOutDir = pathWithRoot(
config.environments.ssr.build.outDir,
config.root,
);
},
async writeBundle() {
const branches = ["canary", "latest"];
const branches = ["canary", "latest", "1.x"];
for (const branch of branches) {
const source = path.join(import.meta.dirname!, "..", "docs", branch);