Skip to content

Commit e0c5cbb

Browse files
committed
WIP
1 parent 7659ffb commit e0c5cbb

File tree

5 files changed

+151
-83
lines changed

5 files changed

+151
-83
lines changed

assets/style.css

Lines changed: 51 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,58 @@ nav {
2020

2121
h1,
2222
h2,
23-
h3 {
23+
h3,
24+
h4,
25+
h5,
26+
h6 {
2427
font-family: sans-serif;
25-
font-weight: 600;
28+
font-weight: bold;
29+
font-size: inherit;
30+
}
31+
32+
h1 {
33+
font-size: 2rem;
34+
}
35+
36+
h2 {
37+
font-size: 1.3rem;
38+
}
39+
40+
h3 {
41+
font-size: 1.2rem;
42+
}
43+
44+
h4 {
45+
font-size: 1rem;
46+
}
47+
48+
h1 {
49+
margin-top: 1rem;
50+
margin-bottom: 1rem;
2651
align-self: center;
2752
text-align: center;
2853
}
2954

30-
h2 {
31-
border-bottom: 1px dashed #aaa;
55+
h2,
56+
h3,
57+
h4,
58+
h5,
59+
h6 {
60+
margin-top: 0.5rem;
61+
margin-bottom: 0.5rem;
62+
}
63+
64+
h2,
65+
h3 {
66+
border-bottom: 1px dashed #666;
3267
}
3368

3469
body {
3570
display: flex;
3671
flex-direction: column;
3772
min-height: 100vh;
38-
padding: 0px;
39-
margin: 0px;
73+
margin: 0;
74+
padding: 0;
4075
font-family: sans-serif;
4176
}
4277

@@ -79,6 +114,11 @@ p:has(+ pre) {
79114
margin-bottom: 0;
80115
}
81116

117+
p {
118+
margin-top: 0.35rem;
119+
margin-bottom: 0.35rem;
120+
}
121+
82122
p code {
83123
font-weight: bold;
84124
}
@@ -105,8 +145,12 @@ figure img {
105145
max-width: 100%;
106146
}
107147

148+
body {
149+
color: #222;
150+
}
151+
108152
a {
109-
color: #121212;
153+
color: #111;
110154
}
111155

112156
pre {

content/zls/install.md

Lines changed: 39 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
> Many editor extensions can find Zig and ZLS automatically by adding them to your `PATH`.
1717
18-
<details>
18+
<!-- `name` attribute on `<details>`: https://caniuse.com/mdn-html_elements_details_name -->
19+
<details name="editor-extensions">
1920
<summary>
2021

2122
## Visual Studio Code
@@ -27,7 +28,7 @@ Using ZLS in VS Code is as simple as installing the [official Zig Language exten
2728

2829
</details> <!-- Visual Studio Code -->
2930

30-
<details>
31+
<details name="editor-extensions">
3132
<summary>
3233

3334
<h2 id="sublime-text">Sublime Text</h2> <!-- linked from "In-Editor Configuration" -->
@@ -39,7 +40,11 @@ Using ZLS in VS Code is as simple as installing the [official Zig Language exten
3940
3. place the following snippet in the `Zig.sublime-settings` (Preferences -> Package Settings -> Zig -> Settings)
4041

4142
<details>
42-
<summary>show <b>Zig.sublime-settings</b></summary>
43+
<summary>
44+
45+
show **Zig.sublime-settings**
46+
47+
</summary>
4348

4449
```json
4550
// Zig.sublime-settings
@@ -56,7 +61,11 @@ Using ZLS in VS Code is as simple as installing the [official Zig Language exten
5661
### Sublime Text 4
5762

5863
<details>
59-
<summary>show <b>LSP.sublime-settings</b></summary>
64+
<summary>
65+
66+
show **LSP.sublime-settings**
67+
68+
</summary>
6069

6170
```json
6271
// LSP.sublime-settings
@@ -107,7 +116,11 @@ Using ZLS in VS Code is as simple as installing the [official Zig Language exten
107116
### Sublime Text 3
108117

109118
<details>
110-
<summary>show <b>LSP.sublime-settings</b></summary>
119+
<summary>
120+
121+
show **LSP.sublime-settings**
122+
123+
</summary>
111124

112125
```json
113126
// LSP.sublime-settings
@@ -128,7 +141,7 @@ Using ZLS in VS Code is as simple as installing the [official Zig Language exten
128141

129142
</details> <!-- Sublime Text -->
130143

131-
<details>
144+
<details name="editor-extensions">
132145
<summary>
133146

134147
## CLion / other JetBrains IDEs
@@ -146,7 +159,7 @@ If everything is set up correctly, an LSP status indicator should appear in the
146159

147160
</details> <!-- CLion / other JetBrains IDE -->
148161

149-
<details>
162+
<details name="editor-extensions">
150163
<summary>
151164

152165
<h2 id="helix">Helix</h2> <!-- linked from "In-Editor Configuration" -->
@@ -159,7 +172,11 @@ To apply in-editor configuration or manually specify paths to `zls` or `zig`, op
159172

160173
<details>
161174

162-
<summary>show <b>languages.toml</b></summary>
175+
<summary>
176+
177+
show **languages.toml**
178+
179+
</summary>
163180

164181
```toml
165182
[language-server.zls]
@@ -192,21 +209,21 @@ For more information on the health check results refer to [Health check](https:/
192209

193210
</details> <!-- Helix -->
194211

195-
<details>
212+
<details name="editor-extensions">
196213
<summary>
197214

198215
## Neovim / Vim8
199216

200217
</summary>
201218

202-
<div class="banner-warning">
219+
<blockquote class="banner-warning">
203220

204221
The [mason](https://github.com/williamboman/mason.nvim) package manager can only install the latest tagged release of ZLS which should **not** be used with Zig master.
205222
Do **not** use ZLS from mason with Zig master.
206223

207-
</div>
224+
</blockquote>
208225

209-
<details>
226+
<details name="vim-extensions">
210227
<summary>
211228

212229
<h3 id="nvim-lspconfig">nvim-lspconfig</h3> <!-- linked from "In-Editor Configuration" -->
@@ -321,7 +338,7 @@ EOF
321338

322339
</details> <!-- nvim-lspconfig -->
323340

324-
<details>
341+
<details name="vim-extensions">
325342
<summary>
326343

327344
### CoC
@@ -348,7 +365,7 @@ Add ZLS in your `coc-settings.json` (open it using `:CocConfig`) like this:
348365

349366
</details> <!-- CoC -->
350367

351-
<details>
368+
<details name="vim-extensions">
352369
<summary>
353370

354371
### YouCompleteMe
@@ -373,7 +390,7 @@ let g:ycm_language_server =
373390

374391
</details> <!-- YouCompleteMe -->
375392

376-
<details>
393+
<details name="vim-extensions">
377394
<summary>
378395

379396
### LanguageClient-neovim
@@ -393,7 +410,7 @@ let g:LanguageClient_serverCommands = {
393410

394411
</details>
395412

396-
<details>
413+
<details name="editor-extensions">
397414
<summary>
398415

399416
## Emacs
@@ -407,7 +424,7 @@ Use `M-x eglot` in a zig-mode buffer to start the server.
407424

408425
</details>
409426

410-
<details>
427+
<details name="editor-extensions">
411428
<summary>
412429

413430
## Doom Emacs
@@ -420,7 +437,7 @@ Use `M-x eglot` in a zig-mode buffer to start the server.
420437

421438
</details> <!-- Doom Emacs -->
422439

423-
<details>
440+
<details name="editor-extensions">
424441
<summary>
425442

426443
## Spacemacs
@@ -436,7 +453,7 @@ Use `M-x eglot` in a zig-mode buffer to start the server.
436453

437454
</details> <!-- Spacemacs -->
438455

439-
<details>
456+
<details name="editor-extensions">
440457
<summary>
441458

442459
## Kate
@@ -467,7 +484,7 @@ If you wish to manually specify the path to the ZLS executable, open `Settings -
467484

468485
> ZLS works well without any configuration, all config options have reasonable defaults. Feel free to read through the available config options but unless there is something you want to change, there is no need to configure ZLS.
469486
470-
<details>
487+
<details name="configuration">
471488
<summary>
472489

473490
## In-Editor Configuration (recommended)
@@ -488,7 +505,7 @@ This feature is available for the following editors:
488505

489506
</details> <!-- In-Editor Configuration -->
490507

491-
<details>
508+
<details name="configuration">
492509
<summary>
493510

494511
## zls.json
@@ -572,7 +589,7 @@ info ( main ): A path to the local configuration folder will be printed instead
572589

573590
</details> <!-- zls.json -->
574591

575-
<details>
592+
<details name="configuration">
576593
<summary>
577594

578595
## Per-build Configuration (advanced)

layouts/index.shtml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22
<title id="title" var="$page.title"></title>
33
<head id="head">
44
<style>
5-
h2 {
5+
#header h1 {
6+
font-size: 3rem;
7+
}
8+
#header h2 {
69
border: none;
10+
align-self: center;
11+
text-align: center;
712
}
813
</style>
914
</head>
1015
<header id="header">
1116
<h1>Zigtools</h1>
12-
<h2>We make free and open-source tools for the
17+
<h2>We make free and open-source tools <br> for the
1318
<a href="https://github.com/ziglang/zig">@ziglang</a>
1419
community.</h2>
1520
</header>

0 commit comments

Comments
 (0)