Skip to content

Commit

Permalink
Switch sphinx theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jan 10, 2025
1 parent 93f796b commit 6d7e5b2
Show file tree
Hide file tree
Showing 12 changed files with 553 additions and 1 deletion.
9 changes: 8 additions & 1 deletion python/doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,14 @@ pygments_style = 'sphinx'

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'classic'
html_theme = 'openturns'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
# html_theme_options = {}
# import alabaster
html_theme_path = ["themes"]

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
39 changes: 39 additions & 0 deletions python/doc/themes/openturns/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{#
basic/layout.html
~~~~~~~~~~~~~~~~~

Master layout template for Sphinx themes.

:copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- extends "basic/layout.html" %}

{# put the sidebar before the body #}
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
{% block sidebar2 %}{% endblock %}

{# enable font #}
{% block extrahead %}
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,700'
rel='stylesheet' type='text/css' />
{{ super() }}
{% endblock %}

{# static banner #}
{% block header %}
<div class="pageheader">
<ul>
<li><a href="{{ pathto('index') }}">Home</a></li>
<li><a href="{{ pathto('user_manual/user_manual') }}">Doc</a></li>
<li><a href="{{ pathto('examples/examples') }}">Examples</a></li>
</ul>
<a href="{{ pathto('index') }}">
<h1>
<img src="{{ pathto('_static/logo-openturns-wo-bg.png', 1) }}" alt="" width=100px height=100px />
ottemplate
</h1>
<h2> Module ottemplate </h2>
</a>
</div>
{% endblock %}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added python/doc/themes/openturns/static/body-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added python/doc/themes/openturns/static/favicon.ico
Binary file not shown.
Binary file added python/doc/themes/openturns/static/footer-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added python/doc/themes/openturns/static/header-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6d7e5b2

Please sign in to comment.