From b9f81165981ddc8445c813e482b96534673fd58d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:38:35 +0000 Subject: [PATCH 01/37] chore(deps): update ruby/setup-ruby action to v1.167.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 c9ac630d..eec4cddd 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@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1 + uses: ruby/setup-ruby@b203567269b5bbc256dbc1c84f7495913f977353 # v1.167.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 c2f139de..1bdba2cf 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@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1 + uses: ruby/setup-ruby@b203567269b5bbc256dbc1c84f7495913f977353 # v1.167.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 862d0c12..2d766867 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Set up Ruby - uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1 + uses: ruby/setup-ruby@b203567269b5bbc256dbc1c84f7495913f977353 # v1.167.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 707c88ffc5a34f54f03958227a6b76baf5864646 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 10:01:18 +0000 Subject: [PATCH 02/37] chore(deps): update dependency minitest to v5.21.2 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index a22c2ddc..08a3102b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,7 +53,7 @@ GEM in_threads (1.6.0) method_source (1.0.0) mini_portile2 (2.8.5) - minitest (5.21.1) + minitest (5.21.2) multi_json (1.15.0) mustermann (3.0.0) ruby2_keywords (~> 0.0.1) From 9df6d31c04fa36520ccea0944594101da4596ab9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 13:19:37 +0000 Subject: [PATCH 03/37] chore(deps): update dependency activesupport to v7.1.3 --- Gemfile.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 08a3102b..1bbdc197 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - activesupport (7.1.2) + activesupport (7.1.3) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) @@ -16,12 +16,12 @@ GEM erubi (>= 1.0.0) rack (>= 0.9.0) rouge (>= 1.0.0) - bigdecimal (3.1.5) + bigdecimal (3.1.6) browser (5.3.1) byebug (11.1.3) chunky_png (1.4.0) coderay (1.1.3) - concurrent-ruby (1.2.2) + concurrent-ruby (1.2.3) connection_pool (2.4.1) daemons (1.4.1) drb (2.2.0) From 27a6d7ffa5e4e79140d4ed9d8601177da02cc99c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 19 Jan 2024 12:23:16 +0000 Subject: [PATCH 04/37] chore(deps): update ruby/setup-ruby action to v1.168.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 eec4cddd..f26ba88d 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@b203567269b5bbc256dbc1c84f7495913f977353 # v1.167.0 + uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.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 1bdba2cf..6b3e90d6 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@b203567269b5bbc256dbc1c84f7495913f977353 # v1.167.0 + uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.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 2d766867..c8904151 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Set up Ruby - uses: ruby/setup-ruby@b203567269b5bbc256dbc1c84f7495913f977353 # v1.167.0 + uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From ae193f5194755a778e7fa8520cdfd1516f598f10 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 20 Jan 2024 22:17:49 +0100 Subject: [PATCH 05/37] Add htmx documentation --- assets/javascripts/news.json | 4 ++++ lib/docs/filters/htmx/clean_html.rb | 13 +++++++++++ lib/docs/filters/htmx/entries.rb | 31 ++++++++++++++++++++++++ lib/docs/scrapers/htmx.rb | 35 ++++++++++++++++++++++++++++ public/icons/docs/htmx/16.png | Bin 0 -> 817 bytes public/icons/docs/htmx/16@2x.png | Bin 0 -> 1607 bytes public/icons/docs/htmx/SOURCE | 1 + 7 files changed, 84 insertions(+) create mode 100644 lib/docs/filters/htmx/clean_html.rb create mode 100644 lib/docs/filters/htmx/entries.rb create mode 100644 lib/docs/scrapers/htmx.rb create mode 100644 public/icons/docs/htmx/16.png create mode 100644 public/icons/docs/htmx/16@2x.png create mode 100644 public/icons/docs/htmx/SOURCE diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index 043a0401..b5340a3c 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,4 +1,8 @@ [ + [ + "2024-01-20", + "New documentation: htmx" + ], [ "2024-01-12", "New documentation: Hammerspoon" diff --git a/lib/docs/filters/htmx/clean_html.rb b/lib/docs/filters/htmx/clean_html.rb new file mode 100644 index 00000000..4c14c6aa --- /dev/null +++ b/lib/docs/filters/htmx/clean_html.rb @@ -0,0 +1,13 @@ +module Docs + class Htmx + 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 + doc + end + end + end +end diff --git a/lib/docs/filters/htmx/entries.rb b/lib/docs/filters/htmx/entries.rb new file mode 100644 index 00000000..fc5053c6 --- /dev/null +++ b/lib/docs/filters/htmx/entries.rb @@ -0,0 +1,31 @@ +module Docs + class Htmx + class EntriesFilter < Docs::EntriesFilter + def get_name + at_css('h1').content + end + + def get_type + if slug.start_with?('attributes') + 'Attributes' + elsif slug.start_with?('headers') + 'Headers' + elsif slug.start_with?('events') + 'Events' + elsif slug.start_with?('extensions') + 'Extensions' + else + get_name + end + end + + def additional_entries + css('h3[id]:has(code)').each_with_object [] do |node, entries| + name = node.at_css('code').content + id = node['id'] + entries << [name, id] + end + end + end + end +end diff --git a/lib/docs/scrapers/htmx.rb b/lib/docs/scrapers/htmx.rb new file mode 100644 index 00000000..6e6f638e --- /dev/null +++ b/lib/docs/scrapers/htmx.rb @@ -0,0 +1,35 @@ +module Docs + class Htmx < UrlScraper + self.name = 'htmx' + self.type = 'simple' + self.slug = 'htmx' + self.links = { + home: 'https://htmx.org/', + code: 'https://github.com/bigskysoftware/htmx' + } + self.release = '1.9.10' + self.base_url = "https://htmx.org/" + self.initial_paths = %w(reference/) + + html_filters.push 'htmx/entries', 'htmx/clean_html' + + options[:trailing_slash] = true + options[:container] = '.content' + options[:download_images] = false + options[:skip_patterns] = [ + /\Aessays/, + /\Aexamples/, + /\Amigration-guide/, + /\Aposts/, + ] + + # https://github.com/bigskysoftware/htmx/blob/master/LICENSE + options[:attribution] = <<-HTML + Licensed under the Zero-Clause BSD + HTML + + def get_latest_version(opts) + get_npm_version('htmx.org', opts) + end + end +end diff --git a/public/icons/docs/htmx/16.png b/public/icons/docs/htmx/16.png new file mode 100644 index 0000000000000000000000000000000000000000..8f98938fa6de1fd60eda87610df8925a6ec35370 GIT binary patch literal 817 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Lb6AYF9SoB8UsT^3j@P1pisjL z28L1t28LG&3=CE?7#PG0=Ijcz0ZMQdctjR6Fz_7)VaDV6D^h@h>?NMQuIw)uMMMR- zQj{DXGcYhF1^9%xDk>@}DJdx{D}x9XRb?dwMOiT=B}Ek#6=f9_H63$3mwZ(XJr!k; zw3?cly1Kfmnud~`s8K+tZQ&IS4GmRQRe5=NK|w(s9UVPAJ)lXdDoWPbC-i-q^fVPT zwR98|6r`o4?d|R7%$f7;+qb;@0&!6RUCRK+%E!{G=8g5$U%q^uIB}x6xw)L2+?Ow3 zwrtrF7Z<0iXP_)EZW1!lI_t2ClDxjYL27F1-o1Oje*N0r-Mw__(%-*-uU@@6ARs_f zQ^O|jtdU=ns)B^Jj&68(_|~mk|NQwgdGcgWPtTPrSN{I}CoelyLD$2v;*p-2n}nE9 zb4%;bpFii#o9F20sHv$bDk^GjVP&kRY7{)#Dr29zs-mi@nuUdhv9Ym;h={hfwvLXj zin5}*rk-8deIuV*b!90nEiFw=EiDZ-9YY&qzb0)1OAU2ZElqU|6&Xzpb)XDTUQ1hB zOI!Eb%Pd7;1T64$aSW-r#d^?I&xMhp;b1;Teyf7Z(gK!N;WwNmSE`M-9$~a-naAAG zq`FD_wfa2C)H4yGqQ_QU`_n6$9eUNuK2+`g)|vNtBc^yZm;bJiEUQg1l4Mx3?Oxb7 zKE{NPuS#|@Gx+scM35I_EzGc^^Gpy5lC*!-l@%H&^=ku58@jYvQ@N+?B zs#yrL&T1p+RkDv4?Q1)=X4R@yzt|@ws?`*}Sp!O1swJ)wB`Jv|saDBFsX&Us$iT=% z*T7KM$RNbX(8|!%%EVOLz`)ADVBWd2b5Jzo=BH$)Rbpx|GJ|N45J|HFYS4h&P?DLO hT3nKtTY#>|%*xOJqQ^7yoIOwvgQu&X%Q~loCIIAO1B(Cv literal 0 HcmV?d00001 diff --git a/public/icons/docs/htmx/16@2x.png b/public/icons/docs/htmx/16@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9f2fcf87d7988977276bb46a3feb6a1f064ee7c1 GIT binary patch literal 1607 zcmZXSc~DbV6viKRm+LYnvR(yVpV-!)H+=xs+Vg4AO{A3ox1_x4?@~G1OS;r02q!30BJb@ zxTaTKT_z(oW~HlR3;^KRJRLT-(oQE4qP3T+>gwuT zTwD+o;o0ynrX=%yM&i3>3 zgSa4!@}(P_{Sz-i5F8K?P*70N+1c6E)s>&0FA|A(Jf54ITXl7HZ*T9uefu;T4T4}0 zhvp$)t;p zmv4Q<^HM<|6Gl)5gP~9;ii(N`1_s8)#g(%AMn=w`KcASG$mjE6h>PIDMVoK= zt^Wq%vSH%IQB*7zo6Y9&@$t&a%HrbU=H_M;<-r`9ATU9Z`9!2K!5nvt$Ct@uPoF-0 z_wHR=TU$;}j+d7gj^ld0zOk{9>Q2L8mL#THmi`bI2f`4$ySw|`xpQ%Gaj~(np`oEH zCY>knU8KL`yY4K^Wrc->frJ|%h9D?Kk@d4EBm)6y7!T*+e3;AdjXNPryN`<%C=8;+ zk77Io262&Gnf=Un?P&yJp%7E3N|B}A69%R5_(I%6%;SqN48>4{hvU$w(wXqFO+sjh zDxyC%>>A%YTJ)1O0+2pmy!33Xj+fe#f!8L3NFX0_;joJCcn5#xh3%C{`gEB zZPMP@GxLOl6WQrZOqB5phZ#4zFZPmy?;rEN{Db$SRr=pZo3tMsqV|-JKFOwpHC32K zDz|XlW~STZL^zD==3vWjkc9843oN^056}I5 zzL7xeR`?KzJ+t_R$ujRJJ4_bFrB0CP6hA@{rKfq zV-^pk#a6essKs1!Amu^cof6?NE{Yi92iHuTC#KBV>hhNDia6*f~R zRstux=3N_lxA}3%PJ!zAuD&dkWue-p(rLwxi`6f8EN~cfB&kQrJp-Y6cVF2Wu0QCx z!t@;dZV)Jcw%vtZUQxUMq|GoXeQ-g#VW#=lLvgOhm#3xpJ<6|-Pp$ryl~`(JPxhhb#TO&f>J}wG>1gtb z!6Or61}2hoJiR2=_d&-pqOXa64%Oa21f$jMRyK>wLw+^E+XjO+F3|79dn;on0nlYMps189Q7RrQPG G^Zo?aid*ae literal 0 HcmV?d00001 diff --git a/public/icons/docs/htmx/SOURCE b/public/icons/docs/htmx/SOURCE new file mode 100644 index 00000000..bfba7d6d --- /dev/null +++ b/public/icons/docs/htmx/SOURCE @@ -0,0 +1 @@ +https://github.com/bigskysoftware/htmx/blob/v1.9.10/www/static/img/htmx_logo.2.png From 8cd26186230b5425c7dbfaaeb2c9820cfc2a5807 Mon Sep 17 00:00:00 2001 From: Shaygan Hooshyari Date: Sat, 20 Jan 2024 14:27:41 -0800 Subject: [PATCH 06/37] Add Raycast dev docs to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8dec3856..ea7d3720 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,7 @@ Made something cool? Feel free to open a PR to add a new row to this table! You | [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) | | [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) | +| [Raycast Devdocs](https://www.raycast.com/pomdtr/devdocs) | Raycast extension | Unavailable | Unavailable | ## Copyright / License From e27ead7c64715f7bfa4b1c613ba08bc71ede21ca Mon Sep 17 00:00:00 2001 From: arkcia Date: Sun, 21 Jan 2024 11:06:16 +0800 Subject: [PATCH 07/37] update and fix pytroch --- lib/docs/filters/pytorch/entries.rb | 120 +++++++++++++++++++++------- lib/docs/scrapers/pytorch.rb | 12 ++- 2 files changed, 94 insertions(+), 38 deletions(-) diff --git a/lib/docs/filters/pytorch/entries.rb b/lib/docs/filters/pytorch/entries.rb index 4b8d153e..b337edbb 100644 --- a/lib/docs/filters/pytorch/entries.rb +++ b/lib/docs/filters/pytorch/entries.rb @@ -1,57 +1,115 @@ module Docs class Pytorch class EntriesFilter < Docs::EntriesFilter - NAME_REPLACEMENTS = { - "Distributed communication package - torch.distributed" => "torch.distributed" + TYPE_REPLACEMENTS = { + "torch.Tensor" => "Tensor", + "torch.nn" => "Neuro Network", + "Probability distributions - torch.distributions" => "Probability Distributions", + "torch" => "Torch", + "Quantization" => "Quantization", + "torch.optim" => "Optimization", + "torch.Storage" => "Storage", + "torch.nn.functional" => "NN Functions", + "torch.cuda" => "CUDA", + "Torch Distributed Elastic" => "Distributed Elastic", + "torch.fx" => "FX", + "TorchScript" => "Torch Script", + "torch.onnx" => "ONNX", + "Distributed communication package - torch.distributed" => "Distributed Communication", + "Automatic differentiation package - torch.autograd" => "Automatic Differentiation", + "torch.linalg" => "Linear Algebra", + "Distributed Checkpoint - torch.distributed.checkpoint" => "Distributed Checkpoint", + "Distributed RPC Framework" => "Distributed RPC", + "torch.special" => "SciPy-like Special", + "torch.package" => "Package", + "torch.backends" => "Backends", + "FullyShardedDataParallel" => "Fully Sharded Data Parallel", + "torch.sparse" => "Sparse Tensors", + "torch.export" => "Traced Graph Export", + "torch.fft" => "Discrete Fourier Transforms", + "torch.utils.data" => "Datasets and Data Loaders", + "torch.monitor" => "Monitor", + "Automatic Mixed Precision package - torch.amp" => "Automatic Mixed Precision", + "torch.utils.tensorboard" => "Tensorboard", + "torch.profiler" => "Profiler", + "torch.mps" => "MPS", + "DDP Communication Hooks" => "DDP Communication Hooks", + "Benchmark Utils - torch.utils.benchmark" => "Benchmark Utils", + "torch.nn.init" => "Parameter Initializations", + "Tensor Parallelism - torch.distributed.tensor.parallel" => "Tensor Parallelism", + "torch.func" => "JAX-like Function Transforms", + "Distributed Optimizers" => "Distributed Optimizers", + "torch.signal" => "SciPy-like Signal", + "torch.futures" => "Miscellaneous", + "torch.utils.cpp_extension" => "Miscellaneous", + "torch.overrides" => "Miscellaneous", + "Generic Join Context Manager" => "Miscellaneous", + "torch.hub" => "Miscellaneous", + "torch.cpu" => "Miscellaneous", + "torch.random" => "Miscellaneous", + "torch.compiler" => "Miscellaneous", + "Pipeline Parallelism" => "Miscellaneous", + "Named Tensors" => "Miscellaneous", + "Multiprocessing package - torch.multiprocessing" => "Miscellaneous", + "torch.utils" => "Miscellaneous", + "torch.library" => "Miscellaneous", + "Tensor Attributes" => "Miscellaneous", + "torch.testing" => "Miscellaneous", + "torch.nested" => "Miscellaneous", + "Understanding CUDA Memory Usage" => "Miscellaneous", + "torch.utils.dlpack" => "Miscellaneous", + "torch.utils.checkpoint" => "Miscellaneous", + "torch.__config__" => "Miscellaneous", + "Type Info" => "Miscellaneous", + "torch.utils.model_zoo" => "Miscellaneous", + "torch.utils.mobile_optimizer" => "Miscellaneous", + "torch._logging" => "Miscellaneous", + "torch.masked" => "Miscellaneous", + "torch.utils.bottleneck" => "Miscellaneous" } - def get_breadcrumbs() - css('.pytorch-breadcrumbs > li').map { |node| node.content.delete_suffix(' >') } + def get_breadcrumbs + css('.pytorch-breadcrumbs > li').map { + |node| node.content.delete_suffix(' >').strip + }.reject { |item| item.nil? || item.empty? } end def get_name - # The id of the container `div.section` indicates the page type. - # If the id starts with `module-`, then it's an API reference, - # otherwise it is a note or design doc. - section_id = at_css('.section[id], section[id]')['id'] - if section_id.starts_with? 'module-' - section_id.remove('module-') - else - name = get_breadcrumbs()[1] - NAME_REPLACEMENTS.fetch(name, name) - end + b = get_breadcrumbs + b[(b[1] == 'torch' ? 2 : 1)..].join('.') end def get_type - name + t = get_breadcrumbs[1] + TYPE_REPLACEMENTS.fetch(t, t) end def include_default_entry? - # Only include API references, and ignore notes or design docs - !subpath.start_with? 'generated/' and type.start_with? 'torch' + # Only include API entries to simplify and unify the list + return name.start_with?('torch.') end def additional_entries return [] if root_page? entries = [] - - css('dt').each do |node| - name = node['id'] - if name == self.name or name == nil + css('dl').each do |node| + dt = node.at_css('dt') + if dt == nil + next + end + id = dt['id'] + if id == name or id == nil next end - case node.parent['class'] - when 'method', 'function' - if node.at_css('code').content.starts_with? 'property ' - # this instance method is a property, so treat it as an attribute - entries << [name, node['id']] - else - entries << [name + '()', node['id']] - end - when 'class', 'attribute' - entries << [name, node['id']] + case node['class'] + when 'py method', 'py function' + entries << [id + '()', id] + when 'py class', 'py attribute', 'py property' + entries << [id, id] + when 'footnote brackets', 'field-list simple' + next end end diff --git a/lib/docs/scrapers/pytorch.rb b/lib/docs/scrapers/pytorch.rb index a6d9ea82..8f560a94 100644 --- a/lib/docs/scrapers/pytorch.rb +++ b/lib/docs/scrapers/pytorch.rb @@ -3,7 +3,6 @@ module Docs self.name = 'PyTorch' self.slug = 'pytorch' self.type = 'sphinx' - self.force_gzip = true self.links = { home: 'https://pytorch.org/', code: 'https://github.com/pytorch/pytorch' @@ -11,21 +10,20 @@ module Docs html_filters.push 'pytorch/entries', 'pytorch/clean_html', 'sphinx/clean_html' - options[:skip] = ['cpp_index.html', 'packages.html', 'py-modindex.html', 'genindex.html'] + options[:skip] = ['cpp_index.html', 'deploy.html', 'packages.html', 'py-modindex.html', 'genindex.html'] options[:skip_patterns] = [/\Acommunity/, /\A_modules/, /\Anotes/, /\Aorg\/pytorch\//] - options[:max_image_size] = 256_000 options[:attribution] = <<-HTML - © 2019-2024 Torch Contributors
- Licensed under the 3-clause BSD License. + © 2024, PyTorch Contributors
+ PyTorch has a BSD-style license, as found in the LICENSE file. HTML - version '2' do + version '2.1' do self.release = '2.1' self.base_url = "https://pytorch.org/docs/#{release}/" end - version '1' do + version '1.13' do self.release = '1.13' self.base_url = "https://pytorch.org/docs/#{release}/" end From 35ff391b3481c1e1d9de7df225af44c310817ee0 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 21 Jan 2024 18:58:25 +0100 Subject: [PATCH 08/37] htmx: missing "license" --- lib/docs/scrapers/htmx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/htmx.rb b/lib/docs/scrapers/htmx.rb index 6e6f638e..719277b2 100644 --- a/lib/docs/scrapers/htmx.rb +++ b/lib/docs/scrapers/htmx.rb @@ -25,7 +25,7 @@ module Docs # https://github.com/bigskysoftware/htmx/blob/master/LICENSE options[:attribution] = <<-HTML - Licensed under the Zero-Clause BSD + Licensed under the Zero-Clause BSD License. HTML def get_latest_version(opts) From d9e4d516b8a7142bafccaa429df13dd9bf9ca5d2 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 21 Jan 2024 20:36:23 +0100 Subject: [PATCH 09/37] pytorch: version 2 and version 1 --- lib/docs/scrapers/pytorch.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/pytorch.rb b/lib/docs/scrapers/pytorch.rb index 8f560a94..ae79ec36 100644 --- a/lib/docs/scrapers/pytorch.rb +++ b/lib/docs/scrapers/pytorch.rb @@ -18,12 +18,12 @@ module Docs PyTorch has a BSD-style license, as found in the LICENSE file. HTML - version '2.1' do + version '2' do self.release = '2.1' self.base_url = "https://pytorch.org/docs/#{release}/" end - version '1.13' do + version '1' do self.release = '1.13' self.base_url = "https://pytorch.org/docs/#{release}/" end From ff7adb221a450356ae0e3e27a232c677e5bb278e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 13:02:36 +0000 Subject: [PATCH 10/37] chore(deps): update ruby/setup-ruby action to v1.169.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 f26ba88d..909a9c57 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@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0 + uses: ruby/setup-ruby@5daca165445f0ae10478593083f72ca2625e241d # v1.169.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 6b3e90d6..fef290a5 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@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0 + uses: ruby/setup-ruby@5daca165445f0ae10478593083f72ca2625e241d # v1.169.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 c8904151..df9dc48c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Set up Ruby - uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0 + uses: ruby/setup-ruby@5daca165445f0ae10478593083f72ca2625e241d # v1.169.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 5f0477961b0ad65f58ea482983bfbfc067011f7c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 22:37:15 +0000 Subject: [PATCH 11/37] chore(deps): update dependency terser to v1.2.0 --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 1bbdc197..cfe43c1a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -30,7 +30,7 @@ GEM ethon (0.16.0) ffi (>= 1.15.0) eventmachine (1.2.7) - execjs (2.8.1) + execjs (2.9.1) exifr (1.4.0) ffi (1.15.5) fspath (3.1.2) @@ -125,7 +125,7 @@ GEM strings-ansi (0.2.0) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) - terser (1.1.20) + terser (1.2.0) execjs (>= 0.3.0, < 3) thin (1.8.2) daemons (~> 1.0, >= 1.0.9) From e328e5a1fb36b8d11abfc49d79539d9ba1665c73 Mon Sep 17 00:00:00 2001 From: daodennis <43357797+daodennis@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:46:10 -0800 Subject: [PATCH 12/37] Update kubernetes.rb and add versions available Previously only the latest and v1.20 was available, this change adds the latest version 1.29 and the previous five versions through 1.24 which are common K8S releases in circulation. --- lib/docs/scrapers/kubernetes.rb | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/kubernetes.rb b/lib/docs/scrapers/kubernetes.rb index 2eb30c63..13eba935 100644 --- a/lib/docs/scrapers/kubernetes.rb +++ b/lib/docs/scrapers/kubernetes.rb @@ -20,15 +20,40 @@ module Docs # latest version has a special URL that does not include the version identifier version do - self.release = "1.26" + self.release = "1.29" self.base_url = "https://kubernetes.io/docs/reference/kubernetes-api/" end - version '1.20' do + version '1.28' do self.release = "#{version}" self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/" end + version '1.27' do + self.release = "#{version}" + self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/" + end + + version '1.27' do + self.release = "#{version}" + self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/" + end + + version '1.26' do + self.release = "#{version}" + self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/" + end + + version '1.25' do + self.release = "#{version}" + self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/" + end + + version '1.24' do + self.release = "#{version}" + self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/" + end + def get_latest_version(opts) get_latest_github_release('kubernetes', 'kubernetes', opts) end From 6d62e69a8124dda01f0127ae81d0b1c19415a88d Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 24 Jan 2024 21:13:43 +0100 Subject: [PATCH 13/37] Update OpenJDK documentation --- docs/file-scrapers.md | 4 ++-- lib/docs/filters/openjdk/clean_html_new.rb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index 478099b4..2cc99165 100644 --- a/docs/file-scrapers.md +++ b/docs/file-scrapers.md @@ -167,8 +167,8 @@ download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/ope to `path/to/devdocs/docs/openjdk~$VERSION` ```sh -curl -O http://ftp.at.debian.org/debian/pool/main/o/openjdk-21/openjdk-21-doc_21.0.1+12-3_all.deb -tar xf openjdk-21-doc_21.0.1+12-3_all.deb +curl -O http://ftp.at.debian.org/debian/pool/main/o/openjdk-21/openjdk-21-doc_21.0.2+13-2_all.deb +tar xf openjdk-21-doc_21.0.2+13-2_all.deb tar xf data.tar.xz mv ./usr/share/doc/openjdk-21-jre-headless/api/ docs/openjdk~$VERSION ``` diff --git a/lib/docs/filters/openjdk/clean_html_new.rb b/lib/docs/filters/openjdk/clean_html_new.rb index 90341926..608dbab6 100644 --- a/lib/docs/filters/openjdk/clean_html_new.rb +++ b/lib/docs/filters/openjdk/clean_html_new.rb @@ -12,6 +12,7 @@ module Docs end css('.header .sub-title', 'hr', '.table-tabs').remove + css('.copy').remove # fix ul section that contains summaries or tables css('ul').each do |node| From d774d064ec4b1b30e67e97792d1af26ffa779248 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 24 Jan 2024 23:10:33 +0100 Subject: [PATCH 14/37] Add playwright documentation --- assets/javascripts/news.json | 4 +++ lib/docs/filters/playwright/clean_html.rb | 29 ++++++++++++++++++++++ lib/docs/filters/playwright/entries.rb | 23 +++++++++++++++++ lib/docs/scrapers/playwright.rb | 27 ++++++++++++++++++++ public/icons/docs/playwright/16.png | Bin 0 -> 534 bytes public/icons/docs/playwright/16@2x.png | Bin 0 -> 1132 bytes public/icons/docs/playwright/SOURCE | 1 + 7 files changed, 84 insertions(+) create mode 100644 lib/docs/filters/playwright/clean_html.rb create mode 100644 lib/docs/filters/playwright/entries.rb create mode 100644 lib/docs/scrapers/playwright.rb create mode 100644 public/icons/docs/playwright/16.png create mode 100644 public/icons/docs/playwright/16@2x.png create mode 100644 public/icons/docs/playwright/SOURCE diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index b5340a3c..38dd4bc4 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,4 +1,8 @@ [ + [ + "2024-01-24", + "New documentation: Playwright" + ], [ "2024-01-20", "New documentation: htmx" diff --git a/lib/docs/filters/playwright/clean_html.rb b/lib/docs/filters/playwright/clean_html.rb new file mode 100644 index 00000000..cc97294d --- /dev/null +++ b/lib/docs/filters/playwright/clean_html.rb @@ -0,0 +1,29 @@ +module Docs + class Playwright + class CleanHtmlFilter < Filter + def call + @doc = at_css('.markdown') + + css('x-search').remove + css('hr').remove + css('font:contains("Added in")').remove + css('.list-anchor').remove + + css('.alert').each do |node| + node.name = 'blockquote' + end + + css('pre').each do |node| + node.content = node.css('.token-line').map(&:content).join("\n") + node.remove_attribute('style') + node['data-language'] = node.content =~ /\A\s* + Licensed under the Apache License, Version 2.0. + HTML + + def get_latest_version(opts) + get_npm_version('@playwright/test', opts) + end + end +end diff --git a/public/icons/docs/playwright/16.png b/public/icons/docs/playwright/16.png new file mode 100644 index 0000000000000000000000000000000000000000..a209989def91e7e16b8475203c7b8154597f079d GIT binary patch literal 534 zcmV+x0_pvUP)H^IGd zG1%+QjbP6or$f9J-U#vh*-&5swpC%G%1@<9ns*c?tNhhnZTv#7&t{YE3e&4#1J;@N z!wpy+=sOW)I}A7GS^PzIzVa*$kgf0a))=kO>#^OayTs)Jc4Wv=6)8Mpvi_vM#8Ag|M*Oowdn3f-*MVTC{|ddz z|K<9W{wvMY+@{xJ@2gwsI0b0)OOQ(pHyTP|jmBCZpSZKZ9v4mrx<7Sj)qe*LhsmnQ zf%i*qt%)B|2}#>CFiy4I@Ve@3t=D>Mjo#@kH$AC0$I^qOq^#oU$*1QW=mEkY_TbD+ Y0A{&*WUbG?O#lD@07*qoM6N<$f_Llul>h($ literal 0 HcmV?d00001 diff --git a/public/icons/docs/playwright/16@2x.png b/public/icons/docs/playwright/16@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..e621e1f0c9ad28b15692447214024e7436c15bbe GIT binary patch literal 1132 zcmV-y1e5!TP)iPE5WP6qVgRsJ6 z)sISZw4CYY0ArU>e$_th`yk6n7_=x^mbb#_q4UhxyV*NEnVJHsJa|>0x9PIi2TCm4|Z1{ed_y60WUjHi!Oc6ev zsPa>}U;ByTB(+b-4$xSnOV9y2YYa_L9N^&Kz;Z0u>pm_A+yPpC6-Wov>wzs%nymIh z*E29$&oww-&o$_QYM0(Um;-cH8WM8A50z~y>=Ze=4&yAr{TG z*sS9pI9t~>=(=v47ckKozd|^|q!p_Jw4Fn>E`)f!#uW`G{apU5b*tb_fSQQ--wVtE z#d<4DbaY(<7wDC`96^qMoY`=WzxP304mc6u`d7V272)e%Wef-CtTMugbKNz@5B29* zfE}Q_&iE?ca=_FxEcHf+$9Htg&j)*LHgXTyqA*eQ2h1|{2Gg7B6_)pv`?OxlO;G)< zI9UzDa!kjV(9z_wH-nFbesZ|_1uE8fDYQI;}P^mZ;JIk)YNa1PIOUh>K2@KF4*%Ka!6bW za{qt8*AX)z_5mF-P3@lk8j~d5wWcn>6d$j*%48F&?~M*HG%zrcR2LY!21Kq4^tlKu zqW{1XqM!5sx;*p0=!s8Z3f}mCqrJ*lj;zW^*V|iA$1OOi*2jPL$^h?W&Az^qbiMpP zDNa)VjO+llxmvg^e{Hbd)PSlD5*@doaBUyIPf8OsUc&SLQhiLzR~cV3m}+WDlQyBQ zTaX>FfVrxf>3C0Ng7y>r6(+a!R-1g#TW$POZ=u;4-B$aVy1~IpG;NfIhK4fhx&*uE yxCD0TxdyKVX2ngw9MB2MMZ>#QJnDd9=KugB!#0fqf`pU+0000 Date: Thu, 25 Jan 2024 18:37:42 +0000 Subject: [PATCH 15/37] chore(deps): update ruby/setup-ruby action to v1.170.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 909a9c57..4d0b628b 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@5daca165445f0ae10478593083f72ca2625e241d # v1.169.0 + uses: ruby/setup-ruby@bd03e04863f52d169e18a2b190e8fa6b84938215 # v1.170.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 fef290a5..384cc253 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@5daca165445f0ae10478593083f72ca2625e241d # v1.169.0 + uses: ruby/setup-ruby@bd03e04863f52d169e18a2b190e8fa6b84938215 # v1.170.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 df9dc48c..28b8ab18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Set up Ruby - uses: ruby/setup-ruby@5daca165445f0ae10478593083f72ca2625e241d # v1.169.0 + uses: ruby/setup-ruby@bd03e04863f52d169e18a2b190e8fa6b84938215 # v1.170.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 88974be9cdb44f6cd4a4c28ca886b5a04d45264a Mon Sep 17 00:00:00 2001 From: stacksharebot Date: Sat, 27 Jan 2024 03:50:26 +0000 Subject: [PATCH 16/37] Create techstack.yml --- techstack.yml | 597 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 597 insertions(+) create mode 100644 techstack.yml diff --git a/techstack.yml b/techstack.yml new file mode 100644 index 00000000..88f89c51 --- /dev/null +++ b/techstack.yml @@ -0,0 +1,597 @@ +repo_name: freeCodeCamp/devdocs +report_id: 281e8991a46b88702952b7b18dd5e2b0 +version: 0.1 +repo_type: Public +timestamp: '2024-01-27T03:50:22+00:00' +requested_by: renovate[bot] +provider: github +branch: main +detected_tools_count: 43 +tools: +- name: CSS 3 + description: The latest evolution of the Cascading Style Sheets language + website_url: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS3 + open_source: true + hosted_saas: false + category: Languages & Frameworks + sub_category: Languages + image_url: https://img.stackshare.io/service/6727/css.png + detection_source_url: https://github.com/freeCodeCamp/devdocs + detection_source: Repo Metadata +- name: JavaScript + description: Lightweight, interpreted, object-oriented language with first-class + functions + website_url: https://developer.mozilla.org/en-US/docs/Web/JavaScript + open_source: true + hosted_saas: false + category: Languages & Frameworks + sub_category: Languages + image_url: https://img.stackshare.io/service/1209/javascript.jpeg + detection_source_url: https://github.com/freeCodeCamp/devdocs + detection_source: Repo Metadata +- name: Ruby + description: A dynamic, interpreted, open source programming language with a focus + on simplicity and productivity + website_url: https://www.ruby-lang.org + version: 3.3.0 + open_source: true + hosted_saas: false + category: Languages & Frameworks + sub_category: Languages + image_url: https://img.stackshare.io/service/989/ruby.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Repo Metadata + last_updated_by: Thibaut + last_updated_on: 2013-10-24 18:25:52.000000000 Z +- name: Sinatra + description: Classy web-development dressed in a DSL + website_url: http://www.sinatrarb.com/ + license: MIT + open_source: true + hosted_saas: false + category: Languages & Frameworks + sub_category: Microframeworks (Backend) + image_url: https://img.stackshare.io/service/999/logo.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: Capybara + description: Acceptance test framework for web applications + website_url: http://jnicklas.github.io/capybara/ + license: MIT + open_source: true + hosted_saas: false + category: Build, Test, Deploy + sub_category: Testing Frameworks + image_url: https://img.stackshare.io/service/2595/capybara.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile + detection_source: Gemfile + last_updated_by: Thibaut + last_updated_on: 2014-01-26 21:01:54.000000000 Z +- name: Docker + description: Enterprise Container Platform for High-Velocity Innovation. + website_url: https://www.docker.com/ + license: Apache-2.0 + open_source: true + hosted_saas: false + category: Build, Test, Deploy + sub_category: Virtual Machine Platforms & Containers + image_url: https://img.stackshare.io/service/586/n4u37v9t_400x400.png + detection_source_url: https://github.com/freeCodeCamp/devdocs + detection_source: Repo Metadata +- name: Git + description: Fast, scalable, distributed revision control system + website_url: http://git-scm.com/ + open_source: true + hosted_saas: false + category: Build, Test, Deploy + sub_category: Version Control System + image_url: https://img.stackshare.io/service/1046/git.png + detection_source_url: https://github.com/freeCodeCamp/devdocs + detection_source: Repo Metadata +- name: GitHub Actions + description: Automate your workflow from idea to production + website_url: https://github.com/features/actions + open_source: false + hosted_saas: true + category: Build, Test, Deploy + sub_category: Continuous Integration + image_url: https://img.stackshare.io/service/11563/actions.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/.github/workflows/build.yml + detection_source: ".github/workflows/build.yml" + last_updated_by: renovate[bot] + last_updated_on: 2023-03-25 01:01:01.000000000 Z +- name: New Relic + description: New Relic is the industry’s largest and most comprehensive cloud-based + observability platform. + website_url: http://newrelic.com + open_source: false + hosted_saas: true + category: Monitoring + sub_category: Performance Monitoring + image_url: https://img.stackshare.io/service/103/default_193410db3a7e419c7b436961bf41d733c7346b59.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile + detection_source: Gemfile + last_updated_by: Thibaut Courouble + last_updated_on: 2018-03-24 19:06:19.000000000 Z +- name: RubyGems + description: Easily download, install, and use ruby software packages on your system + website_url: https://rubygems.org/ + open_source: false + hosted_saas: false + category: Build, Test, Deploy + sub_category: Package Managers + image_url: https://img.stackshare.io/service/12795/5jL6-BA5_400x400.jpeg + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile + detection_source: Gemfile + last_updated_by: Thibaut + last_updated_on: 2013-10-24 18:25:52.000000000 Z +- name: npm + description: The package manager for JavaScript. + website_url: https://www.npmjs.com/ + open_source: false + hosted_saas: false + category: Build, Test, Deploy + sub_category: Front End Package Manager + image_url: https://img.stackshare.io/service/1120/lejvzrnlpb308aftn31u.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile + detection_source: Gemfile + last_updated_by: Thibaut + last_updated_on: 2013-10-24 18:25:52.000000000 Z +- name: activesupport + description: A toolkit of support libraries and Ruby core extensions extracted from + the Rails framework + package_url: https://rubygems.org/activesupport + version: 7.1.3 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18817/default_b17f14dbef6c1275120b34d9ec2eff5942499bd5.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: better_errors + description: Provides a better error page for Rails and other Rack apps + package_url: https://rubygems.org/better_errors + version: 2.10.1 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19224/default_90da4313847baa579409c050c1ebb8de5a6e0fbc.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Thibaut + last_updated_on: 2013-10-24 18:25:52.000000000 Z +- name: browser + description: Do some browser detection with Ruby + package_url: https://rubygems.org/browser + version: 5.3.1 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19740/default_dd31b4f280886d69f8a43459d55ecc7f1ae44486.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: chunky_png + description: This pure Ruby library can read and write PNG images without depending + on an external image library, like RMagick + package_url: https://rubygems.org/chunky_png + version: 1.4.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19118/default_ab0024f54be625eb1e21abc015158fc74b2e3704.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: erubi + description: Erubi is a ERB template engine for ruby + package_url: https://rubygems.org/erubi + version: 1.12.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/rubygems/image.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: html-pipeline + description: GitHub HTML processing filters and utilities + package_url: https://rubygems.org/html-pipeline + version: 2.14.3 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19386/default_b0770ebdd12e1eb479a98261d0175b1714524f87.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Thibaut Courouble + last_updated_on: 2018-10-21 22:41:35.000000000 Z +- name: image_optim + description: Command line tool and ruby interface to optimize + package_url: https://rubygems.org/image_optim + version: 0.31.3 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19798/default_5acb201e8340ca5b337b8c46c2fcaff7aa0db0ec.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: image_optim_pack + description: 'Precompiled binaries for image_optim: advpng' + package_url: https://rubygems.org/image_optim_pack + version: 0.10.1 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/rubygems/image.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: minitest + description: Minitest provides a complete suite of testing facilities supporting + TDD, BDD, mocking, and benchmarking + package_url: https://rubygems.org/minitest + version: 5.21.2 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18818/default_f36df1cfa9ff6061d7f9b4879088be8538581c49.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Thibaut + last_updated_on: 2015-01-03 15:38:22.000000000 Z +- name: net-sftp + description: A pure Ruby implementation of the SFTP client protocol + package_url: https://rubygems.org/net-sftp + version: 4.0.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19106/default_92b412aaa5197ea1fc2d70a503018e4186714110.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: newrelic_rpm + description: New Relic is a performance management system, developed by New Relic, + Inc + package_url: https://rubygems.org/newrelic_rpm + version: 8.16.0 + license: Apache-2.0 + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19246/default_518f3430d0c3ea4653c591ebd7e75da67f51cfaf.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Thibaut Courouble + last_updated_on: 2018-03-24 19:06:19.000000000 Z +- name: nokogiri + description: Nokogiri + package_url: https://rubygems.org/nokogiri + version: 1.16.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18823/default_b8fbb83e23c963442e15398c5b56262cc6267d6f.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Thibaut Courouble + last_updated_on: 2018-10-21 22:41:35.000000000 Z +- name: progress_bar + description: 'Give people feedback about long-running tasks without overloading + them with information: Use a progress bar' + package_url: https://rubygems.org/progress_bar + version: 1.3.3 + license: WTFPL + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19696/default_2312d4d1847ef96af6bbd57ed9959234ab92321c.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Thibaut + last_updated_on: 2014-01-26 21:01:54.000000000 Z +- name: pry-byebug + description: Combine 'pry' with 'byebug' + package_url: https://rubygems.org/pry-byebug + version: 3.10.1 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18848/default_1c2935fa69cec14d38adad302e002464101cd71f.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: rack + description: Rack provides a minimal, modular and adaptable interface for developing + web applications in Ruby + package_url: https://rubygems.org/rack + version: 2.2.8 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18839/default_db5cfb0d85d9fd8bfb40a863581417a2a57791ab.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: rack-ssl-enforcer + description: Rack::SslEnforcer is a simple Rack middleware to enforce ssl connections + package_url: https://rubygems.org/rack-ssl-enforcer + version: 0.2.9 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/rubygems/image.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: rack-test + description: Rack::Test is a small, simple testing API for Rack apps + package_url: https://rubygems.org/rack-test + version: 2.1.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18845/default_db5cfb0d85d9fd8bfb40a863581417a2a57791ab.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: rake + description: Rake is a Make-like program implemented in Ruby + package_url: https://rubygems.org/rake + version: 13.1.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18812/default_f582e4648f4682adb72d2b201218cda7f8e894ac.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: redcarpet + description: A fast, safe and extensible Markdown to + package_url: https://rubygems.org/redcarpet + version: 3.6.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18853/default_b87d202e13d56f87c63181fa49bc5e099c9abaac.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: rr + description: RR is a test double framework that features a rich selection of double + techniques and a terse syntax + package_url: https://rubygems.org/rr + version: 3.1.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18915/default_353d3fd998e68372ebd6d80dbb4c0632f387d091.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Thibaut + last_updated_on: 2013-10-24 18:25:52.000000000 Z +- name: sass + description: Ruby Sass is deprecated! See https://sass-lang.com/ruby-sass for details + package_url: https://rubygems.org/sass + version: 3.7.4 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18882/default_b1cb499f3e62fe773109c989f76e3365fbe49857.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Simon Legner + last_updated_on: 2024-01-13 21:26:48.000000000 Z +- name: selenium-webdriver + description: WebDriver is a tool for writing automated tests of websites + package_url: https://rubygems.org/selenium-webdriver + license: Apache-2.0 + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18901/default_f0ad2b1ffbe10fdd866f9f8e5f812599d9e8085b.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile + detection_source: Gemfile + last_updated_by: Thibaut + last_updated_on: 2014-01-26 21:01:54.000000000 Z +- name: sinatra-contrib + description: Collection of useful Sinatra extensions + package_url: https://rubygems.org/sinatra-contrib + version: 3.2.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19010/default_4361ccfae4dee655802081d8182ddcaebd7a2b3f.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: sprockets + description: Sprockets is a Rack-based asset packaging system that concatenates + and serves JavaScript + package_url: https://rubygems.org/sprockets + version: 3.7.2 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18932/default_36bbb38c1cd5521e90d6e99982778960b00ec515.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Simon Legner + last_updated_on: 2024-01-13 21:26:48.000000000 Z +- name: sprockets-helpers + description: Asset path helpers for Sprockets 2.x &amp; 3.x applications + package_url: https://rubygems.org/sprockets-helpers + version: 1.4.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19732/default_be22d39d0c697424d0da2019daf25b87c93b4c6e.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Simon Legner + last_updated_on: 2024-01-13 21:26:48.000000000 Z +- name: sprockets-sass + description: When using Sprockets 2.0 with Sass you will eventually run into a pretty + big issue + package_url: https://rubygems.org/sprockets-sass + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/19683/default_5a5984fb57132e73bff841a1ebf058577d3c8cb9.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile + detection_source: Gemfile + last_updated_by: Simon Legner + last_updated_on: 2024-01-13 21:26:48.000000000 Z +- name: terminal-table + description: Simple, feature rich ascii table generation library + package_url: https://rubygems.org/terminal-table + version: 3.0.2 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18923/default_401820e785202ca0018a36ea3e12ee9a92b3efac.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Jasper van Merle + last_updated_on: 2019-10-11 15:55:09.000000000 Z +- name: thin + description: A thin and fast web server + package_url: https://rubygems.org/thin + version: 1.8.2 + license: GPL-2.0+,Ruby + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18900/default_f0ad2b1ffbe10fdd866f9f8e5f812599d9e8085b.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: thor + description: Thor is a toolkit for building powerful command-line interfaces + package_url: https://rubygems.org/thor + version: 1.3.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18827/default_fa0604c1b3b2c413c942b4fa310935704d314c2f.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: tty-pager + description: Terminal output paging in a cross-platform way supporting all major + ruby interpreters + package_url: https://rubygems.org/tty-pager + version: 0.14.0 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/rubygems/image.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Thibaut Courouble + last_updated_on: 2016-01-24 15:03:12.000000000 Z +- name: typhoeus + description: Like a modern code version of the mythical beast with 100 serpent heads + package_url: https://rubygems.org/typhoeus + version: 1.4.1 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18891/default_b7088ec778267614a78a5a472c67252ec1721d10.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Paul Sernatinger + last_updated_on: 2022-11-14 14:30:30.000000000 Z +- name: yajl-ruby + description: Ruby C bindings to the excellent Yajl JSON stream-based parser library + package_url: https://rubygems.org/yajl-ruby + version: 1.4.3 + license: MIT + open_source: true + hosted_saas: false + category: Libraries + sub_category: RubyGems Packages + image_url: https://img.stackshare.io/package/18895/default_9386886dd1c6c396a11bd4b49732afb9ec444f8d.png + detection_source_url: https://github.com/freeCodeCamp/devdocs/blob/main/Gemfile.lock + detection_source: Gemfile + last_updated_by: Nicholas La Roux + last_updated_on: 2024-01-09 12:48:51.000000000 Z From 371ae9b5117807fd5fc37cd9b8004a976a1d6656 Mon Sep 17 00:00:00 2001 From: stacksharebot Date: Sat, 27 Jan 2024 03:50:27 +0000 Subject: [PATCH 17/37] Create techstack.md --- techstack.md | 189 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 189 insertions(+) create mode 100644 techstack.md diff --git a/techstack.md b/techstack.md new file mode 100644 index 00000000..f9657f09 --- /dev/null +++ b/techstack.md @@ -0,0 +1,189 @@ + +
+ +# Tech Stack File +![](https://img.stackshare.io/repo.svg "repo") [freeCodeCamp/devdocs](https://github.com/freeCodeCamp/devdocs)![](https://img.stackshare.io/public_badge.svg "public") +

