Skip to content

Commit a40d8e0

Browse files
authored
Merge pull request #13 from pandas-dev/inherit-sphinx-layout
Inherit from sphinx's basic layout
2 parents 057a0c3 + 0910c3e commit a40d8e0

File tree

4 files changed

+29
-26
lines changed

4 files changed

+29
-26
lines changed

pandas-docs/source/_themes/bootstrap_docs_theme/header.html

-17
This file was deleted.

pandas-docs/source/_themes/bootstrap_docs_theme/layout.html

+28-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,31 @@
11

2-
<!doctype html>
3-
<html lang="en">
4-
<head>
5-
{%- include "header.html" %}
6-
</head>
7-
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="60">
2+
{% extends "basic/layout.html" %}
3+
4+
{%- block css %}
5+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
6+
{{- css() }}
7+
<link href="{{ pathto('_static/css/custom.css', 1) }}" rel="stylesheet">
8+
{%- endblock %}
9+
10+
{%- block extrahead %}
11+
12+
<meta name="viewport" content="width=device-width, initial-scale=1">
13+
<meta name="docsearch:language" content="en">
14+
15+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
16+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
17+
{%- endblock %}
18+
19+
{# Silence the sidebar's, relbar's #}
20+
{% block header %}{% endblock %}
21+
{% block relbar1 %}{% endblock %}
22+
{% block relbar2 %}{% endblock %}
23+
{% block sidebarsourcelink %}{% endblock %}
24+
25+
{% block body_tag %}
26+
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="60">
27+
{%- endblock %}
28+
{%- block content %}
829
<nav class="navbar navbar-light navbar-expand-lg bg-light fixed-top bd-navbar" id="navbar-main">
930
<div class="container">
1031
{%- include "docs-navbar.html" %}
@@ -36,4 +57,4 @@
3657

3758
{# %- include "scripts.html" % #}
3859
</body>
39-
</html>
60+
{%- endblock %}

pandas-docs/source/_themes/bootstrap_docs_theme/static/nature.css_t renamed to pandas-docs/source/_themes/bootstrap_docs_theme/static/sphinx-bootstrap.css_t

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
body {
1717
font-family: Arial, sans-serif;
1818
font-size: 100%;
19-
background-color: #111;
2019
color: #555;
2120
margin: 0;
2221
padding: 0;

pandas-docs/source/_themes/bootstrap_docs_theme/theme.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[theme]
22
inherit = basic
3-
stylesheet = nature.css
3+
stylesheet = sphinx-bootstrap.css
44
pygments_style = tango
55

66
[options]

0 commit comments

Comments
 (0)