File tree 5 files changed +21
-7
lines changed
5 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 35
35
{% endif %}
36
36
{% endfor %}
37
37
{% if render %}
38
- < a href ="#method= {{ name | slugify }} " class ="scroll item "> {{ name }}</ a >
38
+ < a href ="#method_ {{ name | slugify }} " class ="scroll item "> {{ name }}</ a >
39
39
{% endif %}
40
40
{% endfor %}
41
41
</ div >
@@ -64,7 +64,7 @@ <h2>API Reference</h2>
64
64
{% endif %}
65
65
{% endfor %}
66
66
{% if render %}
67
- < div id ="method= {{ name | slugify }} " class ="api_method_wrapper ">
67
+ < div id ="method_ {{ name | slugify }} " class ="api_method_wrapper ">
68
68
{{ method.description.full }}
69
69
</ div >
70
70
{% endif %}
Original file line number Diff line number Diff line change 24
24
< div id ="{{ slug }} " class ="subitems ">
25
25
{% for heading in guide.headings %}
26
26
{% assign headingSlug = heading | slugify %}
27
- < a href ="{{ url }} #{{ headingSlug }} " class ="item secondary group-{{ slug }}{{ expanded }} "> {{ heading }}</ a >
27
+ < a href ="#{{ headingSlug }} " class ="item secondary group-{{ slug }}{{ expanded }} "> {{ heading }}</ a >
28
28
{% endfor %}
29
29
</ div >
30
30
{% endif %}
Original file line number Diff line number Diff line change @@ -702,7 +702,6 @@ section#content h1 {
702
702
color : #30759c ;
703
703
}
704
704
section #content h2 {
705
- padding-top : 15px ;
706
705
margin-top : 25px ;
707
706
}
708
707
section #content p code {
Original file line number Diff line number Diff line change 4
4
$baseurl : " {{ site.baseurl }}" ;
5
5
@import " pygments-github-style" ;
6
6
@import " main" ;
7
+
8
+ .rendered {
9
+ h1 , h2 , h3 , h4 , div {
10
+ & [id ]:before {
11
+ display : block ;
12
+ content : " " ;
13
+ margin-top : -80px ;
14
+ height : 80px ;
15
+ visibility : hidden ;
16
+ }
17
+ }
18
+ }
Original file line number Diff line number Diff line change 1
1
$ ( function ( ) {
2
- $ ( 'a.scroll' ) . click ( function ( e ) {
2
+
3
+ $ ( 'a[href^="#"]' ) . click ( function ( e ) {
3
4
e . preventDefault ( ) ;
4
5
5
6
var section = $ ( this ) . attr ( 'href' )
6
- , $scrollto = $ ( section + '-section' ) ;
7
+ , $scrollto = $ ( section ) ;
7
8
8
9
$ ( 'html,body' ) . animate ( {
9
- scrollTop : $scrollto . offset ( ) . top - 90
10
+ scrollTop : $scrollto . offset ( ) . top
11
+ } , function ( ) {
12
+ window . location . hash = section ;
10
13
} ) ;
11
14
} ) ;
12
15
You can’t perform that action at this time.
0 commit comments