+|43
Tools used|01/27/24
Report generated| +|------|------| +
+ +## Languages (3) + + + + + + + + +
+ CSS 3 +
+ CSS 3 +
+ +
+ JavaScript +
+ JavaScript +
+ +
+ Ruby +
+ Ruby +
+ v3.3.0 +
+ +## Frameworks (1) + + + + +
+ Sinatra +
+ Sinatra +
+ +
+ +## DevOps (7) + + + + + + + + + + + + + + + + +
+ Capybara +
+ Capybara +
+ +
+ Docker +
+ Docker +
+ +
+ Git +
+ Git +
+ +
+ GitHub Actions +
+ GitHub Actions +
+ +
+ New Relic +
+ New Relic +
+ +
+ RubyGems +
+ RubyGems +
+ +
+ npm +
+ npm +
+ +
+ + +## Open source packages (32) + +## RubyGems (32) + +|NAME|VERSION|LAST UPDATED|LAST UPDATED BY|LICENSE|VULNERABILITIES| +|:------|:------|:------|:------|:------|:------| +|[activesupport](https://rubygems.org/activesupport)|v7.1.3|11/14/22|Paul Sernatinger |MIT|N/A| +|[better_errors](https://rubygems.org/better_errors)|v2.10.1|10/24/13|Thibaut |MIT|N/A| +|[browser](https://rubygems.org/browser)|v5.3.1|11/14/22|Paul Sernatinger |MIT|N/A| +|[chunky_png](https://rubygems.org/chunky_png)|v1.4.0|11/14/22|Paul Sernatinger |MIT|N/A| +|[erubi](https://rubygems.org/erubi)|v1.12.0|11/14/22|Paul Sernatinger |MIT|N/A| +|[html-pipeline](https://rubygems.org/html-pipeline)|v2.14.3|10/21/18|Thibaut Courouble |MIT|N/A| +|[image_optim](https://rubygems.org/image_optim)|v0.31.3|11/14/22|Paul Sernatinger |MIT|N/A| +|[image_optim_pack](https://rubygems.org/image_optim_pack)|v0.10.1|11/14/22|Paul Sernatinger |MIT|N/A| +|[minitest](https://rubygems.org/minitest)|v5.21.2|01/03/15|Thibaut |MIT|N/A| +|[net-sftp](https://rubygems.org/net-sftp)|v4.0.0|11/14/22|Paul Sernatinger |MIT|N/A| +|[newrelic_rpm](https://rubygems.org/newrelic_rpm)|v8.16.0|03/24/18|Thibaut Courouble |Apache-2.0|N/A| +|[nokogiri](https://rubygems.org/nokogiri)|v1.16.0|10/21/18|Thibaut Courouble |MIT|N/A| +|[progress_bar](https://rubygems.org/progress_bar)|v1.3.3|01/26/14|Thibaut |WTFPL|N/A| +|[pry-byebug](https://rubygems.org/pry-byebug)|v3.10.1|11/14/22|Paul Sernatinger |MIT|N/A| +|[rack](https://rubygems.org/rack)|v2.2.8|11/14/22|Paul Sernatinger |MIT|N/A| +|[rack-ssl-enforcer](https://rubygems.org/rack-ssl-enforcer)|v0.2.9|11/14/22|Paul Sernatinger |MIT|N/A| +|[rack-test](https://rubygems.org/rack-test)|v2.1.0|11/14/22|Paul Sernatinger |MIT|N/A| +|[rake](https://rubygems.org/rake)|v13.1.0|11/14/22|Paul Sernatinger |MIT|N/A| +|[redcarpet](https://rubygems.org/redcarpet)|v3.6.0|11/14/22|Paul Sernatinger |MIT|N/A| +|[rr](https://rubygems.org/rr)|v3.1.0|10/24/13|Thibaut |MIT|N/A| +|[sass](https://rubygems.org/sass)|v3.7.4|01/13/24|Simon Legner |MIT|N/A| +|[selenium-webdriver](https://rubygems.org/selenium-webdriver)|N/A|01/26/14|Thibaut |Apache-2.0|N/A| +|[sinatra-contrib](https://rubygems.org/sinatra-contrib)|v3.2.0|11/14/22|Paul Sernatinger |MIT|N/A| +|[sprockets](https://rubygems.org/sprockets)|v3.7.2|01/13/24|Simon Legner |MIT|N/A| +|[sprockets-helpers](https://rubygems.org/sprockets-helpers)|v1.4.0|01/13/24|Simon Legner |MIT|N/A| +|[sprockets-sass](https://rubygems.org/sprockets-sass)|N/A|01/13/24|Simon Legner |MIT|N/A| +|[terminal-table](https://rubygems.org/terminal-table)|v3.0.2|10/11/19|Jasper van Merle |MIT|N/A| +|[thin](https://rubygems.org/thin)|v1.8.2|11/14/22|Paul Sernatinger |GPL-2.0+,Ruby|N/A| +|[thor](https://rubygems.org/thor)|v1.3.0|11/14/22|Paul Sernatinger |MIT|N/A| +|[tty-pager](https://rubygems.org/tty-pager)|v0.14.0|01/24/16|Thibaut Courouble |MIT|N/A| +|[typhoeus](https://rubygems.org/typhoeus)|v1.4.1|11/14/22|Paul Sernatinger |MIT|N/A| +|[yajl-ruby](https://rubygems.org/yajl-ruby)|v1.4.3|01/09/24|Nicholas La Roux |MIT|N/A| + +
+
+ +Generated via [Stack File](https://github.com/marketplace/stack-file) From abec0d937512edd675d80faf2018e0aa5706f8f2 Mon Sep 17 00:00:00 2001 From: Jake Leahy Date: Sun, 28 Jan 2024 15:30:16 +1100 Subject: [PATCH 18/37] Update Nim version and copyright --- lib/docs/scrapers/nim.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/nim.rb b/lib/docs/scrapers/nim.rb index 5a9d4f00..d24e19b2 100644 --- a/lib/docs/scrapers/nim.rb +++ b/lib/docs/scrapers/nim.rb @@ -1,7 +1,7 @@ module Docs class Nim < UrlScraper self.type = 'simple' - self.release = '1.4.8' + self.release = '2.0.2' self.base_url = 'https://nim-lang.org/docs/' self.root_path = 'overview.html' self.links = { @@ -14,7 +14,7 @@ module Docs options[:skip] = %w(theindex.html docgen.html tut1.html tut2.html tut3.html tools.html) options[:attribution] = <<-HTML - © 2006–2021 Andreas Rumpf
+ © 2006–2024 Andreas Rumpf
Licensed under the MIT License. HTML From c2a47b323fe0ceeab51bdbfc99e0d049e9e7cd16 Mon Sep 17 00:00:00 2001 From: Jake Leahy Date: Sun, 28 Jan 2024 15:30:48 +1100 Subject: [PATCH 19/37] Update regex now that table of contents is in different format Regex now removes anything that comes after [ or ( --- lib/docs/filters/nim/entries.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/nim/entries.rb b/lib/docs/filters/nim/entries.rb index 7461ab5f..e5ef24ef 100644 --- a/lib/docs/filters/nim/entries.rb +++ b/lib/docs/filters/nim/entries.rb @@ -55,7 +55,8 @@ module Docs css('.simple-toc-section a, .nested-toc-section a').each do |node| entry_name = node.content - entry_name.gsub!(/,.*/, '') + entry_name.gsub!(/(\(|\[).*/, '') + entry_id = slug + node['href'] entries << [entry_name, entry_id, name] end From 62d43fb87550593aa0ba14e70cdda62e897692c0 Mon Sep 17 00:00:00 2001 From: Jake Leahy Date: Sun, 28 Jan 2024 15:50:51 +1100 Subject: [PATCH 20/37] Change from replacement regex to actually searching for the name Makes it work in more scenarios, and also removes the stropping --- lib/docs/filters/nim/entries.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/nim/entries.rb b/lib/docs/filters/nim/entries.rb index e5ef24ef..27d32dfe 100644 --- a/lib/docs/filters/nim/entries.rb +++ b/lib/docs/filters/nim/entries.rb @@ -54,8 +54,8 @@ module Docs else css('.simple-toc-section a, .nested-toc-section a').each do |node| - entry_name = node.content - entry_name.gsub!(/(\(|\[).*/, '') + match = /^`(.*)`|^(\w+)/.match(node.content) + entry_name = match[1] || match[2] entry_id = slug + node['href'] entries << [entry_name, entry_id, name] From 0ec385d9bca29efc27602739a2f5c452b6001b9f Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 30 Jan 2024 13:03:42 +0000 Subject: [PATCH 21/37] Add Django 5.0 --- lib/docs/scrapers/django.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/docs/scrapers/django.rb b/lib/docs/scrapers/django.rb index fc179dbc..98181e3d 100644 --- a/lib/docs/scrapers/django.rb +++ b/lib/docs/scrapers/django.rb @@ -34,6 +34,11 @@ module Docs Licensed under the BSD License. HTML + version '5.0' do + self.release = '5.0' + self.base_url = "https://docs.djangoproject.com/en/#{self.version}/" + end + version '4.2' do self.release = '4.2' self.base_url = "https://docs.djangoproject.com/en/#{self.version}/" From b16d86e8011d22d9ac90b0e11fe7daddb4ca1373 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 31 Jan 2024 17:17:06 +0000 Subject: [PATCH 22/37] chore(deps): update ruby/setup-ruby action to v1.171.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 4d0b628b..9f077f1b 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@bd03e04863f52d169e18a2b190e8fa6b84938215 # v1.170.0 + uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.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 384cc253..8c84f644 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@bd03e04863f52d169e18a2b190e8fa6b84938215 # v1.170.0 + uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.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 28b8ab18..6dae11b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Set up Ruby - uses: ruby/setup-ruby@bd03e04863f52d169e18a2b190e8fa6b84938215 # v1.170.0 + uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 3f2759c914044d6bbc41b0f00b78cd56ecc5fe3e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 3 Feb 2024 16:58:33 +0000 Subject: [PATCH 23/37] chore(deps): update dependency nokogiri to v1.16.1 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index cfe43c1a..1cd9d09b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -62,7 +62,7 @@ GEM net-ssh (>= 5.0.0, < 8.0.0) net-ssh (7.0.1) newrelic_rpm (8.16.0) - nokogiri (1.16.0) + nokogiri (1.16.1) mini_portile2 (~> 2.8.2) racc (~> 1.4) options (2.3.2) From db655520a2b847fce7dcc3609e222f5b86a5ab8a Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 4 Feb 2024 19:26:42 +0100 Subject: [PATCH 24/37] nim: keep 1.4 docs --- lib/docs/scrapers/nim.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/docs/scrapers/nim.rb b/lib/docs/scrapers/nim.rb index d24e19b2..9001dbee 100644 --- a/lib/docs/scrapers/nim.rb +++ b/lib/docs/scrapers/nim.rb @@ -1,7 +1,6 @@ module Docs class Nim < UrlScraper self.type = 'simple' - self.release = '2.0.2' self.base_url = 'https://nim-lang.org/docs/' self.root_path = 'overview.html' self.links = { @@ -18,6 +17,14 @@ module Docs Licensed under the MIT License. HTML + version do + self.release = '2.0.2' + end + + version '1' do + self.release = '1.4.8' + end + def get_latest_version(opts) doc = fetch_doc('https://nim-lang.org/docs/overview.html', opts) doc.at_css('.container > .docinfo > tbody > tr:last-child > td').content.strip From e57c6f765a692a691339fc6c82da3067e848ffc3 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 4 Feb 2024 19:28:21 +0100 Subject: [PATCH 25/37] nim: improve additional_entries --- lib/docs/filters/nim/entries.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/nim/entries.rb b/lib/docs/filters/nim/entries.rb index 27d32dfe..1ec4609a 100644 --- a/lib/docs/filters/nim/entries.rb +++ b/lib/docs/filters/nim/entries.rb @@ -16,8 +16,10 @@ module Docs name.remove! ' User Guide' name.remove! ' User\'s manual' name.remove! %r{ \-.*} + name.remove! %r{\Asrc/} + name.remove! %r{\Astd/} name.strip! - name + name.split("/").last end def get_type @@ -58,7 +60,7 @@ module Docs entry_name = match[1] || match[2] entry_id = slug + node['href'] - entries << [entry_name, entry_id, name] + entries << ["#{entry_name} (#{name})", entry_id, name] end end From b394dfe00cc925c06c6a6f0d66eb9375f0d713d8 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 4 Feb 2024 19:32:44 +0100 Subject: [PATCH 26/37] kubernetes: fix duplicate 1.25 --- lib/docs/scrapers/kubernetes.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/docs/scrapers/kubernetes.rb b/lib/docs/scrapers/kubernetes.rb index 13eba935..22149d06 100644 --- a/lib/docs/scrapers/kubernetes.rb +++ b/lib/docs/scrapers/kubernetes.rb @@ -34,11 +34,6 @@ module Docs self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/" end - version '1.27' do - self.release = "#{version}" - self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/" - end - version '1.26' do self.release = "#{version}" self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/" From 1904c1ba144bc78fafd19c46c438e9b449b2ffcf Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 4 Feb 2024 19:42:38 +0100 Subject: [PATCH 27/37] Update Vitest documentation (1.2.2) --- lib/docs/filters/vitest/entries.rb | 2 ++ lib/docs/scrapers/vitest.rb | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/vitest/entries.rb b/lib/docs/filters/vitest/entries.rb index 03527ef6..daa43bc5 100644 --- a/lib/docs/filters/vitest/entries.rb +++ b/lib/docs/filters/vitest/entries.rb @@ -4,12 +4,14 @@ module Docs def get_name name = at_css('h1').content name.sub! %r{\s*#\s*}, '' + name.sub! %r{\s*\u200B\s*}, '' name end def get_type name = at_css('h1').content name.sub! %r{\s*#\s*}, '' + name.sub! %r{\s*\u200B\s*}, '' name end diff --git a/lib/docs/scrapers/vitest.rb b/lib/docs/scrapers/vitest.rb index 820b9eef..251b6c69 100644 --- a/lib/docs/scrapers/vitest.rb +++ b/lib/docs/scrapers/vitest.rb @@ -9,6 +9,7 @@ module Docs } options[:root_title] = 'Vitest' + options[:download_images] = false options[:attribution] = <<-HTML © 2021-Present Anthony Fu
@@ -16,7 +17,7 @@ module Docs Licensed under the MIT License. HTML - self.release = '1.1.3' + self.release = '1.2.2' self.base_url = 'https://vitest.dev/' self.initial_paths = %w(guide/) html_filters.push 'vitest/entries', 'vite/clean_html' From 5d621133c9e6ea0d7a05433cf0f4418fdcbca369 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 4 Feb 2024 19:44:10 +0100 Subject: [PATCH 28/37] Update esbuild documentation (0.20.0) --- lib/docs/scrapers/esbuild.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/esbuild.rb b/lib/docs/scrapers/esbuild.rb index e0b6c861..f5c463f1 100644 --- a/lib/docs/scrapers/esbuild.rb +++ b/lib/docs/scrapers/esbuild.rb @@ -16,7 +16,7 @@ module Docs Licensed under the MIT License. HTML - self.release = '0.19.11' + self.release = '0.20.0' self.base_url = 'https://esbuild.github.io/' html_filters.push 'esbuild/clean_html', 'esbuild/entries' From eae6ed14d3563e5c4f890679f5c2e1257ef5933b Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 4 Feb 2024 19:48:56 +0100 Subject: [PATCH 29/37] Update SQLite documentation (3.45.1) --- lib/docs/scrapers/sqlite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/sqlite.rb b/lib/docs/scrapers/sqlite.rb index 062d907c..9a7ed376 100644 --- a/lib/docs/scrapers/sqlite.rb +++ b/lib/docs/scrapers/sqlite.rb @@ -2,7 +2,7 @@ module Docs class Sqlite < UrlScraper self.name = 'SQLite' self.type = 'sqlite' - self.release = '3.44.2' + self.release = '3.45.1' self.base_url = 'https://sqlite.org/' self.root_path = 'docs.html' self.initial_paths = %w(keyword_index.html) From b021cfd42ec77a07cca9cd90d6cbe664ad54750c Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 4 Feb 2024 19:50:49 +0100 Subject: [PATCH 30/37] Update HAProxy documentation (2.9.0) --- lib/docs/scrapers/haproxy.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/docs/scrapers/haproxy.rb b/lib/docs/scrapers/haproxy.rb index bac09b9c..9135f4d7 100644 --- a/lib/docs/scrapers/haproxy.rb +++ b/lib/docs/scrapers/haproxy.rb @@ -20,6 +20,11 @@ module Docs Licensed under the GNU General Public License version 2. HTML + version '2.9' do + self.release = '2.9.0' + self.base_url = "https://docs.haproxy.org/#{self.version}/" + end + version '2.8' do self.release = '2.8.0' self.base_url = "https://docs.haproxy.org/#{self.version}/" From df43dc7b3f0da77ef1cb5dca5d9fdab6e2997f02 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 4 Feb 2024 21:23:08 +0000 Subject: [PATCH 31/37] chore(deps): update dependency nokogiri to v1.16.2 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 1cd9d09b..d921f4ba 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -62,7 +62,7 @@ GEM net-ssh (>= 5.0.0, < 8.0.0) net-ssh (7.0.1) newrelic_rpm (8.16.0) - nokogiri (1.16.1) + nokogiri (1.16.2) mini_portile2 (~> 2.8.2) racc (~> 1.4) options (2.3.2) From e3d3784728875e07700937fa1305b42d13a858e5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:27:53 +0000 Subject: [PATCH 32/37] chore(deps): update dependency minitest to v5.22.0 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index d921f4ba..ebe930db 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,7 +53,7 @@ GEM in_threads (1.6.0) method_source (1.0.0) mini_portile2 (2.8.5) - minitest (5.21.2) + minitest (5.22.0) multi_json (1.15.0) mustermann (3.0.0) ruby2_keywords (~> 0.0.1) From b8539988e8a26c034d7b3519dddca9dbb9b679ef Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 7 Feb 2024 03:53:06 +0000 Subject: [PATCH 33/37] chore(deps): update dependency minitest to v5.22.1 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index ebe930db..e14a7ed1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,7 +53,7 @@ GEM in_threads (1.6.0) method_source (1.0.0) mini_portile2 (2.8.5) - minitest (5.22.0) + minitest (5.22.1) multi_json (1.15.0) mustermann (3.0.0) ruby2_keywords (~> 0.0.1) From 18e4c08279a9703aa8d169a60fcf0468692759d2 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 7 Feb 2024 21:25:40 +0100 Subject: [PATCH 34/37] Update Go documentation (1.22.0) --- lib/docs/scrapers/go.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/go.rb b/lib/docs/scrapers/go.rb index c94a5455..cc20b49a 100644 --- a/lib/docs/scrapers/go.rb +++ b/lib/docs/scrapers/go.rb @@ -1,7 +1,7 @@ module Docs class Go < UrlScraper self.type = 'go' - self.release = '1.21.5' + self.release = '1.22.0' self.base_url = 'https://golang.org/pkg/' self.links = { home: 'https://golang.org/', From 4123acfdd0052b297415b2fbd5e0b68009aac1a7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 7 Feb 2024 22:51:35 +0000 Subject: [PATCH 35/37] chore(deps): update dependency minitest to v5.22.2 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index e14a7ed1..013eb771 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,7 +53,7 @@ GEM in_threads (1.6.0) method_source (1.0.0) mini_portile2 (2.8.5) - minitest (5.22.1) + minitest (5.22.2) multi_json (1.15.0) mustermann (3.0.0) ruby2_keywords (~> 0.0.1) From 68cf0a82f9708415cbb7b91617353fa9ca3b691f Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 10 Feb 2024 20:12:26 +0100 Subject: [PATCH 36/37] Update Git documentation (2.43.1) --- lib/docs/scrapers/git.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/git.rb b/lib/docs/scrapers/git.rb index 2f3ea3b6..9380099e 100644 --- a/lib/docs/scrapers/git.rb +++ b/lib/docs/scrapers/git.rb @@ -1,7 +1,7 @@ module Docs class Git < UrlScraper self.type = 'git' - self.release = '2.42.0' + self.release = '2.43.1' self.base_url = 'https://git-scm.com/docs' self.initial_paths = %w(/git.html) self.links = { @@ -16,7 +16,7 @@ module Docs options[:skip] = %w(/howto-index.html) options[:attribution] = <<-HTML - © 2012–2023 Scott Chacon and others
+ © 2012–2024 Scott Chacon and others
Licensed under the MIT License. HTML From a1d4f87fc4860305027b4c1ecfa61c949b492ea2 Mon Sep 17 00:00:00 2001 From: Yen Ton Date: Tue, 20 Feb 2024 00:24:38 -0800 Subject: [PATCH 37/37] 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