Skip to content

Commit

Permalink
remove unsupported light mode from docs (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalbdivad authored May 28, 2024
1 parent 37b68ed commit 17a9720
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 49 deletions.
7 changes: 2 additions & 5 deletions ark/dark/injected.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@
"repository": {
"arkDefinition": {
"contentName": "meta.embedded.arktype.definition",
"begin": "(([^\\)\\(\\s]*)?((\\.)?(?:type|scope|define|match|fn|morph|and|or|when)))(\\()",
"begin": "(([^\\)\\(\\s]+)?(?:type|scope|define|match|fn|\\.morph|\\.and|\\.or|\\.when))(\\()",
"beginCaptures": {
"1": {
"name": "entity.name.function.ts"
},
"4": {
"name": "punctuation.accessor"
},
"5": {
"3": {
"name": "meta.brace.round.ts"
}
},
Expand Down
2 changes: 1 addition & 1 deletion ark/dark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "arkdark",
"displayName": "ArkDark",
"description": "ArkType syntax highlighting and theme⛵",
"version": "5.1.5",
"version": "5.1.6",
"publisher": "arktypeio",
"type": "module",
"scripts": {
Expand Down
7 changes: 2 additions & 5 deletions ark/dark/tsWithArkType.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@
"repository": {
"arkDefinition": {
"contentName": "meta.embedded.arktype.definition",
"begin": "(([^\\)\\(\\s]*)?((\\.)?(?:type|scope|define|match|fn|morph|and|or|when)))(\\()",
"begin": "(([^\\)\\(\\s]+)?(?:type|scope|define|match|fn|\\.morph|\\.and|\\.or|\\.when))(\\()",
"beginCaptures": {
"1": {
"name": "entity.name.function.ts"
},
"4": {
"name": "punctuation.accessor"
},
"5": {
"3": {
"name": "meta.brace.round.ts"
}
},
Expand Down
8 changes: 8 additions & 0 deletions ark/docs/astro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ export default defineConfig({
src: "./src/assets/logo.svg",
replacesTitle: true
},
head: [
// this ensures each page is rendered in dark mode since we
// don't support light yet
{
tag: "script",
content: `localStorage.setItem("starlight-theme", "dark")`
}
],
social: {
twitch: "https://twitch.tv/arktypeio",
twitter: "https://twitter.com/arktypeio",
Expand Down
29 changes: 0 additions & 29 deletions ark/docs/src/content/docs/attest/example.md

This file was deleted.

10 changes: 6 additions & 4 deletions ark/docs/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ header {
background-color: transparent;
}

/** Hide theme picker since light mode is not currently supported */
starlight-theme-select,
.social-icons::after {
display: none;
}

.twoslash .twoslash-hover:hover .twoslash-popup-container {
border-radius: 1rem;
opacity: 1;
Expand All @@ -94,10 +100,6 @@ header {
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.twoslash-popup-code {
opacity: 1;
}

h1 {
font-weight: 400;
}
Expand Down
10 changes: 5 additions & 5 deletions ark/schema/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const mergeConfigs = (
for (k in extensions) {
result[k] =
isNodeKind(k) ?
({
...base[k],
...extensions[k]
} as never)
: (extensions[k]! as never)
{
...(base as any)[k],
...(extensions as any)[k]
}
: (extensions[k] as never)
}
return result
}
Expand Down

0 comments on commit 17a9720

Please sign in to comment.