File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ ( function ( ) {
2+ function updateClass ( ) {
3+ document . body . classList . remove ( "reference-page" ) ;
4+ if ( window . location . pathname . includes ( "/docs/reference/" ) ) {
5+ document . body . classList . add ( "reference-page" ) ;
6+ }
7+ }
8+
9+ // Handle initial load
10+ updateClass ( ) ;
11+
12+ // Handle URL changes
13+ window . addEventListener ( "popstate" , updateClass ) ;
14+
15+ // Handle SPA navigation
16+ const pushState = history . pushState ;
17+ history . pushState = function ( ) {
18+ pushState . apply ( history , arguments ) ;
19+ updateClass ( ) ;
20+ } ;
21+ } ) ( ) ;
Original file line number Diff line number Diff line change 6868 }
6969}
7070
71+ body .reference-page h1 ,
72+ body .reference-page h2 ,
73+ body .reference-page h3 ,
74+ body .reference-page h4 {
75+ text-transform : none !important ;
76+ }
77+
7178a .colab-badge , a .github-badge {
7279 display : inline-block;
7380 border : none;
You can’t perform that action at this time.
0 commit comments