From e0c5cbbd280b8c277835c5059b33d348218811f2 Mon Sep 17 00:00:00 2001 From: Techatrix Date: Thu, 8 Aug 2024 07:18:16 +0200 Subject: [PATCH] WIP --- assets/style.css | 58 +++++++++++++++++++--- content/zls/install.md | 61 +++++++++++++++-------- layouts/index.shtml | 9 +++- layouts/zls-install.shtml | 102 ++++++++++++++++++++------------------ layouts/zls-release.shtml | 4 -- 5 files changed, 151 insertions(+), 83 deletions(-) diff --git a/assets/style.css b/assets/style.css index 41ddc08..f6b8b9e 100644 --- a/assets/style.css +++ b/assets/style.css @@ -20,23 +20,58 @@ nav { h1, h2, -h3 { +h3, +h4, +h5, +h6 { font-family: sans-serif; - font-weight: 600; + font-weight: bold; + font-size: inherit; +} + +h1 { + font-size: 2rem; +} + +h2 { + font-size: 1.3rem; +} + +h3 { + font-size: 1.2rem; +} + +h4 { + font-size: 1rem; +} + +h1 { + margin-top: 1rem; + margin-bottom: 1rem; align-self: center; text-align: center; } -h2 { - border-bottom: 1px dashed #aaa; +h2, +h3, +h4, +h5, +h6 { + margin-top: 0.5rem; + margin-bottom: 0.5rem; +} + +h2, +h3 { + border-bottom: 1px dashed #666; } body { display: flex; flex-direction: column; min-height: 100vh; - padding: 0px; - margin: 0px; + margin: 0; + padding: 0; font-family: sans-serif; } @@ -79,6 +114,11 @@ p:has(+ pre) { margin-bottom: 0; } +p { + margin-top: 0.35rem; + margin-bottom: 0.35rem; +} + p code { font-weight: bold; } @@ -105,8 +145,12 @@ figure img { max-width: 100%; } +body { + color: #222; +} + a { - color: #121212; + color: #111; } pre { diff --git a/content/zls/install.md b/content/zls/install.md index 2c238d8..e952d99 100644 --- a/content/zls/install.md +++ b/content/zls/install.md @@ -15,7 +15,8 @@ > Many editor extensions can find Zig and ZLS automatically by adding them to your `PATH`. -
+ +
## Visual Studio Code @@ -27,7 +28,7 @@ Using ZLS in VS Code is as simple as installing the [official Zig Language exten
-
+

Sublime Text

@@ -39,7 +40,11 @@ Using ZLS in VS Code is as simple as installing the [official Zig Language exten 3. place the following snippet in the `Zig.sublime-settings` (Preferences -> Package Settings -> Zig -> Settings)
-show Zig.sublime-settings + + + show **Zig.sublime-settings** + + ```json // Zig.sublime-settings @@ -56,7 +61,11 @@ Using ZLS in VS Code is as simple as installing the [official Zig Language exten ### Sublime Text 4
-show LSP.sublime-settings + + + show **LSP.sublime-settings** + + ```json // LSP.sublime-settings @@ -107,7 +116,11 @@ Using ZLS in VS Code is as simple as installing the [official Zig Language exten ### Sublime Text 3
-show LSP.sublime-settings + + + show **LSP.sublime-settings** + + ```json // LSP.sublime-settings @@ -128,7 +141,7 @@ Using ZLS in VS Code is as simple as installing the [official Zig Language exten
-
+
## CLion / other JetBrains IDEs @@ -146,7 +159,7 @@ If everything is set up correctly, an LSP status indicator should appear in the
-
+

Helix

@@ -159,7 +172,11 @@ To apply in-editor configuration or manually specify paths to `zls` or `zig`, op
-show languages.toml + + + show **languages.toml** + + ```toml [language-server.zls] @@ -192,21 +209,21 @@ For more information on the health check results refer to [Health check](https:/
-
+
## Neovim / Vim8 - + -
+

nvim-lspconfig

@@ -321,7 +338,7 @@ EOF
-
+
### CoC @@ -348,7 +365,7 @@ Add ZLS in your `coc-settings.json` (open it using `:CocConfig`) like this:
-
+
### YouCompleteMe @@ -373,7 +390,7 @@ let g:ycm_language_server =
-
+
### LanguageClient-neovim @@ -393,7 +410,7 @@ let g:LanguageClient_serverCommands = {
-
+
## Emacs @@ -407,7 +424,7 @@ Use `M-x eglot` in a zig-mode buffer to start the server.
-
+
## Doom Emacs @@ -420,7 +437,7 @@ Use `M-x eglot` in a zig-mode buffer to start the server.
-
+
## Spacemacs @@ -436,7 +453,7 @@ Use `M-x eglot` in a zig-mode buffer to start the server.
-
+
## Kate @@ -467,7 +484,7 @@ If you wish to manually specify the path to the ZLS executable, open `Settings - > 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. -
+
## In-Editor Configuration (recommended) @@ -488,7 +505,7 @@ This feature is available for the following editors:
-
+
## zls.json @@ -572,7 +589,7 @@ info ( main ): A path to the local configuration folder will be printed instead
-
+
## Per-build Configuration (advanced) diff --git a/layouts/index.shtml b/layouts/index.shtml index a84ba87..ed3e533 100644 --- a/layouts/index.shtml +++ b/layouts/index.shtml @@ -2,14 +2,19 @@ diff --git a/layouts/zls-install.shtml b/layouts/zls-install.shtml index e223ce0..b7ce9a5 100644 --- a/layouts/zls-install.shtml +++ b/layouts/zls-install.shtml @@ -2,69 +2,73 @@