Skip to content

Commit 4729fc2

Browse files
committed
build: add pnpm + nodejs
1 parent 5738b8d commit 4729fc2

File tree

4 files changed

+56
-27
lines changed

4 files changed

+56
-27
lines changed

flake.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@
113113
pkgs.mkShell {
114114
buildInputs = check.enabledPackages;
115115

116-
packages = [
117-
virtualenv
118-
pkgs.nodePackages_latest.prettier
119-
pkgs.git-cliff
120-
pkgs.typos
121-
pkgs.uv
122-
];
116+
packages =
117+
builtins.attrValues {
118+
inherit virtualenv;
119+
120+
inherit (pkgs) git-cliff typos uv nodejs;
121+
inherit (pkgs.nodePackages) pnpm prettier;
122+
};
123123

124124
env = {
125125
UV_NO_SYNC = "1";

website/help.html

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ <h1>Proselint</h1>
1414
</p>
1515

1616
<h2>Install</h2>
17+
1718
<div>
1819
<p>Via <em>Pip</em></p>
1920
<pre><code><span class="blue">pip</span> <span class="purple">install</span> <span class="green">proselint</span></code></pre>
@@ -52,6 +53,7 @@ <h2>Install</h2>
5253

5354
<h2>Configuration</h2>
5455
<p>The default configuration is:</p>
56+
5557
<pre><code>{
5658
<span class="blue">"max_errors"</span>: <span class="green">1000</span>,
5759
<span class="blue">"checks"</span>: {
@@ -104,17 +106,17 @@ <h2>Configuration</h2>
104106
<span class="blue">"checks.typography.symbols.curly_quotes"</span>: <span class="red">false</span>
105107
}</code></pre>
106108

107-
108109
<h2>Wire Output</h2>
110+
109111
<p>
110112
<em>Proselint</em> supports structured output for programmatic usage
111113
with the <code>--output-format json</code> flag, like so:
112-
113-
<pre><code><span class="blue">proselint</span> <span class="purple">--output-format</span> <span class="green">json</span> syllabus.md</code></pre>
114114
</p>
115115

116+
<pre><code><span class="blue">proselint</span> <span class="purple">--output-format</span> <span class="green">json</span> syllabus.md</code></pre>
116117

117118
<p>The output schema is:</p>
119+
118120
<pre><code><span class="purple">enum</span> <span class="blue">ErrorCode</span> {
119121
<span class="green">Unknown</span> = -31999,
120122
<span class="green">FileError</span> = -31998,
@@ -148,8 +150,16 @@ <h2>Wire Output</h2>
148150
<span class="green">error</span>?: ResponseError;
149151
}</code></pre>
150152

151-
<p>Every invocation of <em>proselint</em> produces exactly one <code>ProselintOutput</code> object. Both <code>ProselintOutput</code> and <code>FileOutput</code> are tagged unions. <br /> <br />
152-
This means that <code>ProselintOutput</code> will always contain one of <code>result</code> or <code>error</code>, but never both, and the same applies to <code>diagnostics</code> and <code>error</code> for <code>FileOutput</code>.</p>
153+
<p>
154+
Every invocation of <em>proselint</em> produces exactly one
155+
<code>ProselintOutput</code> object. Both
156+
<code>ProselintOutput</code> and <code>FileOutput</code> are tagged
157+
unions. <br /><br />
158+
This means that <code>ProselintOutput</code> will always contain one of
159+
<code>result</code> or <code>error</code>, but never both, and the same
160+
applies to <code>diagnostics</code> and <code>error</code> for
161+
<code>FileOutput</code>.
162+
</p>
153163
</main>
154164

155165
<footer>

website/reset.css

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,22 @@ html {
1414
}
1515

1616
/* Remove default margin in favour of better control in authored CSS */
17-
body, h1, h2, h3, h4, p,
18-
figure, blockquote, dl, dd {
17+
body,
18+
h1,
19+
h2,
20+
h3,
21+
h4,
22+
p,
23+
figure,
24+
blockquote,
25+
dl,
26+
dd {
1927
margin-block-end: 0;
2028
}
2129

2230
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
23-
ul[role='list'],
24-
ol[role='list'] {
31+
ul[role="list"],
32+
ol[role="list"] {
2533
list-style: none;
2634
}
2735

@@ -32,14 +40,21 @@ body {
3240
}
3341

3442
/* Set shorter line heights on headings and interactive elements */
35-
h1, h2, h3, h4,
36-
button, input, label {
43+
h1,
44+
h2,
45+
h3,
46+
h4,
47+
button,
48+
input,
49+
label {
3750
line-height: 1.1;
3851
}
3952

4053
/* Balance text wrapping on headings */
41-
h1, h2,
42-
h3, h4 {
54+
h1,
55+
h2,
56+
h3,
57+
h4 {
4358
text-wrap: balance;
4459
}
4560

@@ -57,8 +72,10 @@ picture {
5772
}
5873

5974
/* Inherit fonts for inputs and buttons */
60-
input, button,
61-
textarea, select {
75+
input,
76+
button,
77+
textarea,
78+
select {
6279
font-family: inherit;
6380
font-size: inherit;
6481
}

website/styles.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
@import "./reset.css";
22

33
body {
4-
font-family: "Georgia", "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
4+
font-family:
5+
"Georgia", "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
56
line-height: 1.65;
67
color: #171717;
78
background-color: #fafafa;
89
}
910

10-
h1, h2, h3 {
11+
h1,
12+
h2,
13+
h3 {
1114
font-family: "Merriweather", "Georgia", serif;
1215
}
1316

@@ -36,8 +39,8 @@ p {
3639
font-size: 1.125rem;
3740
color: #404040;
3841

39-
margin-top: .3rem !important;
40-
margin-bottom: .8rem !important;
42+
margin-top: 0.3rem !important;
43+
margin-bottom: 0.8rem !important;
4144
}
4245

4346
p.sm {
@@ -123,7 +126,6 @@ code .amber {
123126
color: #f59e0b;
124127
}
125128

126-
127129
textarea {
128130
width: 100%;
129131
border: 1px solid #d4d4d4;

0 commit comments

Comments
 (0)