docs(5.x): added new tempalte and bootstrapped 5.X docs

This commit is contained in:
RhodeCode Admin 2024-02-23 21:43:18 +01:00
parent 32c32c445c
commit 27625cb0fd
7 changed files with 121 additions and 182 deletions

View file

@ -87,7 +87,7 @@
<i class="icon"><svg><use href="#svg-toc"></use></svg></i>
</label>
</div>
<article role="main">
<article role="main" id="furo-main-content">
{% block content %}{{ body }}{% endblock %}
</article>
</div>
@ -141,6 +141,9 @@
{% trans %}<a href="https://www.sphinx-doc.org/">Sphinx</a> and {% endtrans -%}
<a class="muted-link" href="https://pradyunsg.me">@pradyunsg</a>'s
{% endif -%}
{%- if last_updated -%}
<div class="last-updated">
{% trans last_updated=last_updated|e -%}
@ -149,7 +152,7 @@
</div>
<div style="border-top: 0">
Got documentation defects and suggestions? <a href="https://community.rhodecode.com">Submit docs issues</a>
Got documentation defects and suggestions? <a href="https://community.rhodecode.com/new-topic?title=documentation%20issue&body=Please%20describe%20the%20issue&category=support&tags=docs-issue">Submit docs issues</a>
</div>
{%- endif %}
@ -172,6 +175,9 @@
</svg>
</a>
{%- endif -%}
{#- Show GitHub repository home -#}
{%- if READTHEDOCS and display_github and github_user != "None" and github_repo != "None" -%}
{%- endif -%}
{%- endif %}
</div>
{%- endif %}
@ -200,5 +206,4 @@
</aside>
</div>
</div>
{%- endblock %}

34
docs/_templates/sidebar/brand.html vendored Normal file
View file

@ -0,0 +1,34 @@
{#-
Hi there!
You might be interested in https://pradyunsg.me/furo/customisation/sidebar/
Although if you're reading this, chances are that you're either familiar
enough with Sphinx that you know what you're doing, or landed here from that
documentation page.
Hope your day's going well. :)
-#}
<a class="sidebar-brand{% if logo %} centered{% endif %}" href="{{ pathto(master_doc) }}">
{% block brand_content %}
{%- if logo_url %}
<div class="sidebar-logo-container">
<img class="sidebar-logo" src="{{ logo_url }}" alt="Logo"/>
</div>
{%- endif %}
{%- if theme_light_logo and theme_dark_logo %}
<div class="sidebar-logo-container">
<img class="sidebar-logo only-light" src="{{ pathto('_static/' + theme_light_logo, 1) }}" alt="Light Logo"/>
<img class="sidebar-logo only-dark" src="{{ pathto('_static/' + theme_dark_logo, 1) }}" alt="Dark Logo"/>
</div>
{%- endif %}
{% if not theme_sidebar_hide_name %}
<span class="sidebar-brand-text">
RhodeCode <br/>
Enterprise {{ release }} docs
</span>
{%- endif %}
{% endblock brand_content %}
</a>