Skip to content

Commit

Permalink
docs as an MPA
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Dec 21, 2023
1 parent c4a1cb2 commit aa5cfb4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function Nav() {

return (
<nav class="fixed left-0 top-[52px] z-20 col-start-1 row-start-2 h-full min-w-[300px] -translate-x-full space-y-4 overflow-auto bg-slate-100 px-8 pb-20 pt-8 duration-300 ease-in-out peer-checked:translate-x-0 md:relative md:left-auto md:top-auto md:translate-x-0 md:pb-8">
<div id="docsearch" />
<div id="docsearch" style="height: 30px" />
<For each={data()}>
{r => (
<ul class="first:pt-10-">
Expand Down
4 changes: 0 additions & 4 deletions docs/components/A.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion docs/components/components.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Title as MetaTitle } from "@solidjs/meta";
import { A } from "@solidjs/router";
import { createUniqueId, mergeProps, Show } from "solid-js";
import "tippy.js/dist/tippy.css";
import A from "./A";
import Tooltip from "./tooltip";

export const components = {
Expand Down
2 changes: 1 addition & 1 deletion packages/start/config/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type SolidStartInlineConfig = Omit<InlineConfig, "router"> & {
server?: AppOptions['server'],
appRoot?: string,
middleware?: string,
//islands?: boolean TODO: Get PROD bugs working probably missing release
islands?: boolean
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/start/server/page-event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function createPageEvent(ctx: FetchEvent) {
...(await clientManifest.inputs[clientManifest.handler].assets()),
...(import.meta.env.START_ISLANDS
? (await serverManifest.inputs[serverManifest.handler].assets()).filter(
s => s.attrs.rel !== "modulepreload"
s => (s as any).attrs.rel !== "modulepreload"
)
: [])
],
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineConfig({
start: {
appRoot: "./docs",
extensions: ["mdx", "md"],
islands: true,
server: {
preset: "cloudflare_module",
rollupConfig: {
Expand Down

0 comments on commit aa5cfb4

Please sign in to comment.