Skip to content

Commit ac1f2d4

Browse files
chore(CG-10487): add back docs spell checker pre-commit (#90)
1 parent e0582a9 commit ac1f2d4

File tree

4 files changed

+80
-80
lines changed

4 files changed

+80
-80
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ repos:
5555
hooks:
5656
- id: sync-pre-commit-deps
5757

58-
# - repo: https://github.com/codespell-project/codespell
59-
# rev: v2.2.4
60-
# hooks:
61-
# - id: codespell
62-
# additional_dependencies:
63-
# - tomli
64-
# files: "codegen-backend/docs/.*/.*.mdx"
58+
- repo: https://github.com/codespell-project/codespell
59+
rev: v2.2.4
60+
hooks:
61+
- id: codespell
62+
additional_dependencies:
63+
- tomli
64+
files: "docs/.*/.*.mdx"
6565

6666
- repo: https://github.com/fpgmaas/deptry.git
6767
rev: "0.22.0"

docs/building-with-codegen/reducing-conditions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else:
3434
print('MY_FEATURE: OFF')
3535
```
3636

37-
`.reduce_condition` allows you to determinstically reduce this code to the following:
37+
`.reduce_condition` allows you to deterministically reduce this code to the following:
3838

3939
```python
4040
print('MY_FEATURE: ON')

docs/prism.css

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Override font variables */
22
:root {
3-
--font-jetbrains-mono: Menlo, Monaco, "Courier New", monospace !important;
4-
/* --font-jetbrains-mono: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; */
3+
--font-jetbrains-mono: Menlo, Monaco, "Courier New", monospace !important;
4+
/* --font-jetbrains-mono: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; */
55
}
66

77
pre[class*="language-"],
@@ -10,165 +10,165 @@ pre,
1010
code,
1111
kbd,
1212
samp {
13-
font-family: Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important;
14-
--font-jetbrains-mono: Consolas, Monaco, "Andale Mono", "Ubuntu Mono",
15-
monospace !important;
16-
font-weight: 500 !important;
13+
font-family: Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important;
14+
--font-jetbrains-mono: Consolas, Monaco, "Andale Mono", "Ubuntu Mono",
15+
monospace !important;
16+
font-weight: 500 !important;
1717
}
1818

1919
pre[class*="language-"] {
20-
font-family: Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important;
21-
font-weight: 500 !important;
22-
text-align: left;
23-
white-space: pre;
24-
word-spacing: normal;
25-
word-break: normal;
26-
word-wrap: normal;
27-
line-height: 1.5;
28-
-moz-tab-size: 4;
29-
-o-tab-size: 4;
30-
tab-size: 4;
31-
-webkit-hyphens: none;
32-
-moz-hyphens: none;
33-
-ms-hyphens: none;
34-
hyphens: none;
20+
font-family: Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important;
21+
font-weight: 500 !important;
22+
text-align: left;
23+
white-space: pre;
24+
word-spacing: normal;
25+
word-break: normal;
26+
word-wrap: normal;
27+
line-height: 1.5;
28+
-moz-tab-size: 4;
29+
-o-tab-size: 4;
30+
tab-size: 4;
31+
-webkit-hyphens: none;
32+
-moz-hyphens: none;
33+
-ms-hyphens: none;
34+
hyphens: none;
3535
}
3636
pre[class*="language-"]::-moz-selection,
3737
pre[class*="language-"] ::-moz-selection,
3838
code[class*="language-"]::-moz-selection,
3939
code[class*="language-"] ::-moz-selection {
40-
text-shadow: none;
41-
background: #362d45;
40+
text-shadow: none;
41+
background: #362d45;
4242
}
4343
pre[class*="language-"]::selection,
4444
pre[class*="language-"] ::selection,
4545
code[class*="language-"]::selection,
4646
code[class*="language-"] ::selection {
47-
text-shadow: none;
48-
background: #362d45;
47+
text-shadow: none;
48+
background: #362d45;
4949
}
5050
@media print {
51-
code[class*="language-"],
52-
pre[class*="language-"] {
53-
text-shadow: none;
54-
}
51+
code[class*="language-"],
52+
pre[class*="language-"] {
53+
text-shadow: none;
54+
}
5555
}
5656
/* Code blocks */
5757
pre[class*="language-"] {
58-
padding: 1em;
59-
margin: 0.5em 0;
60-
overflow: auto;
58+
padding: 1em;
59+
margin: 0.5em 0;
60+
overflow: auto;
6161
}
6262
:not(pre) > code[class*="language-"],
6363
pre[class*="language-"] {
64-
color: white;
64+
color: white;
6565
}
6666
:not(pre) > code[class*="language-"] {
67-
padding: 0.1em;
68-
border-radius: 0.3em;
69-
white-space: normal;
67+
padding: 0.1em;
68+
border-radius: 0.3em;
69+
white-space: normal;
7070
}
7171

7272
.language-python .language-bash {
73-
background-color: #15141b !important;
74-
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important;
75-
font-weight: 600 !important;
76-
font-size: 16px !important;
73+
background-color: #15141b !important;
74+
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important;
75+
font-weight: 600 !important;
76+
font-size: 16px !important;
7777
}
7878

7979
.dark\:bg-codeblock:is(.dark *) {
80-
background-color: #15141b !important;
80+
background-color: #15141b !important;
8181
}
8282

8383
.dark\:ring-gray-800\/50:is(.dark *) {
84-
--tw-ring-color: #15141b !important;
84+
--tw-ring-color: #15141b !important;
8585
}
8686

8787
.codeblock-dark {
88-
background-color: #15141b !important;
89-
color: #edecee !important;
90-
font-size: 20px !important;
88+
background-color: #15141b !important;
89+
color: #edecee !important;
90+
font-size: 20px !important;
9191
}
9292

9393
.dark .prose {
94-
color: #edecee !important;
95-
font-size: 16px !important;
94+
color: #edecee !important;
95+
font-size: 16px !important;
9696
}
9797

9898
/* single backticks are orange */
9999
.dark .prose p code {
100-
color: #ffca85 !important;
100+
color: #ffca85 !important;
101101
}
102102
.dark .prose ul code {
103-
color: #ffca85 !important;
103+
color: #ffca85 !important;
104104
}
105105

106106
/* links are purple */
107107
.prose a {
108-
color: #a277ff !important;
108+
color: #a277ff !important;
109109
}
110110

111111
.token.tag {
112-
color: #a277ff !important;
112+
color: #a277ff !important;
113113
}
114114
.token.variable {
115-
color: #a277ff !important;
115+
color: #a277ff !important;
116116
}
117117
.token.keyword {
118-
color: #a277ff !important;
118+
color: #a277ff !important;
119119
}
120120
.token.operator {
121-
color: #a277ff !important;
121+
color: #a277ff !important;
122122
}
123123
.token.attr-name {
124-
color: #a277ff !important;
124+
color: #a277ff !important;
125125
}
126126
.token.punctuation {
127-
color: #a277ff !important;
127+
color: #a277ff !important;
128128
}
129129
.token.constant {
130-
color: #a277ff !important;
130+
color: #a277ff !important;
131131
}
132132
.token.string {
133-
color: #61ffca !important;
133+
color: #61ffca !important;
134134
}
135135
.token.inserted {
136-
color: #61ffca !important;
136+
color: #61ffca !important;
137137
}
138138
.token.changed {
139-
color: #ffca85 !important;
139+
color: #ffca85 !important;
140140
}
141141
.token.function {
142-
color: #ffca85 !important;
142+
color: #ffca85 !important;
143143
}
144144
.token.deleted {
145-
color: #ff6767 !important;
145+
color: #ff6767 !important;
146146
}
147147
.token.builtin {
148-
color: #ffca85 !important;
148+
color: #ffca85 !important;
149149
}
150150
.token.property {
151-
color: #ffca85 !important;
151+
color: #ffca85 !important;
152152
}
153153
.token.comment {
154-
color: #6d6d6d !important;
154+
color: #6d6d6d !important;
155155
}
156156
.token.class-name {
157-
color: #82e2ff !important;
157+
color: #82e2ff !important;
158158
}
159159
.token.important,
160160
.token.bold {
161-
font-weight: bold !important;
161+
font-weight: bold !important;
162162
}
163163
.token.italic {
164-
font-style: italic !important;
164+
font-style: italic !important;
165165
}
166166

167167
.language-bash {
168-
color: #ffca85 !important;
168+
color: #ffca85 !important;
169169
}
170170

171171
.language-bash .token {
172-
color: #ffca85 !important;
173-
font-weight: 700 !important;
172+
color: #ffca85 !important;
173+
font-weight: 700 !important;
174174
}

docs/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.dark .bg-codeblock {
2-
background-color: #15141b !important;
2+
background-color: #15141b !important;
33
}

0 commit comments

Comments
 (0)