[devdocsgjs/main: 34/69] Update Electron documentation (20.0.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 34/69] Update Electron documentation (20.0.0)
- Date: Mon, 12 Sep 2022 18:46:54 +0000 (UTC)
commit 39472385260a4934b224b013ef12081ac52d7435
Author: Simon Legner <Simon Legner gmail com>
Date: Sat Aug 27 20:10:55 2022 +0200
Update Electron documentation (20.0.0)
lib/docs/filters/electron/clean_html.rb | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/lib/docs/filters/electron/clean_html.rb b/lib/docs/filters/electron/clean_html.rb
index 38a3a87d..2ab08a40 100644
--- a/lib/docs/filters/electron/clean_html.rb
+++ b/lib/docs/filters/electron/clean_html.rb
@@ -12,6 +12,11 @@ module Docs
css("footer").remove
+ css('pre').each do |node|
+ node.content = node.css('.token-line').map(&:content).join("\n")
+ node['data-language'] = 'javascript'
+ end
+
doc
end
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]