History

lit: view-source float right

Simon Legner committed 1 year ago

Commit 5fdeff71 parent 8d27cd62 files · +18 −6Browse files

Showing the changes to lib (1 of 2 files). Show all

Unified · Split

lib/docs/filters/lit/clean_html.rb+7−0
@@ -64,6 +64,13 @@ module Docs · 63 unmodified lines
6464 h.prepend_child(kindtag)
6565 end
6666
67+ # View source
68+ css('h2 ~ a.viewSourceLink, h3 ~ a.viewSourceLink, h4 ~ a.viewSourceLink').each do |node|
69+ node['class'] = 'view-source'
70+ node.content = 'Source'
71+ node.previous_element << node
72+ end
73+
6774 doc
6875 end
6976 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t