Skip to content

Commit 4c75920

Browse files
authored
Merge branch 'main' into Yton
2 parents a1d4f87 + 68cf0a8 commit 4c75920

35 files changed

+1118
-63
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
1515
- name: Set up Ruby
16-
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1
16+
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
1717
with:
1818
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
1919
- name: Run tests

.github/workflows/schedule-doc-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
1313
- name: Set up Ruby
14-
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1
14+
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
1515
with:
1616
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
1717
- name: Generate report

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1313
- name: Set up Ruby
14-
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1
14+
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
1515
with:
1616
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
1717
- name: Run tests

Gemfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (7.1.2)
4+
activesupport (7.1.3)
55
base64
66
bigdecimal
77
concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -16,12 +16,12 @@ GEM
1616
erubi (>= 1.0.0)
1717
rack (>= 0.9.0)
1818
rouge (>= 1.0.0)
19-
bigdecimal (3.1.5)
19+
bigdecimal (3.1.6)
2020
browser (5.3.1)
2121
byebug (11.1.3)
2222
chunky_png (1.4.0)
2323
coderay (1.1.3)
24-
concurrent-ruby (1.2.2)
24+
concurrent-ruby (1.2.3)
2525
connection_pool (2.4.1)
2626
daemons (1.4.1)
2727
drb (2.2.0)
@@ -30,7 +30,7 @@ GEM
3030
ethon (0.16.0)
3131
ffi (>= 1.15.0)
3232
eventmachine (1.2.7)
33-
execjs (2.8.1)
33+
execjs (2.9.1)
3434
exifr (1.4.0)
3535
ffi (1.15.5)
3636
fspath (3.1.2)
@@ -53,7 +53,7 @@ GEM
5353
in_threads (1.6.0)
5454
method_source (1.0.0)
5555
mini_portile2 (2.8.5)
56-
minitest (5.21.1)
56+
minitest (5.22.2)
5757
multi_json (1.15.0)
5858
mustermann (3.0.0)
5959
ruby2_keywords (~> 0.0.1)
@@ -62,7 +62,7 @@ GEM
6262
net-ssh (>= 5.0.0, < 8.0.0)
6363
net-ssh (7.0.1)
6464
newrelic_rpm (8.16.0)
65-
nokogiri (1.16.0)
65+
nokogiri (1.16.2)
6666
mini_portile2 (~> 2.8.2)
6767
racc (~> 1.4)
6868
options (2.3.2)
@@ -125,7 +125,7 @@ GEM
125125
strings-ansi (0.2.0)
126126
terminal-table (3.0.2)
127127
unicode-display_width (>= 1.1.1, < 3)
128-
terser (1.1.20)
128+
terser (1.2.0)
129129
execjs (>= 0.3.0, < 3)
130130
thin (1.8.2)
131131
daemons (~> 1.0, >= 1.0.9)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ Made something cool? Feel free to open a PR to add a new row to this table! You
176176
| [waiting-for-dev/vim-www](https://github.com/waiting-for-dev/vim-www) | Vim plugin | ![Latest GitHub commit](https://img.shields.io/github/last-commit/waiting-for-dev/vim-www?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/waiting-for-dev/vim-www?logo=github&label) |
177177
| [luckasRanarison/nvim-devdocs](https://github.com/luckasRanarison/nvim-devdocs) | Neovim plugin | ![Latest GitHub commit](https://img.shields.io/github/last-commit/luckasRanarison/nvim-devdocs?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/luckasRanarison/nvim-devdocs?logo=github&label) |
178178
| [toiletbril/dedoc](https://github.com/toiletbril/dedoc) | Terminal based viewer | ![Latest GitHub commit](https://img.shields.io/github/last-commit/toiletbril/dedoc?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/toiletbril/dedoc?logo=github&label) |
179+
| [Raycast Devdocs](https://www.raycast.com/pomdtr/devdocs) | Raycast extension | Unavailable | Unavailable |
179180

180181
## Copyright / License
181182

assets/javascripts/news.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
[
22
[
3-
"2024-01-24",
3+
"2024-02-20",
44
"New documentation: <a href=\"/nextjs/\">Nextjs</a>"
55
],
6+
[
7+
"2024-01-24",
8+
"New documentation: <a href=\"/playwright/\">Playwright</a>"
9+
],
10+
[
11+
"2024-01-20",
12+
"New documentation: <a href=\"/htmx/\">htmx</a>"
13+
],
614
[
715
"2024-01-12",
816
"New documentation: <a href=\"/hammerspoon/\">Hammerspoon</a>"

docs/file-scrapers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/ope
167167
to `path/to/devdocs/docs/openjdk~$VERSION`
168168

169169
```sh
170-
curl -O http://ftp.at.debian.org/debian/pool/main/o/openjdk-21/openjdk-21-doc_21.0.1+12-3_all.deb
171-
tar xf openjdk-21-doc_21.0.1+12-3_all.deb
170+
curl -O http://ftp.at.debian.org/debian/pool/main/o/openjdk-21/openjdk-21-doc_21.0.2+13-2_all.deb
171+
tar xf openjdk-21-doc_21.0.2+13-2_all.deb
172172
tar xf data.tar.xz
173173
mv ./usr/share/doc/openjdk-21-jre-headless/api/ docs/openjdk~$VERSION
174174
```

lib/docs/filters/htmx/clean_html.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module Docs
2+
class Htmx
3+
class CleanHtmlFilter < Filter
4+
def call
5+
css('.zola-anchor').remove
6+
doc.prepend_child("<h1>htmx</h1>") if root_page?
7+
css('div:contains("NEWS:")').remove
8+
css('h2:contains("sponsors"), #sponsor-table').remove
9+
doc
10+
end
11+
end
12+
end
13+
end

lib/docs/filters/htmx/entries.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
module Docs
2+
class Htmx
3+
class EntriesFilter < Docs::EntriesFilter
4+
def get_name
5+
at_css('h1').content
6+
end
7+
8+
def get_type
9+
if slug.start_with?('attributes')
10+
'Attributes'
11+
elsif slug.start_with?('headers')
12+
'Headers'
13+
elsif slug.start_with?('events')
14+
'Events'
15+
elsif slug.start_with?('extensions')
16+
'Extensions'
17+
else
18+
get_name
19+
end
20+
end
21+
22+
def additional_entries
23+
css('h3[id]:has(code)').each_with_object [] do |node, entries|
24+
name = node.at_css('code').content
25+
id = node['id']
26+
entries << [name, id]
27+
end
28+
end
29+
end
30+
end
31+
end

lib/docs/filters/nim/entries.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ def get_name
1616
name.remove! ' User Guide'
1717
name.remove! ' User\'s manual'
1818
name.remove! %r{ \-.*}
19+
name.remove! %r{\Asrc/}
20+
name.remove! %r{\Astd/}
1921
name.strip!
20-
name
22+
name.split("/").last
2123
end
2224

2325
def get_type
@@ -54,10 +56,11 @@ def additional_entries
5456
else
5557

5658
css('.simple-toc-section a, .nested-toc-section a').each do |node|
57-
entry_name = node.content
58-
entry_name.gsub!(/,.*/, '')
59+
match = /^`(.*)`|^(\w+)/.match(node.content)
60+
entry_name = match[1] || match[2]
61+
5962
entry_id = slug + node['href']
60-
entries << [entry_name, entry_id, name]
63+
entries << ["#{entry_name} (#{name})", entry_id, name]
6164
end
6265

6366
end

0 commit comments

Comments
 (0)