File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767 ' pages/haproxy' ,
6868 ' pages/haskell' ,
6969 ' pages/jekyll' ,
70+ ' pages/jq' ,
7071 ' pages/jquery' ,
7172 ' pages/julia' ,
7273 ' pages/knockout' ,
Original file line number Diff line number Diff line change 1+ ._jq {
2+ @extend %simple ;
3+
4+ .manual-example table {
5+ border : none ;
6+
7+ & td {
8+ @extend %pre ;
9+ & .jqprogram { font-weight : bold ; }
10+ border : none ;
11+ }
12+
13+ & th {
14+ color : var (--textColor );
15+ background : var (--contentBackground );
16+ text-align : right ;
17+ border : none ;
18+ }
19+
20+ & tr :not (:first-child ) th :not (:empty ) {
21+ & , & + td {
22+ border-top : 1px solid var (--boxBorder );
23+ }
24+ }
25+ }
26+ }
Original file line number Diff line number Diff line change @@ -2,7 +2,19 @@ module Docs
22 class Jq
33 class CleanHtmlFilter < Filter
44 def call
5- at_css ( 'div#manualcontent' )
5+ content = at_css ( 'div#manualcontent' )
6+
7+ css ( '.manual-example' ) . each do |node |
8+ container = node . parent
9+ example_header = doc . document . create_element ( 'h4' )
10+ example_header . content = container . at_css ( 'a[data-toggle="collapse"]' ) . content
11+ node . children . before ( example_header )
12+
13+ node . remove_class ( 'collapse' )
14+ container . replace ( node )
15+ end
16+
17+ content
618 end
719 end
820 end
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module Docs
22 class Jq < UrlScraper
33 self . name = 'jq'
44 self . slug = 'jq'
5- self . type = 'simple '
5+ self . type = 'jq '
66 self . release = '1.6'
77 self . links = {
88 home : 'https://stedolan.github.io/jq/'
You can’t perform that action at this time.
0 commit comments