mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-11-03 19:29:32 +00:00 
			
		
		
		
	* release v1.3.0 and re-add Makefile * Update Documentation & Code Style * make BaseKnowledgeGraph abstract to remove it from the JSON schema * Logging paths for JSON schema generation * Add debug command in autoforma.yml * Typo * Update Documentation & Code Style * Fix schema path in CI * Update Documentation & Code Style * Remove debug statement from autoformat.yml * Reintroduce compatibility between 1.3.0 and 1.2.1rc0 schema Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: ZanSara <sarazanzo94@gmail.com>
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{# put the sidebar before the body #}
 | 
						|
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
 | 
						|
{% block sidebar2 %}{% endblock %}
 | 
						|
 | 
						|
{% block extrahead %}
 | 
						|
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,700'
 | 
						|
          rel='stylesheet' type='text/css' />
 | 
						|
{{ super() }}
 | 
						|
{#- if not embedded #}
 | 
						|
    <style type="text/css">
 | 
						|
      table.right { float: left; margin-left: 20px; }
 | 
						|
      table.right td { border: 1px solid #ccc; }
 | 
						|
      {% if pagename == 'index' %}
 | 
						|
      .related { display: none; }
 | 
						|
      {% endif %}
 | 
						|
    </style>
 | 
						|
    <script>
 | 
						|
      // intelligent scrolling of the sidebar content
 | 
						|
      $(window).scroll(function() {
 | 
						|
        var sb = $('.sphinxsidebarwrapper');
 | 
						|
        var win = $(window);
 | 
						|
        var sbh = sb.height();
 | 
						|
        var offset = $('.sphinxsidebar').position()['top'];
 | 
						|
        var wintop = win.scrollTop();
 | 
						|
        var winbot = wintop + win.innerHeight();
 | 
						|
        var curtop = sb.position()['top'];
 | 
						|
        var curbot = curtop + sbh;
 | 
						|
        // does sidebar fit in window?
 | 
						|
        if (sbh < win.innerHeight()) {
 | 
						|
          // yes: easy case -- always keep at the top
 | 
						|
          sb.css('top', $u.min([$u.max([0, wintop - offset - 10]),
 | 
						|
                                $(document).height() - sbh - 200]));
 | 
						|
        } else {
 | 
						|
          // no: only scroll if top/bottom edge of sidebar is at
 | 
						|
          // top/bottom edge of window
 | 
						|
          if (curtop > wintop && curbot > winbot) {
 | 
						|
            sb.css('top', $u.max([wintop - offset - 10, 0]));
 | 
						|
          } else if (curtop < wintop && curbot < winbot) {
 | 
						|
            sb.css('top', $u.min([winbot - sbh - offset - 20,
 | 
						|
                                  $(document).height() - sbh - 200]));
 | 
						|
          }
 | 
						|
        }
 | 
						|
      });
 | 
						|
    </script>
 | 
						|
{#- endif #}
 | 
						|
{% endblock %} |