Skip to content

Commit ea9d1f4

Browse files
Merge branch 'main' into deps-format-lint
2 parents 7f37e9e + a8f632f commit ea9d1f4

File tree

5 files changed

+27
-8
lines changed

5 files changed

+27
-8
lines changed

app.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ export default defineConfig(
7171
expressiveCode: {
7272
themes: ["github-light-default", "material-theme-ocean"],
7373
themeCssSelector: (theme) => `[data-theme="${theme.type}"]`,
74+
frames: false,
75+
styleOverrides: {
76+
twoSlash: {
77+
cursorColor: "var(--twoslash-cursor)",
78+
},
79+
},
7480
},
7581
toc: {
7682
minDepth: 2,

src/routes/solid-start/advanced/request-events.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SolidStart uses `event.locals` to pass around a local context where needed.
1010

1111
When adding fields to `event.locals`, the fields can be typed:
1212

13-
```tsx filename="global.d.ts'
13+
```tsx title="global.d.ts"
1414
/// <reference types="@solidjs/start/env" />
1515
declare module App {
1616
interface RequestEventLocals {

src/routes/solid-start/building-your-application/routing.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The `<Router />` component expects a `root` prop which functions as the root lay
3535

3636
`<FileRoutes />` will generate a route for each file in the `routes` directory and its subdirectories. For a route to be rendered as a page, it must default export a component. This component represents the content that will be rendered when users visit the page:
3737

38-
```tsx filename="routes/index.tsx"
38+
```tsx title="routes/index.tsx"
3939
export default function Index() {
4040
return <div>Welcome to my site!</div>;
4141
}
@@ -79,7 +79,7 @@ In this case, the `blog.tsx` file will act as a layout for the articles in the `
7979

8080
<TabsCodeBlocks>
8181
<div id="ts">
82-
```tsx filename="routes/blog.tsx" title="blog.tsx"
82+
```tsx title="routes/blog.tsx"
8383
import { RouteSectionProps } from "@solidjs/router";
8484

8585
export default function BlogLayout(props: RouteSectionProps) {
@@ -88,7 +88,7 @@ export default function BlogLayout(props: RouteSectionProps) {
8888
```
8989
</div>
9090
<div id="js">
91-
```jsx filename="routes/blog.jsx" title="blog.tsx"
91+
```jsx title="routes/blog.jsx"
9292
export default function BlogLayout(props) {
9393
return <div>{props.children}</div>;
9494
}

src/styles.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
html,
2020
.custom-scrollbar {
21-
scroll-behavior: smooth;
2221
scroll-padding-top: 6rem;
2322

2423
scrollbar-color: #778292 #e7ecf2;
@@ -126,5 +125,15 @@
126125

127126
/* pace from solidbase */
128127
:root {
129-
--bprogress-color: theme("colors.blue.500") !important;
128+
--bprogress-color: theme('colors.blue.500') !important;
130129
}
130+
131+
/* twoslash from solidbase */
132+
html {
133+
--twoslash-cursor: #24292E;
134+
}
135+
136+
html[data-theme="dark"] {
137+
--twoslash-cursor: #BABED8;
138+
}
139+

src/ui/page-issue-link.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, createMemo } from "solid-js";
1+
import { Component, createMemo, createSignal, onMount } from "solid-js";
22
import { Icon } from "solid-heroicons";
33
import { exclamationTriangle } from "solid-heroicons/outline";
44
import { useI18n } from "~/i18n/i18n-context";
@@ -9,6 +9,10 @@ export const PageIssueLink: Component = () => {
99
const location = useLocation();
1010
const i18n = useI18n();
1111

12+
const [mounted, setMounted] = createSignal(false);
13+
14+
onMount(() => setMounted(true));
15+
1216
const srcPath = createMemo(() => {
1317
return (
1418
"https://github.com/solidjs/solid-docs-next/issues/new" +
@@ -18,7 +22,7 @@ export const PageIssueLink: Component = () => {
1822
"&template=CONTENT.yml" +
1923
"&title=[Content]:" +
2024
`&subject=${getEntryFileName()}` +
21-
`&page=${`https://docs.solidjs.com${location.pathname}`}`
25+
`&page=${mounted() ? window.location.href : ""}`
2226
);
2327
});
2428

0 commit comments

Comments
 (0)