[devdocsgjs/main: 748/1867] go: move `id`s to kept elements
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 748/1867] go: move `id`s to kept elements
- Date: Fri, 19 Nov 2021 23:47:27 +0000 (UTC)
commit 40477ece850a658ade267420ee78dce4d9ff3919
Author: Simon Legner <Simon Legner gmail com>
Date: Thu Aug 8 15:22:12 2019 +0200
go: move `id`s to kept elements
lib/docs/filters/go/clean_html.rb | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/lib/docs/filters/go/clean_html.rb b/lib/docs/filters/go/clean_html.rb
index 9acc91c7..a286c66b 100644
--- a/lib/docs/filters/go/clean_html.rb
+++ b/lib/docs/filters/go/clean_html.rb
@@ -17,6 +17,7 @@ module Docs
css('#plusone', '#nav', '.pkgGopher', '#footer', '.collapsed', '.permalink', '#pkg-callgraph').remove
css('span[style]', '.toggleVisible', '.expanded', 'div.toggle').each do |node|
+ node.first_element_child['id'] = node['id'] if node['id']
node.before(node.children).remove
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]