From 2e8460e5c19bcdf971ea350e54734a17b60b6b92 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Tue, 25 Jul 2023 13:42:01 +0200 Subject: [PATCH] www: move latest docs into `latest` folder (#1522) --- docs/{ => latest}/concepts/app-wrapper.md | 0 docs/{ => latest}/concepts/architecture.md | 0 docs/{ => latest}/concepts/data-fetching.md | 0 docs/{ => latest}/concepts/deployment.md | 0 docs/{ => latest}/concepts/error-pages.md | 0 docs/{ => latest}/concepts/forms.md | 0 docs/{ => latest}/concepts/index.md | 0 docs/{ => latest}/concepts/islands.md | 0 docs/{ => latest}/concepts/middleware.md | 0 docs/{ => latest}/concepts/plugins.md | 0 docs/{ => latest}/concepts/routes.md | 0 docs/{ => latest}/concepts/routing.md | 0 docs/{ => latest}/concepts/server-components.md | 0 docs/{ => latest}/concepts/server-configuration.md | 0 docs/{ => latest}/concepts/static-files.md | 0 docs/{ => latest}/concepts/updating.md | 0 docs/{ => latest}/examples/changing-the-src-dir.md | 0 docs/{ => latest}/examples/creating-a-crud-api.md | 0 docs/{ => latest}/examples/dealing-with-cors.md | 0 docs/{ => latest}/examples/handling-complex-routes.md | 0 docs/{ => latest}/examples/index.md | 0 docs/{ => latest}/examples/init-the-server.md | 0 docs/{ => latest}/examples/modifying-the-head.md | 0 docs/{ => latest}/examples/rendering-markdown.md | 0 docs/{ => latest}/examples/setting-the-language.md | 0 docs/{ => latest}/examples/sharing-state-between-islands.md | 0 docs/{ => latest}/examples/using-csp.md | 0 docs/{ => latest}/examples/using-deno-kv-oauth.md | 0 docs/{ => latest}/examples/using-fresh-canary-version.md | 0 docs/{ => latest}/examples/using-twind-v1.md | 0 docs/{ => latest}/examples/writing-tests.md | 0 docs/{ => latest}/getting-started/adding-interactivity.md | 0 docs/{ => latest}/getting-started/create-a-project.md | 0 docs/{ => latest}/getting-started/create-a-route.md | 0 docs/{ => latest}/getting-started/custom-handlers.md | 0 docs/{ => latest}/getting-started/deploy-to-production.md | 0 docs/{ => latest}/getting-started/dynamic-routes.md | 0 docs/{ => latest}/getting-started/fetching-data.md | 0 docs/{ => latest}/getting-started/form-submissions.md | 0 docs/{ => latest}/getting-started/index.md | 0 docs/{ => latest}/getting-started/running-locally.md | 0 docs/{ => latest}/integrations/index.md | 0 docs/{ => latest}/introduction/index.md | 0 www/data/docs.ts | 2 +- 44 files changed, 1 insertion(+), 1 deletion(-) rename docs/{ => latest}/concepts/app-wrapper.md (100%) rename docs/{ => latest}/concepts/architecture.md (100%) rename docs/{ => latest}/concepts/data-fetching.md (100%) rename docs/{ => latest}/concepts/deployment.md (100%) rename docs/{ => latest}/concepts/error-pages.md (100%) rename docs/{ => latest}/concepts/forms.md (100%) rename docs/{ => latest}/concepts/index.md (100%) rename docs/{ => latest}/concepts/islands.md (100%) rename docs/{ => latest}/concepts/middleware.md (100%) rename docs/{ => latest}/concepts/plugins.md (100%) rename docs/{ => latest}/concepts/routes.md (100%) rename docs/{ => latest}/concepts/routing.md (100%) rename docs/{ => latest}/concepts/server-components.md (100%) rename docs/{ => latest}/concepts/server-configuration.md (100%) rename docs/{ => latest}/concepts/static-files.md (100%) rename docs/{ => latest}/concepts/updating.md (100%) rename docs/{ => latest}/examples/changing-the-src-dir.md (100%) rename docs/{ => latest}/examples/creating-a-crud-api.md (100%) rename docs/{ => latest}/examples/dealing-with-cors.md (100%) rename docs/{ => latest}/examples/handling-complex-routes.md (100%) rename docs/{ => latest}/examples/index.md (100%) rename docs/{ => latest}/examples/init-the-server.md (100%) rename docs/{ => latest}/examples/modifying-the-head.md (100%) rename docs/{ => latest}/examples/rendering-markdown.md (100%) rename docs/{ => latest}/examples/setting-the-language.md (100%) rename docs/{ => latest}/examples/sharing-state-between-islands.md (100%) rename docs/{ => latest}/examples/using-csp.md (100%) rename docs/{ => latest}/examples/using-deno-kv-oauth.md (100%) rename docs/{ => latest}/examples/using-fresh-canary-version.md (100%) rename docs/{ => latest}/examples/using-twind-v1.md (100%) rename docs/{ => latest}/examples/writing-tests.md (100%) rename docs/{ => latest}/getting-started/adding-interactivity.md (100%) rename docs/{ => latest}/getting-started/create-a-project.md (100%) rename docs/{ => latest}/getting-started/create-a-route.md (100%) rename docs/{ => latest}/getting-started/custom-handlers.md (100%) rename docs/{ => latest}/getting-started/deploy-to-production.md (100%) rename docs/{ => latest}/getting-started/dynamic-routes.md (100%) rename docs/{ => latest}/getting-started/fetching-data.md (100%) rename docs/{ => latest}/getting-started/form-submissions.md (100%) rename docs/{ => latest}/getting-started/index.md (100%) rename docs/{ => latest}/getting-started/running-locally.md (100%) rename docs/{ => latest}/integrations/index.md (100%) rename docs/{ => latest}/introduction/index.md (100%) diff --git a/docs/concepts/app-wrapper.md b/docs/latest/concepts/app-wrapper.md similarity index 100% rename from docs/concepts/app-wrapper.md rename to docs/latest/concepts/app-wrapper.md diff --git a/docs/concepts/architecture.md b/docs/latest/concepts/architecture.md similarity index 100% rename from docs/concepts/architecture.md rename to docs/latest/concepts/architecture.md diff --git a/docs/concepts/data-fetching.md b/docs/latest/concepts/data-fetching.md similarity index 100% rename from docs/concepts/data-fetching.md rename to docs/latest/concepts/data-fetching.md diff --git a/docs/concepts/deployment.md b/docs/latest/concepts/deployment.md similarity index 100% rename from docs/concepts/deployment.md rename to docs/latest/concepts/deployment.md diff --git a/docs/concepts/error-pages.md b/docs/latest/concepts/error-pages.md similarity index 100% rename from docs/concepts/error-pages.md rename to docs/latest/concepts/error-pages.md diff --git a/docs/concepts/forms.md b/docs/latest/concepts/forms.md similarity index 100% rename from docs/concepts/forms.md rename to docs/latest/concepts/forms.md diff --git a/docs/concepts/index.md b/docs/latest/concepts/index.md similarity index 100% rename from docs/concepts/index.md rename to docs/latest/concepts/index.md diff --git a/docs/concepts/islands.md b/docs/latest/concepts/islands.md similarity index 100% rename from docs/concepts/islands.md rename to docs/latest/concepts/islands.md diff --git a/docs/concepts/middleware.md b/docs/latest/concepts/middleware.md similarity index 100% rename from docs/concepts/middleware.md rename to docs/latest/concepts/middleware.md diff --git a/docs/concepts/plugins.md b/docs/latest/concepts/plugins.md similarity index 100% rename from docs/concepts/plugins.md rename to docs/latest/concepts/plugins.md diff --git a/docs/concepts/routes.md b/docs/latest/concepts/routes.md similarity index 100% rename from docs/concepts/routes.md rename to docs/latest/concepts/routes.md diff --git a/docs/concepts/routing.md b/docs/latest/concepts/routing.md similarity index 100% rename from docs/concepts/routing.md rename to docs/latest/concepts/routing.md diff --git a/docs/concepts/server-components.md b/docs/latest/concepts/server-components.md similarity index 100% rename from docs/concepts/server-components.md rename to docs/latest/concepts/server-components.md diff --git a/docs/concepts/server-configuration.md b/docs/latest/concepts/server-configuration.md similarity index 100% rename from docs/concepts/server-configuration.md rename to docs/latest/concepts/server-configuration.md diff --git a/docs/concepts/static-files.md b/docs/latest/concepts/static-files.md similarity index 100% rename from docs/concepts/static-files.md rename to docs/latest/concepts/static-files.md diff --git a/docs/concepts/updating.md b/docs/latest/concepts/updating.md similarity index 100% rename from docs/concepts/updating.md rename to docs/latest/concepts/updating.md diff --git a/docs/examples/changing-the-src-dir.md b/docs/latest/examples/changing-the-src-dir.md similarity index 100% rename from docs/examples/changing-the-src-dir.md rename to docs/latest/examples/changing-the-src-dir.md diff --git a/docs/examples/creating-a-crud-api.md b/docs/latest/examples/creating-a-crud-api.md similarity index 100% rename from docs/examples/creating-a-crud-api.md rename to docs/latest/examples/creating-a-crud-api.md diff --git a/docs/examples/dealing-with-cors.md b/docs/latest/examples/dealing-with-cors.md similarity index 100% rename from docs/examples/dealing-with-cors.md rename to docs/latest/examples/dealing-with-cors.md diff --git a/docs/examples/handling-complex-routes.md b/docs/latest/examples/handling-complex-routes.md similarity index 100% rename from docs/examples/handling-complex-routes.md rename to docs/latest/examples/handling-complex-routes.md diff --git a/docs/examples/index.md b/docs/latest/examples/index.md similarity index 100% rename from docs/examples/index.md rename to docs/latest/examples/index.md diff --git a/docs/examples/init-the-server.md b/docs/latest/examples/init-the-server.md similarity index 100% rename from docs/examples/init-the-server.md rename to docs/latest/examples/init-the-server.md diff --git a/docs/examples/modifying-the-head.md b/docs/latest/examples/modifying-the-head.md similarity index 100% rename from docs/examples/modifying-the-head.md rename to docs/latest/examples/modifying-the-head.md diff --git a/docs/examples/rendering-markdown.md b/docs/latest/examples/rendering-markdown.md similarity index 100% rename from docs/examples/rendering-markdown.md rename to docs/latest/examples/rendering-markdown.md diff --git a/docs/examples/setting-the-language.md b/docs/latest/examples/setting-the-language.md similarity index 100% rename from docs/examples/setting-the-language.md rename to docs/latest/examples/setting-the-language.md diff --git a/docs/examples/sharing-state-between-islands.md b/docs/latest/examples/sharing-state-between-islands.md similarity index 100% rename from docs/examples/sharing-state-between-islands.md rename to docs/latest/examples/sharing-state-between-islands.md diff --git a/docs/examples/using-csp.md b/docs/latest/examples/using-csp.md similarity index 100% rename from docs/examples/using-csp.md rename to docs/latest/examples/using-csp.md diff --git a/docs/examples/using-deno-kv-oauth.md b/docs/latest/examples/using-deno-kv-oauth.md similarity index 100% rename from docs/examples/using-deno-kv-oauth.md rename to docs/latest/examples/using-deno-kv-oauth.md diff --git a/docs/examples/using-fresh-canary-version.md b/docs/latest/examples/using-fresh-canary-version.md similarity index 100% rename from docs/examples/using-fresh-canary-version.md rename to docs/latest/examples/using-fresh-canary-version.md diff --git a/docs/examples/using-twind-v1.md b/docs/latest/examples/using-twind-v1.md similarity index 100% rename from docs/examples/using-twind-v1.md rename to docs/latest/examples/using-twind-v1.md diff --git a/docs/examples/writing-tests.md b/docs/latest/examples/writing-tests.md similarity index 100% rename from docs/examples/writing-tests.md rename to docs/latest/examples/writing-tests.md diff --git a/docs/getting-started/adding-interactivity.md b/docs/latest/getting-started/adding-interactivity.md similarity index 100% rename from docs/getting-started/adding-interactivity.md rename to docs/latest/getting-started/adding-interactivity.md diff --git a/docs/getting-started/create-a-project.md b/docs/latest/getting-started/create-a-project.md similarity index 100% rename from docs/getting-started/create-a-project.md rename to docs/latest/getting-started/create-a-project.md diff --git a/docs/getting-started/create-a-route.md b/docs/latest/getting-started/create-a-route.md similarity index 100% rename from docs/getting-started/create-a-route.md rename to docs/latest/getting-started/create-a-route.md diff --git a/docs/getting-started/custom-handlers.md b/docs/latest/getting-started/custom-handlers.md similarity index 100% rename from docs/getting-started/custom-handlers.md rename to docs/latest/getting-started/custom-handlers.md diff --git a/docs/getting-started/deploy-to-production.md b/docs/latest/getting-started/deploy-to-production.md similarity index 100% rename from docs/getting-started/deploy-to-production.md rename to docs/latest/getting-started/deploy-to-production.md diff --git a/docs/getting-started/dynamic-routes.md b/docs/latest/getting-started/dynamic-routes.md similarity index 100% rename from docs/getting-started/dynamic-routes.md rename to docs/latest/getting-started/dynamic-routes.md diff --git a/docs/getting-started/fetching-data.md b/docs/latest/getting-started/fetching-data.md similarity index 100% rename from docs/getting-started/fetching-data.md rename to docs/latest/getting-started/fetching-data.md diff --git a/docs/getting-started/form-submissions.md b/docs/latest/getting-started/form-submissions.md similarity index 100% rename from docs/getting-started/form-submissions.md rename to docs/latest/getting-started/form-submissions.md diff --git a/docs/getting-started/index.md b/docs/latest/getting-started/index.md similarity index 100% rename from docs/getting-started/index.md rename to docs/latest/getting-started/index.md diff --git a/docs/getting-started/running-locally.md b/docs/latest/getting-started/running-locally.md similarity index 100% rename from docs/getting-started/running-locally.md rename to docs/latest/getting-started/running-locally.md diff --git a/docs/integrations/index.md b/docs/latest/integrations/index.md similarity index 100% rename from docs/integrations/index.md rename to docs/latest/integrations/index.md diff --git a/docs/introduction/index.md b/docs/latest/introduction/index.md similarity index 100% rename from docs/introduction/index.md rename to docs/latest/introduction/index.md diff --git a/www/data/docs.ts b/www/data/docs.ts index 3a2a4a96..b05ac4f5 100644 --- a/www/data/docs.ts +++ b/www/data/docs.ts @@ -44,7 +44,7 @@ for (const version in toc) { // all documentation content and backport changes. const fileVersion = rawEntry.link ?? version; const versionFilePath = fileVersion === LATEST_VERSION - ? "" + ? "/latest" : `/${fileVersion}`; const href = `/docs${versionSlug}/${parent}`;