Skip to content

Commit 63ff8f8

Browse files
committed
Deprecate bin/build
1 parent 1b4751e commit 63ff8f8

5 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ jobs:
1414
with:
1515
ruby-version: "3.3"
1616
bundler-cache: true
17-
- run: bin/build
17+
- run: bundle exec jekyll build
1818
- run: bin/htmlproofer

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
ruby-version: "3.3"
2828
bundler-cache: true
29-
- run: bin/build
29+
- run: bundle exec jekyll build
3030
- uses: actions/configure-pages@v5
3131
- uses: actions/upload-pages-artifact@v3
3232
with:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Visit `localhost:4000` to view the site.
1919
## Build
2020

2121
```sh
22-
bin/build
22+
bundle exec jekyll build
2323
```
2424

25-
Runs `jekyll build` and formats output HTML with `htmlbeautifier`.
25+
Formats output HTML with `htmlbeautifier` automatically via a Jekyll hook.
2626

2727
## Check
2828

_plugins/htmlbeautifier.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require "htmlbeautifier"
2+
3+
Jekyll::Hooks.register :site, :post_write do |site|
4+
Dir.glob(File.join(site.dest, "**", "*.html")).each do |file|
5+
source = File.read(file)
6+
beautified = HtmlBeautifier.beautify(source)
7+
File.write(file, beautified)
8+
end
9+
end

bin/build

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)