[devdocsgjs/main: 121/239] Update npm documentation (8.3.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 121/239] Update npm documentation (8.3.0)
- Date: Fri, 8 Apr 2022 07:47:37 +0000 (UTC)
commit 119b150d88f1863239813df1b6951bd0352a17d7
Author: Simon Legner <Simon Legner gmail com>
Date: Tue Jan 11 06:36:05 2022 +0100
Update npm documentation (8.3.0)
lib/docs/filters/npm/clean_html.rb | 5 +++++
lib/docs/scrapers/npm.rb | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/npm/clean_html.rb b/lib/docs/filters/npm/clean_html.rb
index 23eebddb..ad07c476 100644
--- a/lib/docs/filters/npm/clean_html.rb
+++ b/lib/docs/filters/npm/clean_html.rb
@@ -15,6 +15,11 @@ module Docs
css('.jRndWL').remove_attribute('style')
+ css('pre').each do |node|
+ node.content = node.css('.token-line').map(&:content).join("\n")
+ node['data-language'] = 'javascript'
+ end
+
doc
end
diff --git a/lib/docs/scrapers/npm.rb b/lib/docs/scrapers/npm.rb
index 066e4f54..ce2be86b 100644
--- a/lib/docs/scrapers/npm.rb
+++ b/lib/docs/scrapers/npm.rb
@@ -2,7 +2,7 @@ module Docs
class Npm < UrlScraper
self.name = 'npm'
self.type = 'npm'
- self.release = '8.1.4'
+ self.release = '8.3.0'
self.base_url = 'https://docs.npmjs.com/'
self.force_gzip = true
self.links = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]