From 10a63346501befb44dea63f18a0718d2d36d8dee Mon Sep 17 00:00:00 2001 From: aodhan Date: Mon, 29 Jan 2024 16:13:28 -0800 Subject: [PATCH 01/31] files --- assets/javascripts/news.json | 4 ++++ lib/docs/filters/nextjs/clean_html.rb | 14 ++++++++++++++ lib/docs/filters/nextjs/entries.rb | 13 +++++++++++++ lib/docs/scrapers/nextjs.rb | 10 ++++++++++ public/icons/docs/nextjs/16.png | Bin 0 -> 537 bytes public/icons/docs/nextjs/16@2x.png | Bin 0 -> 1359 bytes public/icons/docs/nextjs/SOURCE | 2 ++ 7 files changed, 43 insertions(+) create mode 100644 lib/docs/filters/nextjs/clean_html.rb create mode 100644 lib/docs/filters/nextjs/entries.rb create mode 100644 lib/docs/scrapers/nextjs.rb create mode 100644 public/icons/docs/nextjs/16.png create mode 100644 public/icons/docs/nextjs/16@2x.png create mode 100644 public/icons/docs/nextjs/SOURCE diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index 043a0401..435ecaa5 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,4 +1,8 @@ [ + [ + "2024-01-24", + "New documentation: Nextjs" + ], [ "2024-01-12", "New documentation: Hammerspoon" diff --git a/lib/docs/filters/nextjs/clean_html.rb b/lib/docs/filters/nextjs/clean_html.rb new file mode 100644 index 00000000..2897b002 --- /dev/null +++ b/lib/docs/filters/nextjs/clean_html.rb @@ -0,0 +1,14 @@ +module Docs + class Nextjs + class CleanHtmlFilter < Filter + def call + css('.zola-anchor').remove + doc.prepend_child("

htmx

") if root_page? + css('div:contains("NEWS:")').remove + css('h2:contains("sponsors"), #sponsor-table').remove + end + doc + + end + end +end diff --git a/lib/docs/filters/nextjs/entries.rb b/lib/docs/filters/nextjs/entries.rb new file mode 100644 index 00000000..ab14276b --- /dev/null +++ b/lib/docs/filters/nextjs/entries.rb @@ -0,0 +1,13 @@ +module Docs + class Nextjs + class EntriesFilter < Docs::EntriesFilter + def get_name + at_css('h1').content + end + + def get_type + get_name + end + end + end +end \ No newline at end of file diff --git a/lib/docs/scrapers/nextjs.rb b/lib/docs/scrapers/nextjs.rb new file mode 100644 index 00000000..b678caa4 --- /dev/null +++ b/lib/docs/scrapers/nextjs.rb @@ -0,0 +1,10 @@ +module Docs + class Nextjs < UrlScraper + self.name = 'nextjs`' + self.type = 'simple' + self.release = 'v14.1.0' + self.base_url = 'https://nextjs.org/docs' + self.initial_paths = %w(reference/) + html_filters.push 'nextjs/entries', 'nextjs/clean_html' + end +end \ No newline at end of file diff --git a/public/icons/docs/nextjs/16.png b/public/icons/docs/nextjs/16.png new file mode 100644 index 0000000000000000000000000000000000000000..41e7ff4d90fad34bed25a719a9dad73d249dc750 GIT binary patch literal 537 zcmV+!0_OdRP)^uQ+Emx|^rzrzwfZbck`o4oU6LfHTCF|@z_nT}{V(9h zCO(sTy^c&KGkq)&MUnA59{@$8QO0qcA7``KscD+vDW#>|ZufF$BZ?yS`#naZ5jc(m z0B{_K`FsvpmVMUS?e@jTt=tU@#E!kiR<<1$CT11+qQeqH0>Cs z?>G+2=kx4vIIv2k!T_*#yUj#V42-2|n!^L&KKqr;W`kz4iOFPwWHO1xVgX8NxQy|l zD87EB3(K-F91bxakFj2_10($1*Bh@W$}d95?J?nbp8xLm`*2+s-EKDkCWPD+MH%pd zApBNU_5GeWpU=qUa=2VB0D#-=hDM`-LZN_SvFJBQr_=9*kQD$x*Y$6Oq^c@wwOT9^ ziQI*x{|{>3+wf|f6lJ!{$Px8iA3Tx9*++QAuG$W b0`-3YOiJ%0RMtZJ00000NkvXXu0mjfzh?b} literal 0 HcmV?d00001 diff --git a/public/icons/docs/nextjs/16@2x.png b/public/icons/docs/nextjs/16@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..e35d18e294a4deb1ca68e615990f0eaf473914c4 GIT binary patch literal 1359 zcmV-V1+e;wP)sU&PRW_dGiB19;ORR=niNPo<>cV_NB2#sKWulptUW$wA>`|i2t+_{IK z0YoAZkq{CvO>?+VC=5|by8$pk5EeyIe8O?u6d~lVr%#_2>h(!#8OX8>0Nwd~epFGE zGpee(HBBRiVQjPGc^-DVowc{Os~sI3Q!OnmzXDi@$K#Fc@e6WaFc^I3a=9oWgaN2) z5JH&C<FmT@I^KCRjTuzAB>)i;4!xv()Sj}hy0K(xg357zp zold9GEb-3aa5#)mD0C|liBuO6jYi3-Q>Si;qWD#aKOdqfvQQ{=yJ{o`1_mxT9FDKH z^PR)#bQnA|2gK7RZ-{{H>@U5zGeqj>l3-LCcZ z^*fv8{Yd~Jr04bP*QXg{WfzH}2uYG4NfP$$+gFvq@AspxuMcf)ZDr>fV^~^RI!y@a zE`1CJgZHYHn7x`Vrf2=O4Sts0HBn1bB&O1LDzMRjEq206iAYUiHQjiLK-@PEpUP$ zEH)!TRaKlldltoF5tlAq!sW}COW$i%!4?ETSl|Rfc+B&BGaB&x`E!hpjsgHCCMIzF z`0=`{faiHwt=1=;AP7@-yS=_kpbW;x$1yoM37gG^nVA`gqKIrZ3rcC#b#}X*SuB<* z4#2$I?M^o+wE2vWAgxj{{H^DuHrXu-mpq`hYufS zi9~`eEG)2V*RIukDFuVUdnGl|Xtdkqa?wf)L{VgtB(dJ!-l~oV2M5{Q+#H*po@U36 z9jj>9+S;l|qtPA!-~qtz_orK0TE0;frMFzTbX~{l>MB%Kts2(l!uA(BAp}Q{9-X$?Y`-NEiBAF&i3E-uIr2xLQ1~&E$=I6B2LO2S;srW8JHc@r zcJJPeSFc{-^B&LR7IB_DOs_ICwSgh{_TLz|S;^oVi*uQ^2 zbX|vG7)Yg3004)>VfOX)U7eks{d3EHTe^02b^X0}?_SH=+S<3et~VV8N-2`bB%Dqs z48uS+n+3;lIC=8q&sM8-e0h1fWV=m3B9Xwsg9m3l9uN27!-vp+i9|l1M=qB`u~-Dp z^QI(8zwkW&Q#>BucISLiuq!Jo=<4d4^>{psl+y3A*=*A}p=lc2Zg=L;p+i>%LAbM% zye4E>_5}igM=qC3Z=yA$!C>%Vt=6or=9DqkqiNcxq9{M8s@h(oIZbzTbo}mgI>$`Y zT&&fcHgv|3NW{i*Tu|5b;bO5kxY?c)K@b+LR_kM)=cgEB^Ut0=`=?%?{{nQb|7?XQ RH8lVL002ovPDHLkV1kzqn0o*K literal 0 HcmV?d00001 diff --git a/public/icons/docs/nextjs/SOURCE b/public/icons/docs/nextjs/SOURCE new file mode 100644 index 00000000..178b8630 --- /dev/null +++ b/public/icons/docs/nextjs/SOURCE @@ -0,0 +1,2 @@ +https://assets.vercel.com/image/upload/v1662130559/nextjs/Icon_dark_background.png +https://github.com/vercel/next.js/blob/canary/examples/cms-enterspeed/public/favicon/favicon.ico \ No newline at end of file From 903fac58c242bca8d4d928e286b0feac1cd786a8 Mon Sep 17 00:00:00 2001 From: Mike Murphy Date: Mon, 5 Feb 2024 17:28:23 -0800 Subject: [PATCH 02/31] Fixed compile error in nextjs/clean_html.rb --- lib/docs/filters/nextjs/clean_html.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/docs/filters/nextjs/clean_html.rb b/lib/docs/filters/nextjs/clean_html.rb index 2897b002..4f4f6240 100644 --- a/lib/docs/filters/nextjs/clean_html.rb +++ b/lib/docs/filters/nextjs/clean_html.rb @@ -6,9 +6,8 @@ module Docs doc.prepend_child("

htmx

") if root_page? css('div:contains("NEWS:")').remove css('h2:contains("sponsors"), #sponsor-table').remove - end doc - + end end end end From aafcac1fdec05b144b044b621987a039217f2259 Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 10 Feb 2024 17:46:41 -0800 Subject: [PATCH 03/31] Now generates output, still need to perfect filters --- lib/docs/scrapers/nextjs.rb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lib/docs/scrapers/nextjs.rb b/lib/docs/scrapers/nextjs.rb index b678caa4..299eb70c 100644 --- a/lib/docs/scrapers/nextjs.rb +++ b/lib/docs/scrapers/nextjs.rb @@ -1,10 +1,20 @@ module Docs class Nextjs < UrlScraper - self.name = 'nextjs`' + self.name = 'nextjs' self.type = 'simple' self.release = 'v14.1.0' self.base_url = 'https://nextjs.org/docs' - self.initial_paths = %w(reference/) - html_filters.push 'nextjs/entries', 'nextjs/clean_html' + self.initial_paths = %w(reference/) + self.links = { + home: 'https://www.nextjs.org/', + code: 'https://github.com/vercel/next.js' + } + + html_filters.push 'nextjs/entries', 'nextjs/clean_html' + + options[:attribution] = <<-HTML + © 2024 Vercel, Inc. + Licensed under the MIT License. + HTML end -end \ No newline at end of file +end From deb5f816549329f09299a6c044e8cd230c4e2f2b Mon Sep 17 00:00:00 2001 From: murphnomer Date: Tue, 13 Feb 2024 19:25:07 -0800 Subject: [PATCH 04/31] Fixed project name --- lib/docs/filters/nextjs/clean_html.rb | 2 +- lib/docs/scrapers/nextjs.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/nextjs/clean_html.rb b/lib/docs/filters/nextjs/clean_html.rb index 4f4f6240..2ff629df 100644 --- a/lib/docs/filters/nextjs/clean_html.rb +++ b/lib/docs/filters/nextjs/clean_html.rb @@ -3,7 +3,7 @@ module Docs class CleanHtmlFilter < Filter def call css('.zola-anchor').remove - doc.prepend_child("

htmx

") if root_page? + doc.prepend_child("

NextJS

") if root_page? css('div:contains("NEWS:")').remove css('h2:contains("sponsors"), #sponsor-table').remove doc diff --git a/lib/docs/scrapers/nextjs.rb b/lib/docs/scrapers/nextjs.rb index 299eb70c..a20cf800 100644 --- a/lib/docs/scrapers/nextjs.rb +++ b/lib/docs/scrapers/nextjs.rb @@ -1,6 +1,6 @@ module Docs class Nextjs < UrlScraper - self.name = 'nextjs' + self.name = 'NextJS' self.type = 'simple' self.release = 'v14.1.0' self.base_url = 'https://nextjs.org/docs' From a1d4f87fc4860305027b4c1ecfa61c949b492ea2 Mon Sep 17 00:00:00 2001 From: Yen Ton Date: Tue, 20 Feb 2024 00:24:38 -0800 Subject: [PATCH 05/31] get nextjs types by subpath, removed the sticky menu --- lib/docs/filters/nextjs/clean_html.rb | 3 ++- lib/docs/filters/nextjs/entries.rb | 34 ++++++++++++++++++++------- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/lib/docs/filters/nextjs/clean_html.rb b/lib/docs/filters/nextjs/clean_html.rb index 2ff629df..8c290d58 100644 --- a/lib/docs/filters/nextjs/clean_html.rb +++ b/lib/docs/filters/nextjs/clean_html.rb @@ -3,9 +3,10 @@ module Docs class CleanHtmlFilter < Filter def call css('.zola-anchor').remove - doc.prepend_child("

NextJS

") if root_page? + doc.prepend_child("

NextJS2

") if root_page? css('div:contains("NEWS:")').remove css('h2:contains("sponsors"), #sponsor-table').remove + css('div.sticky').remove #remove the floating menu doc end end diff --git a/lib/docs/filters/nextjs/entries.rb b/lib/docs/filters/nextjs/entries.rb index ab14276b..fc785d1c 100644 --- a/lib/docs/filters/nextjs/entries.rb +++ b/lib/docs/filters/nextjs/entries.rb @@ -1,13 +1,29 @@ module Docs - class Nextjs - class EntriesFilter < Docs::EntriesFilter - def get_name - at_css('h1').content - end + class Nextjs + class EntriesFilter < Docs::EntriesFilter + def get_name + name = at_css('h1').content + name.strip! + name + end - def get_type - get_name - end + def get_type + if subpath.include?('/architecture') + 'Architecture' + elsif subpath.include?('/community') + 'Community' + elsif subpath.include?('/getting-started') + 'Getting Started' + elsif subpath.include?('/messages') + 'Messages' + elsif subpath.include?('/app') + 'Using App Router' + elsif subpath.include?('/pages') + 'Using Pages Router' + else + get_name end + end end -end \ No newline at end of file + end +end From da6cab72d0666a74df40988525d8de8f0d3edf0f Mon Sep 17 00:00:00 2001 From: aodhan Date: Sat, 24 Feb 2024 09:52:31 -0800 Subject: [PATCH 06/31] removed footer --- lib/docs/filters/nextjs/clean_html.rb | 2 ++ package-lock.json | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 package-lock.json diff --git a/lib/docs/filters/nextjs/clean_html.rb b/lib/docs/filters/nextjs/clean_html.rb index 8c290d58..e86f421c 100644 --- a/lib/docs/filters/nextjs/clean_html.rb +++ b/lib/docs/filters/nextjs/clean_html.rb @@ -7,6 +7,8 @@ module Docs css('div:contains("NEWS:")').remove css('h2:contains("sponsors"), #sponsor-table').remove css('div.sticky').remove #remove the floating menu + css('footer').remove + css('div.feedback_inlineTriggerWrapper__o7yUx').remove doc end end diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..c77b993a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "devdocs", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} From 54ec89c2ed2c9d67acd96e0d139bc16dbdce1add Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 26 Feb 2024 22:16:15 -0800 Subject: [PATCH 07/31] Removed Previous and Next links from bottom of pages --- lib/docs/filters/nextjs/clean_html.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/docs/filters/nextjs/clean_html.rb b/lib/docs/filters/nextjs/clean_html.rb index e86f421c..ab5d6164 100644 --- a/lib/docs/filters/nextjs/clean_html.rb +++ b/lib/docs/filters/nextjs/clean_html.rb @@ -9,6 +9,8 @@ module Docs css('div.sticky').remove #remove the floating menu css('footer').remove css('div.feedback_inlineTriggerWrapper__o7yUx').remove + css('header').remove #remove links from the top of the page + css('nav').remove doc end end From e3aa27cc31242c594fcf337c269b3ffa60ca7472 Mon Sep 17 00:00:00 2001 From: Yen Ton Date: Sun, 3 Mar 2024 01:01:03 -0800 Subject: [PATCH 08/31] sorted sub-subsection by subsection --- lib/docs/filters/nextjs/clean_html.rb | 1 + lib/docs/filters/nextjs/entries.rb | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/nextjs/clean_html.rb b/lib/docs/filters/nextjs/clean_html.rb index ab5d6164..6197de17 100644 --- a/lib/docs/filters/nextjs/clean_html.rb +++ b/lib/docs/filters/nextjs/clean_html.rb @@ -7,6 +7,7 @@ module Docs css('div:contains("NEWS:")').remove css('h2:contains("sponsors"), #sponsor-table').remove css('div.sticky').remove #remove the floating menu + css('div.-mt-4').remove #remove the navigation line css('footer').remove css('div.feedback_inlineTriggerWrapper__o7yUx').remove css('header').remove #remove links from the top of the page diff --git a/lib/docs/filters/nextjs/entries.rb b/lib/docs/filters/nextjs/entries.rb index fc785d1c..4e67f00d 100644 --- a/lib/docs/filters/nextjs/entries.rb +++ b/lib/docs/filters/nextjs/entries.rb @@ -4,7 +4,13 @@ module Docs def get_name name = at_css('h1').content name.strip! - name + #name + subpath_items = subpath.split('/', -1) + if subpath_items.length >= 5 + subpath_items[3].capitalize + ': ' + name # e.g. Routing: Defining Routes + else + name + end end def get_type @@ -16,8 +22,16 @@ module Docs 'Getting Started' elsif subpath.include?('/messages') 'Messages' + elsif subpath.include?('/app/building-your-application') + 'Using App Router: Building your application' + elsif subpath.include?('/app/api-reference') + 'Using App Router: api-reference' elsif subpath.include?('/app') 'Using App Router' + elsif subpath.include?('/pages/building-your-application') + 'Using Pages Router: Building your application' + elsif subpath.include?('/pages/api-reference') + 'Using Pages Router: api-reference' elsif subpath.include?('/pages') 'Using Pages Router' else From 119daa01591a09f6302eea0b98a986cd493db13e Mon Sep 17 00:00:00 2001 From: giri Date: Fri, 8 Mar 2024 08:08:37 +0100 Subject: [PATCH 09/31] Update README.md to include new Vim plugin devdocs.vim is a plugin that allows viewing and navigating devdocs.io documents inside Vim, without ever leaving Vim. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ea7d3720..b39c5cdc 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,7 @@ Made something cool? Feel free to open a PR to add a new row to this table! You | [mohamed3nan/DevDocs-Tab](https://github.com/mohamed3nan/DevDocs-Tab) | VS Code extension (view as tab) | ![Latest GitHub commit](https://img.shields.io/github/last-commit/mohamed3nan/DevDocs-Tab?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/mohamed3nan/DevDocs-Tab?logo=github&label) | | [deibit/vscode-devdocs](https://marketplace.visualstudio.com/items?itemName=deibit.devdocs) | VS Code extension (open the browser) | ![Latest GitHub commit](https://img.shields.io/github/last-commit/deibit/vscode-devdocs?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/deibit/vscode-devdocs?logo=github&label) | | [mdh34/quickDocs](https://github.com/mdh34/quickDocs) | Vala/Python based viewer | ![Latest GitHub commit](https://img.shields.io/github/last-commit/mdh34/quickDocs?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/mdh34/quickDocs?logo=github&label) | +| [girishji/devdocs.vim](https://github.com/girishji/devdocs.vim) | Vim plugin | ![Latest GitHub commit](https://img.shields.io/github/last-commit/girishji/devdocs.vim?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/girishji/devdocs.vim?logo=github&label) | | [romainl/vim-devdocs](https://github.com/romainl/vim-devdocs) | Vim plugin | ![Latest GitHub commit](https://img.shields.io/github/last-commit/romainl/vim-devdocs?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/romainl/vim-devdocs?logo=github&label) | | [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) | | [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) | From ed71ddef611132b5b910bfed0c07dcc5c23e839a Mon Sep 17 00:00:00 2001 From: giri Date: Fri, 8 Mar 2024 08:13:50 +0100 Subject: [PATCH 10/31] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b39c5cdc..bfb86fbd 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ Made something cool? Feel free to open a PR to add a new row to this table! You | [mohamed3nan/DevDocs-Tab](https://github.com/mohamed3nan/DevDocs-Tab) | VS Code extension (view as tab) | ![Latest GitHub commit](https://img.shields.io/github/last-commit/mohamed3nan/DevDocs-Tab?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/mohamed3nan/DevDocs-Tab?logo=github&label) | | [deibit/vscode-devdocs](https://marketplace.visualstudio.com/items?itemName=deibit.devdocs) | VS Code extension (open the browser) | ![Latest GitHub commit](https://img.shields.io/github/last-commit/deibit/vscode-devdocs?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/deibit/vscode-devdocs?logo=github&label) | | [mdh34/quickDocs](https://github.com/mdh34/quickDocs) | Vala/Python based viewer | ![Latest GitHub commit](https://img.shields.io/github/last-commit/mdh34/quickDocs?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/mdh34/quickDocs?logo=github&label) | -| [girishji/devdocs.vim](https://github.com/girishji/devdocs.vim) | Vim plugin | ![Latest GitHub commit](https://img.shields.io/github/last-commit/girishji/devdocs.vim?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/girishji/devdocs.vim?logo=github&label) | +| [girishji/devdocs.vim](https://github.com/girishji/devdocs.vim) | Vim plugin & TUI (browse & navigate inside Vim) | ![Latest GitHub commit](https://img.shields.io/github/last-commit/girishji/devdocs.vim?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/girishji/devdocs.vim?logo=github&label) | | [romainl/vim-devdocs](https://github.com/romainl/vim-devdocs) | Vim plugin | ![Latest GitHub commit](https://img.shields.io/github/last-commit/romainl/vim-devdocs?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/romainl/vim-devdocs?logo=github&label) | | [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) | | [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) | From 6772caa60ef97f5783cf385e910f723582bb5b9d Mon Sep 17 00:00:00 2001 From: giri Date: Fri, 8 Mar 2024 08:14:53 +0100 Subject: [PATCH 11/31] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bfb86fbd..a54f4992 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ Made something cool? Feel free to open a PR to add a new row to this table! You | [mohamed3nan/DevDocs-Tab](https://github.com/mohamed3nan/DevDocs-Tab) | VS Code extension (view as tab) | ![Latest GitHub commit](https://img.shields.io/github/last-commit/mohamed3nan/DevDocs-Tab?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/mohamed3nan/DevDocs-Tab?logo=github&label) | | [deibit/vscode-devdocs](https://marketplace.visualstudio.com/items?itemName=deibit.devdocs) | VS Code extension (open the browser) | ![Latest GitHub commit](https://img.shields.io/github/last-commit/deibit/vscode-devdocs?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/deibit/vscode-devdocs?logo=github&label) | | [mdh34/quickDocs](https://github.com/mdh34/quickDocs) | Vala/Python based viewer | ![Latest GitHub commit](https://img.shields.io/github/last-commit/mdh34/quickDocs?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/mdh34/quickDocs?logo=github&label) | -| [girishji/devdocs.vim](https://github.com/girishji/devdocs.vim) | Vim plugin & TUI (browse & navigate inside Vim) | ![Latest GitHub commit](https://img.shields.io/github/last-commit/girishji/devdocs.vim?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/girishji/devdocs.vim?logo=github&label) | +| [girishji/devdocs.vim](https://github.com/girishji/devdocs.vim) | Vim plugin & TUI (browse inside Vim) | ![Latest GitHub commit](https://img.shields.io/github/last-commit/girishji/devdocs.vim?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/girishji/devdocs.vim?logo=github&label) | | [romainl/vim-devdocs](https://github.com/romainl/vim-devdocs) | Vim plugin | ![Latest GitHub commit](https://img.shields.io/github/last-commit/romainl/vim-devdocs?logo=github&label) | ![GitHub stars](https://img.shields.io/github/stars/romainl/vim-devdocs?logo=github&label) | | [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) | | [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) | From ba5e944d6c498855d69968c49f9e33dea4e9b866 Mon Sep 17 00:00:00 2001 From: fanqiaojun Date: Sat, 13 Apr 2024 14:58:20 +0800 Subject: [PATCH 12/31] chore: fix some typos in comments Signed-off-by: fanqiaojun --- lib/docs/filters/elisp/entries.rb | 2 +- lib/docs/filters/gtk/entries.rb | 2 +- lib/docs/filters/kubectl/entries.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/elisp/entries.rb b/lib/docs/filters/elisp/entries.rb index 9ccacb59..a699c7b0 100644 --- a/lib/docs/filters/elisp/entries.rb +++ b/lib/docs/filters/elisp/entries.rb @@ -2,7 +2,7 @@ module Docs class Elisp class EntriesFilter < Docs::EntriesFilter def get_name - # remove numbers at the beginnig + # remove numbers at the beginning name = at_css('.chapter', '.section', '.subsection', '.subsubsection', '.appendix').content.slice(/[[:alpha:]]...*/) # remove 'Appendix' word diff --git a/lib/docs/filters/gtk/entries.rb b/lib/docs/filters/gtk/entries.rb index 5cb3d27a..b51f1544 100644 --- a/lib/docs/filters/gtk/entries.rb +++ b/lib/docs/filters/gtk/entries.rb @@ -4,7 +4,7 @@ module Docs # The GTK documentation paths are "flat" and while the contents of each # page provides a way to determine the direct parent relationship, we # really need a full hierarchy of pages *a priori* to be able to fully - # categorize all pages and entries. So we're going to recursivly generate + # categorize all pages and entries. So we're going to recursively generate # a full map of page -> parent relationships from the table of contents... PARENT_BY_PATH = {} diff --git a/lib/docs/filters/kubectl/entries.rb b/lib/docs/filters/kubectl/entries.rb index 2a15d508..0d335c05 100644 --- a/lib/docs/filters/kubectl/entries.rb +++ b/lib/docs/filters/kubectl/entries.rb @@ -15,7 +15,7 @@ module Docs group = 'kubectl' commands = css('h1').to_a() commands.map do |node| - # handle titles differnetly by converting them into sidebar groups (types) + # handle titles differently by converting them into sidebar groups (types) new_group = at_css("##{node['id']} > strong") if new_group group = new_group.content.titleize From c362943aaf0193ae119b0a0468a42aca5d21c54e Mon Sep 17 00:00:00 2001 From: ClasherKasten Date: Sun, 14 Apr 2024 00:34:35 +0200 Subject: [PATCH 13/31] Fix broken version checks --- lib/docs/scrapers/crystal.rb | 2 +- lib/docs/scrapers/docker.rb | 2 +- lib/docs/scrapers/node.rb | 4 ++-- lib/docs/scrapers/octave.rb | 2 +- lib/docs/scrapers/phalcon.rb | 4 ++-- lib/docs/scrapers/sanctuary_type_classes.rb | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/docs/scrapers/crystal.rb b/lib/docs/scrapers/crystal.rb index ed26c585..94da0e29 100644 --- a/lib/docs/scrapers/crystal.rb +++ b/lib/docs/scrapers/crystal.rb @@ -36,7 +36,7 @@ module Docs def get_latest_version(opts) doc = fetch_doc('https://crystal-lang.org/', opts) - doc.at_css('.latest-release').content.scan(/([0-9.]+)/)[0][0] + doc.at_css('.latest-release-info > a > strong').content.scan(/([0-9.]+)/)[0][0] end end end diff --git a/lib/docs/scrapers/docker.rb b/lib/docs/scrapers/docker.rb index 5d01341d..070796ae 100644 --- a/lib/docs/scrapers/docker.rb +++ b/lib/docs/scrapers/docker.rb @@ -96,7 +96,7 @@ module Docs def get_latest_version(opts) doc = fetch_doc('https://docs.docker.com/engine/release-notes/', opts) - latest_version = doc.at_css('.content > section > h2').content.strip + latest_version = doc.at_css('.DocSearch-content > h2 > a').content.strip latest_version.rpartition(' ')[-1] end end diff --git a/lib/docs/scrapers/node.rb b/lib/docs/scrapers/node.rb index 60a89677..c41f82b1 100644 --- a/lib/docs/scrapers/node.rb +++ b/lib/docs/scrapers/node.rb @@ -74,8 +74,8 @@ module Docs end def get_latest_version(opts) - doc = fetch_doc('https://nodejs.org/en/', opts) - doc.at_css('#home-intro > .home-downloadblock:last-of-type > a')['data-version'][1..-1] + tags = get_github_tags('nodejs', 'node', opts) + tags[0]['name'][1..-1] end end end diff --git a/lib/docs/scrapers/octave.rb b/lib/docs/scrapers/octave.rb index fa9103fc..def6541e 100644 --- a/lib/docs/scrapers/octave.rb +++ b/lib/docs/scrapers/octave.rb @@ -51,7 +51,7 @@ module Docs def get_latest_version(opts) doc = fetch_doc('https://octave.org/doc/interpreter/', opts) - doc.at_css('h1').content.scan(/([0-9.]+)/)[0][0] + doc.at_css('#SEC_Top + p').content.scan(/([0-9.]+)/)[1][0][0..-2] end end diff --git a/lib/docs/scrapers/phalcon.rb b/lib/docs/scrapers/phalcon.rb index c6ca63f2..a0fa8e06 100644 --- a/lib/docs/scrapers/phalcon.rb +++ b/lib/docs/scrapers/phalcon.rb @@ -31,8 +31,8 @@ module Docs end def get_latest_version(opts) - doc = fetch_doc('https://docs.phalconphp.com/', opts) - doc.at_css('.header__lang.expand > div > ul > li > a').content + tags = get_github_tags('phalcon', 'cphalcon', opts) + tags[0]['name'][1..-1] end end end diff --git a/lib/docs/scrapers/sanctuary_type_classes.rb b/lib/docs/scrapers/sanctuary_type_classes.rb index 5156e689..87f4410f 100644 --- a/lib/docs/scrapers/sanctuary_type_classes.rb +++ b/lib/docs/scrapers/sanctuary_type_classes.rb @@ -23,7 +23,7 @@ module Docs HTML def get_latest_version(opts) - get-npm-version("sanctuary-type-classes", opts) + get_npm_version("sanctuary-type-classes", opts) end end end From 1176b839225d3f3f9622ec10d2e4441fe8bdef9a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 May 2024 06:07:42 +0000 Subject: [PATCH 14/31] chore(deps): update dependency activesupport to v7.1.3.3 --- Gemfile.lock | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 6bbdb1fc..622674f7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - activesupport (7.1.3.2) + activesupport (7.1.3.3) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) @@ -16,7 +16,7 @@ GEM erubi (>= 1.0.0) rack (>= 0.9.0) rouge (>= 1.0.0) - bigdecimal (3.1.6) + bigdecimal (3.1.8) browser (5.3.1) byebug (11.1.3) chunky_png (1.4.0) @@ -24,8 +24,7 @@ GEM concurrent-ruby (1.2.3) connection_pool (2.4.1) daemons (1.4.1) - drb (2.2.0) - ruby2_keywords + drb (2.2.1) erubi (1.12.0) ethon (0.16.0) ffi (>= 1.15.0) @@ -38,7 +37,7 @@ GEM html-pipeline (2.14.3) activesupport (>= 2) nokogiri (>= 1.4) - i18n (1.14.1) + i18n (1.14.5) concurrent-ruby (~> 1.0) image_optim (0.31.3) exifr (~> 1.2, >= 1.2.2) From 377a2336b807d226da7a0753d28416e755d15842 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 14:22:07 +0000 Subject: [PATCH 15/31] chore(deps): update ruby/setup-ruby action to v1.177.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ab6d3da..813636f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 + uses: ruby/setup-ruby@7dc18ff0ca6e3630d3f29d2a85ebf6cc27ae9d6c # v1.177.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 096b8525..b5f420d4 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 + uses: ruby/setup-ruby@7dc18ff0ca6e3630d3f29d2a85ebf6cc27ae9d6c # v1.177.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9e5da506..87572565 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Set up Ruby - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 + uses: ruby/setup-ruby@7dc18ff0ca6e3630d3f29d2a85ebf6cc27ae9d6c # v1.177.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 1a0d40ee72dade9b377b10139582e1bf44ca37de Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 22 May 2024 11:11:37 +0000 Subject: [PATCH 16/31] chore(deps): update dependency minitest to v5.23.1 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 622674f7..ac4c0680 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -52,7 +52,7 @@ GEM in_threads (1.6.0) method_source (1.0.0) mini_portile2 (2.8.6) - minitest (5.23.0) + minitest (5.23.1) multi_json (1.15.0) mustermann (3.0.0) ruby2_keywords (~> 0.0.1) From 703ec23ac81d31a94173a8b335a348c5ece4a1f9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 22 May 2024 14:52:09 +0000 Subject: [PATCH 17/31] chore(deps): update ruby/setup-ruby action to v1.177.1 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 813636f3..54bdeb96 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@7dc18ff0ca6e3630d3f29d2a85ebf6cc27ae9d6c # v1.177.0 + uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index b5f420d4..3c838e78 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@7dc18ff0ca6e3630d3f29d2a85ebf6cc27ae9d6c # v1.177.0 + uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 87572565..6e2c4e82 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Set up Ruby - uses: ruby/setup-ruby@7dc18ff0ca6e3630d3f29d2a85ebf6cc27ae9d6c # v1.177.0 + uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 5852415f19b7f8506d57e75f151d3d799a33b6be Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 18:58:05 +0000 Subject: [PATCH 18/31] chore(deps): update dependency progress_bar to v1.3.4 --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ac4c0680..dac15751 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -66,8 +66,8 @@ GEM racc (~> 1.4) options (2.3.2) progress (3.6.0) - progress_bar (1.3.3) - highline (>= 1.6, < 3) + progress_bar (1.3.4) + highline (>= 1.6) options (~> 2.3.0) pry (0.14.2) coderay (~> 1.1) From 137cad50558a07f85d38b226a0e75fd35ed9707a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 30 May 2024 17:03:09 +0000 Subject: [PATCH 19/31] chore(deps): update ruby/setup-ruby action to v1.178.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54bdeb96..282dd89b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 + uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 3c838e78..44a32d78 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 + uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e2c4e82..10814673 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Set up Ruby - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 + uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From fa8510971feb5a616f5ed5825d55138099f69591 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 30 May 2024 19:37:01 +0000 Subject: [PATCH 20/31] chore(deps): update dependency ruby to v3.3.2 --- .ruby-version | 2 +- .tool-versions | 2 +- Gemfile | 2 +- Gemfile.lock | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ruby-version b/.ruby-version index bea438e9..47725433 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.1 +3.3.2 diff --git a/.tool-versions b/.tool-versions index 51f617d2..10101bd7 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -ruby 3.3.1 +ruby 3.3.2 diff --git a/Gemfile b/Gemfile index b52b0d9c..b3f7145c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'https://rubygems.org' -ruby '3.3.1' +ruby '3.3.2' gem 'activesupport', require: false gem 'html-pipeline' diff --git a/Gemfile.lock b/Gemfile.lock index dac15751..93007c9d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -187,7 +187,7 @@ DEPENDENCIES yajl-ruby RUBY VERSION - ruby 3.3.1p55 + ruby 3.3.2p78 BUNDLED WITH 2.4.6 From 4a9590f0ce1b8b8ae73211353afcb77bbbe0c5aa Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 02:00:05 +0000 Subject: [PATCH 21/31] chore(deps): update ruby docker tag to v3.3.2 --- Dockerfile | 2 +- Dockerfile-alpine | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b0c730f6..848927d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.3.1 +FROM ruby:3.3.2 ENV LANG=C.UTF-8 ENV ENABLE_SERVICE_WORKER=true diff --git a/Dockerfile-alpine b/Dockerfile-alpine index cb8c00ac..0e70a00d 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -1,4 +1,4 @@ -FROM ruby:3.3.1-alpine +FROM ruby:3.3.2-alpine ENV LANG=C.UTF-8 ENV ENABLE_SERVICE_WORKER=true From 03151aa84e3b13909989c7cac72d37d078b5b342 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 11:21:10 +0000 Subject: [PATCH 22/31] chore(deps): update ruby/setup-ruby action to v1.179.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 282dd89b..6feda1f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 + uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1.179.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 44a32d78..154146ed 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 + uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1.179.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10814673..ef693b33 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Set up Ruby - uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 + uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1.179.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 8f699b4bfbf20a076d44000cbef8112649279f21 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 20:15:40 +0000 Subject: [PATCH 23/31] chore(deps): update dependency activesupport to v7.1.3.4 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 93007c9d..0d3b3502 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - activesupport (7.1.3.3) + activesupport (7.1.3.4) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) From 3aa16aa2846438f5aa1290fc05a3a0f14c3d30f2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 8 Jun 2024 12:25:25 +0000 Subject: [PATCH 24/31] chore(deps): update ruby/setup-ruby action to v1.179.1 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6feda1f8..e41f1946 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1.179.0 + uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 154146ed..f54ba85e 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1.179.0 + uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ef693b33..062cf77b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Set up Ruby - uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1.179.0 + uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 6ea29063cb285d60a3fefbbc052c2dd9f4e11eef Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 19:59:57 +0000 Subject: [PATCH 25/31] chore(deps): update dependency terser to v1.2.3 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 0d3b3502..43f62c70 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -125,7 +125,7 @@ GEM strings-ansi (0.2.0) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) - terser (1.2.2) + terser (1.2.3) execjs (>= 0.3.0, < 3) thin (1.8.2) daemons (~> 1.0, >= 1.0.9) From 0ff8af04873e1060d580df3968e420f2d3e4ab8a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 12 Jun 2024 11:35:20 +0000 Subject: [PATCH 26/31] chore(deps): update ruby/setup-ruby action to v1.180.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e41f1946..3bb2512d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 + uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index f54ba85e..8c4ecb09 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 + uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 062cf77b..f5dd454b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Set up Ruby - uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 + uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 454898e14e6bda221c2192fbeadbed7d996a2bc2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:30:16 +0000 Subject: [PATCH 27/31] chore(deps): update dependency ruby to v3.3.3 --- .ruby-version | 2 +- .tool-versions | 2 +- Gemfile | 2 +- Gemfile.lock | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ruby-version b/.ruby-version index 47725433..619b5376 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.2 +3.3.3 diff --git a/.tool-versions b/.tool-versions index 10101bd7..d554c9c4 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -ruby 3.3.2 +ruby 3.3.3 diff --git a/Gemfile b/Gemfile index b3f7145c..c8f09a38 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'https://rubygems.org' -ruby '3.3.2' +ruby '3.3.3' gem 'activesupport', require: false gem 'html-pipeline' diff --git a/Gemfile.lock b/Gemfile.lock index 43f62c70..3c5e7c0e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -187,7 +187,7 @@ DEPENDENCIES yajl-ruby RUBY VERSION - ruby 3.3.2p78 + ruby 3.3.3p89 BUNDLED WITH 2.4.6 From f78690581d551221e5eae98cf5a4ccc02c2f7862 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Jun 2024 19:38:18 +0200 Subject: [PATCH 28/31] Update Vite documentation (5.2.13) --- lib/docs/scrapers/vite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/vite.rb b/lib/docs/scrapers/vite.rb index 46309fa7..e63b1454 100644 --- a/lib/docs/scrapers/vite.rb +++ b/lib/docs/scrapers/vite.rb @@ -22,7 +22,7 @@ module Docs html_filters.push 'vite/entries', 'vite/clean_html' version do - self.release = '5.0.11' + self.release = '5.2.13' self.base_url = 'https://vitejs.dev/' end From 774e9f3635ba56821955479661fc26384e967fbe Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Jun 2024 19:39:29 +0200 Subject: [PATCH 29/31] Update Vue documentation (3.4.27) --- lib/docs/scrapers/vue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/vue.rb b/lib/docs/scrapers/vue.rb index 7fac3ce6..25a21011 100644 --- a/lib/docs/scrapers/vue.rb +++ b/lib/docs/scrapers/vue.rb @@ -19,7 +19,7 @@ module Docs HTML version '3' do - self.release = '3.4.5' + self.release = '3.4.27' self.base_url = 'https://vuejs.org/' self.initial_paths = %w(guide/introduction.html) html_filters.push 'vue/entries_v3', 'vue/clean_html' From 58a1678be261f9286c1a47ca28f0697456a718c6 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Jun 2024 20:48:06 +0200 Subject: [PATCH 30/31] Revert "chore(deps): update dependency ruby to v3.3.3" This reverts commit 454898e14e6bda221c2192fbeadbed7d996a2bc2. Reason for revert: deploy to Heroku fails with "The Ruby version you are trying to install does not exist: ruby-3.3.3" --- .ruby-version | 2 +- .tool-versions | 2 +- Gemfile | 2 +- Gemfile.lock | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ruby-version b/.ruby-version index 619b5376..47725433 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.3 +3.3.2 diff --git a/.tool-versions b/.tool-versions index d554c9c4..10101bd7 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -ruby 3.3.3 +ruby 3.3.2 diff --git a/Gemfile b/Gemfile index c8f09a38..b3f7145c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'https://rubygems.org' -ruby '3.3.3' +ruby '3.3.2' gem 'activesupport', require: false gem 'html-pipeline' diff --git a/Gemfile.lock b/Gemfile.lock index 3c5e7c0e..43f62c70 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -187,7 +187,7 @@ DEPENDENCIES yajl-ruby RUBY VERSION - ruby 3.3.3p89 + ruby 3.3.2p78 BUNDLED WITH 2.4.6 From 524e2e14825df51f9d1d7619084313a43b2b059d Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Jun 2024 20:19:55 +0200 Subject: [PATCH 31/31] Update Next.js documentation (14.2.4) --- assets/javascripts/news.json | 2 +- lib/docs/filters/nextjs/clean_html.rb | 11 +++++++++++ lib/docs/filters/nextjs/entries.rb | 20 ++++++++++---------- lib/docs/scrapers/nextjs.rb | 12 +++++++++--- 4 files changed, 31 insertions(+), 14 deletions(-) diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index 5b175a75..d7ae6452 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,7 +1,7 @@ [ [ "2024-02-20", - "New documentation: Nextjs" + "New documentation: Next.js" ], [ "2024-01-24", diff --git a/lib/docs/filters/nextjs/clean_html.rb b/lib/docs/filters/nextjs/clean_html.rb index 6197de17..99523bdd 100644 --- a/lib/docs/filters/nextjs/clean_html.rb +++ b/lib/docs/filters/nextjs/clean_html.rb @@ -2,6 +2,8 @@ module Docs class Nextjs class CleanHtmlFilter < Filter def call + @doc = at_css('.prose') + css('.zola-anchor').remove doc.prepend_child("

NextJS2

") if root_page? css('div:contains("NEWS:")').remove @@ -12,6 +14,15 @@ module Docs css('div.feedback_inlineTriggerWrapper__o7yUx').remove css('header').remove #remove links from the top of the page css('nav').remove + + css('h1, h2, h3, h4').each { |node| node.content = node.content } + + css('pre > code').each do |node| + node.parent['data-language'] = 'typescript' + node.parent.content = node.parent.content + end + css('div[class^="code-block_header"]').remove + doc end end diff --git a/lib/docs/filters/nextjs/entries.rb b/lib/docs/filters/nextjs/entries.rb index 4e67f00d..03c6bc09 100644 --- a/lib/docs/filters/nextjs/entries.rb +++ b/lib/docs/filters/nextjs/entries.rb @@ -14,25 +14,25 @@ module Docs end def get_type - if subpath.include?('/architecture') + if slug.start_with?('architecture') 'Architecture' - elsif subpath.include?('/community') + elsif slug.start_with?('community') 'Community' - elsif subpath.include?('/getting-started') + elsif slug.start_with?('getting-started') 'Getting Started' - elsif subpath.include?('/messages') + elsif slug.start_with?('messages') 'Messages' - elsif subpath.include?('/app/building-your-application') + elsif slug.start_with?('app/building-your-application') 'Using App Router: Building your application' - elsif subpath.include?('/app/api-reference') + elsif slug.start_with?('app/api-reference') 'Using App Router: api-reference' - elsif subpath.include?('/app') + elsif slug.start_with?('app') 'Using App Router' - elsif subpath.include?('/pages/building-your-application') + elsif slug.start_with?('pages/building-your-application') 'Using Pages Router: Building your application' - elsif subpath.include?('/pages/api-reference') + elsif slug.start_with?('pages/api-reference') 'Using Pages Router: api-reference' - elsif subpath.include?('/pages') + elsif slug.start_with?('pages') 'Using Pages Router' else get_name diff --git a/lib/docs/scrapers/nextjs.rb b/lib/docs/scrapers/nextjs.rb index a20cf800..99d3f5ca 100644 --- a/lib/docs/scrapers/nextjs.rb +++ b/lib/docs/scrapers/nextjs.rb @@ -1,8 +1,9 @@ module Docs class Nextjs < UrlScraper - self.name = 'NextJS' + self.name = 'Next.js' + self.slug = 'nextjs' self.type = 'simple' - self.release = 'v14.1.0' + self.release = '14.2.4' self.base_url = 'https://nextjs.org/docs' self.initial_paths = %w(reference/) self.links = { @@ -11,10 +12,15 @@ module Docs } html_filters.push 'nextjs/entries', 'nextjs/clean_html' + options[:download_images] = false options[:attribution] = <<-HTML - © 2024 Vercel, Inc. + © 2024 Vercel, Inc.
Licensed under the MIT License. HTML + + def get_latest_version(opts) + get_npm_version('next', opts) + end end end