Skip to content

Commit 8b5fe48

Browse files
committed
Get all the pages rendering
1 parent eb81969 commit 8b5fe48

File tree

3 files changed

+28
-15
lines changed

3 files changed

+28
-15
lines changed

packages/typescriptlang-org/lib/bootup/ingestion/createRootPagesLocalized.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,15 @@ export const createRootPagesLocalized = async (
2525

2626
const langs = fs
2727
.readdirSync(languageRootDir)
28-
.filter(f => f.endsWith(".ts") && f.length === 5)
29-
.map(f => path.basename(f, ".ts"))
28+
.filter(
29+
f =>
30+
!(
31+
f.endsWith(".ts") ||
32+
f.endsWith(".ts") ||
33+
f.endsWith(".md") ||
34+
f.startsWith(".")
35+
)
36+
)
3037

3138
const files = recursiveReadDirSync(rootPagesDir)
3239
.filter(f => !f.startsWith(".")) // only useful files
@@ -48,7 +55,7 @@ export const createRootPagesLocalized = async (
4855
// prettier-ignore
4956
originalSitePath = originalSitePath.substring(0, originalSitePath.length - 3)
5057
}
51-
58+
console.log(langs)
5259
langs.forEach(lang => {
5360
if (!isMultiLingual && lang !== "en") return
5461

packages/typescriptlang-org/src/templates/markdown-twoslash.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ pre {
185185
}
186186
}
187187

188-
.dark-theme pre {
188+
.dark-theme .markdown pre {
189189
background-color: #d8d8d8;
190190
border-color: #ddd;
191191
filter: invert(98%) hue-rotate(180deg);

spellcheck.json

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"camelcase",
2727
"changelog",
2828
"circleci",
29+
"cla-bot",
2930
"cli",
3031
"cocoadocs",
3132
"cocoapods",
@@ -61,15 +62,16 @@
6162
"downleveling",
6263
"ecma",
6364
"env",
65+
"epub",
6466
"es2015",
6567
"es2016",
6668
"es6",
67-
"ESLint's",
69+
"eslint's",
6870
"eslint",
6971
"ezel",
7072
"facebook",
7173
"fastlane",
72-
"Favor",
74+
"favor",
7375
"flexbox",
7476
"frontend",
7577
"frp",
@@ -90,9 +92,9 @@
9092
"html5",
9193
"hypergrowth",
9294
"imagemagick",
93-
"Informationals",
95+
"informationals",
9496
"inline",
95-
"IntelliJ",
97+
"intellij",
9698
"intellisense",
9799
"interop",
98100
"isac",
@@ -124,22 +126,24 @@
124126
"memcached",
125127
"microservice",
126128
"microservices",
129+
"microsoft",
127130
"modeling",
131+
"monaco",
128132
"mongo",
129133
"mongodb",
130-
"Movie",
134+
"movie",
131135
"moya",
132136
"mutablilty",
133137
"mvc",
134138
"mvvm",
135139
"node.js",
136140
"nodejs",
137141
"nodemon",
138-
"non-Artsy",
142+
"non-artsy",
139143
"npm",
140144
"npm",
141145
"nullability",
142-
"OAuth",
146+
"oauth",
143147
"objc.io",
144148
"oftentimes",
145149
"ok",
@@ -164,7 +168,7 @@
164168
"plugins",
165169
"podspec",
166170
"polyfill",
167-
"post-Artsy",
171+
"post-artsy",
168172
"postgres",
169173
"postgres",
170174
"pr",
@@ -181,7 +185,7 @@
181185
"redis",
182186
"redux",
183187
"refetch",
184-
"renderProps",
188+
"renderprops",
185189
"repo",
186190
"rfc",
187191
"rfcs",
@@ -216,24 +220,26 @@
216220
"trello",
217221
"ts",
218222
"tsconfig.json",
223+
"tsconfig",
219224
"tslib",
220225
"tslint",
226+
"twoslash",
221227
"typescript-eslint",
222228
"typings",
223229
"typings",
224230
"udacity",
225231
"uiview",
226232
"unclutter",
227233
"uppercase",
228-
"URIs",
234+
"uris",
229235
"url",
230236
"v2",
231237
"v8",
232238
"vars",
233239
"visualstudios.com",
234240
"voila",
235241
"vscode",
236-
"Vue",
242+
"vue",
237243
"webhook",
238244
"webhooks",
239245
"webpack-y",

0 commit comments

Comments
 (0)