Skip to content

Commit 18910d0

Browse files
mochaaPgithub-actions[bot]
authored andcommitted
chore: Auto generate docs
1 parent 63ae101 commit 18910d0

File tree

5 files changed

+27
-2
lines changed

5 files changed

+27
-2
lines changed

doc/BUILTINS.md

+17
Original file line numberDiff line numberDiff line change
@@ -2710,6 +2710,23 @@ local sources = { null_ls.builtins.formatting.hclfmt }
27102710
- Method: `formatting`
27112711
- Command: `hclfmt`
27122712

2713+
### [htmlbeautifier](https://github.com/threedaymonk/htmlbeautifier)
2714+
2715+
A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates.
2716+
2717+
#### Usage
2718+
2719+
```lua
2720+
local sources = { null_ls.builtins.formatting.htmlbeautifier }
2721+
```
2722+
2723+
#### Defaults
2724+
2725+
- Filetypes: `{ "eruby" }`
2726+
- Method: `formatting`
2727+
- Command: `htmlbeautifier`
2728+
- Args: `{ "$FILENAME" }`
2729+
27132730
### [isort](https://github.com/PyCQA/isort)
27142731

27152732
Python utility / library to sort imports alphabetically and automatically separate them into sections and by type.

doc/builtins.json

+5
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,11 @@
784784
"hcl"
785785
]
786786
},
787+
"htmlbeautifier": {
788+
"filetypes": [
789+
"eruby"
790+
]
791+
},
787792
"isort": {
788793
"filetypes": [
789794
"python"

doc/null-ls.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*null-ls.txt* Last change: 2024 March 15
1+
*null-ls.txt* Last change: 2024 March 21
22

33
==============================================================================
44
Table of Contents *null-ls-table-of-contents*

lua/null-ls/builtins/_meta/filetype_map.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ return {
105105
},
106106
eruby = {
107107
diagnostics = { "erb_lint" },
108-
formatting = { "erb_format", "erb_lint" }
108+
formatting = { "erb_format", "erb_lint", "htmlbeautifier" }
109109
},
110110
fennel = {
111111
formatting = { "fnlfmt" }

lua/null-ls/builtins/_meta/formatting.lua

+3
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ return {
154154
hclfmt = {
155155
filetypes = { "hcl" }
156156
},
157+
htmlbeautifier = {
158+
filetypes = { "eruby" }
159+
},
157160
isort = {
158161
filetypes = { "python" }
159162
},

0 commit comments

Comments
 (0)