File tree Expand file tree Collapse file tree 4 files changed +64
-3
lines changed Expand file tree Collapse file tree 4 files changed +64
-3
lines changed Original file line number Diff line number Diff line change 4242def setup (app ): # type: ignore
4343 app .add_js_file ("https://neo4j.com/docs/assets/js/site.js" , loading_method = "defer" )
4444 app .add_js_file ("js/12-fragment-jumper.js" , loading_method = "defer" )
45+ app .add_js_file ("js/deprecated.js" , loading_method = "defer" )
4546
4647
4748rst_epilog = """
Original file line number Diff line number Diff line change 77{%- block relbar1 %}{% endblock %}
88{%- block relbar2 %}{% endblock %}
99
10+ {% block extrahead %}
11+ < link href ="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700&display=swap " rel ="stylesheet ">
12+ {% endblock %}
13+
1014{%- block content %}
1115< body class ="article docs sphinx ">
1216
1620 < nav class ="navbar ">
1721 < div class ="navbar-brand ">
1822 < a class ="navbar-item " href ="/ ">
19-
20- < img class =" navbar-logo " src =" https://dist.neo4j.com/wp-content/uploads/20210422142941/neo4j-logo-2020.svg " alt =" Neo4j Graph Data Science Client API Reference " >
21- </ a > < a href ="/docs/ " class ="navbar-item no-left-padding " aria-label ="Neo4j Graph Data Science Client API Reference ">
23+ < img class =" navbar-logo " src =" https://dist.neo4j.com/wp-content/uploads/20210422142941/neo4j-logo-2020.svg " alt =" Neo4j Graph Data Science Client API Reference " >
24+ </ a >
25+ < a href ="{{ pathto(root_doc) }} " class ="navbar-item no-left-padding " aria-label ="Neo4j Graph Data Science Client API Reference ">
2226 Graph Data Science Client API Reference
2327 </ a >
2428
Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ body.sphinx .content .search {
5656 height : auto;
5757 background : initial;
5858 }
59+
60+ body .sphinx .sphinxsidebar {
61+ background : # f5f7fa ;
62+ }
5963
6064 body .sphinx .nav-panel-menu : not (.is-active )::after {
6165 background : initial;
@@ -190,3 +194,44 @@ div.code-block-caption:hover > a.headerlink {
190194 display : block;
191195 padding : 0.25rem 0 ;
192196}
197+
198+ /* lists */
199+
200+ body .sphinx .doc ul li {
201+ margin-bottom : 0.5rem ;
202+ }
203+
204+ /* functions */
205+
206+ body .sphinx .doc dl .py .function {
207+ padding-top : 2rem ;
208+ padding : 1rem ;
209+ /* border-top: 2px dotted #eee; */
210+ }
211+
212+ /* deprecated */
213+
214+ body .sphinx .deprecated ::after ,
215+ body .sphinx .deprecated > * ::after {
216+ content : unset;
217+ }
218+
219+ body .sphinx .doc dl .deprecated dt : first-of-type span .sig-prename ,
220+ body .sphinx .doc dl .deprecated dt : first-of-type span .sig-name {
221+ border-bottom : 1px solid # f6ad55 ;
222+ /* color: #702459; */
223+ /* background-color: #fed7e2; */
224+ }
225+
226+ body .sphinx .doc dl .deprecated {
227+ margin-bottom : 0 ;
228+ padding-bottom : 0 ;
229+ }
230+
231+ body .sphinx .doc div .deprecated {
232+ padding : 1rem ;
233+ margin : 0 2rem ;
234+ /* color: #702459; */
235+ border-left : 2px solid # f6ad55 ;
236+ background-color : # fffaf0 ;
237+ }
Original file line number Diff line number Diff line change 1+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
2+ const deprecatedDivs = document . querySelectorAll ( 'div.deprecated' )
3+ deprecatedDivs . forEach ( function ( deprecatedDiv ) {
4+
5+ // get previous sibling
6+ const previousSibling = deprecatedDiv . previousElementSibling
7+ // add deprecated class to previous sibling
8+ previousSibling . classList . add ( 'deprecated' )
9+
10+ } )
11+ } )
You can’t perform that action at this time.
0 commit comments