Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherit from sphinx's basic layout #13

Merged
merged 2 commits into from
Sep 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions pandas-docs/source/_themes/bootstrap_docs_theme/header.html

This file was deleted.

35 changes: 28 additions & 7 deletions pandas-docs/source/_themes/bootstrap_docs_theme/layout.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@

<!doctype html>
<html lang="en">
<head>
{%- include "header.html" %}
</head>
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="60">
{% extends "basic/layout.html" %}

{%- block css %}
<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">
{{- css() }}
<link href="{{ pathto('_static/css/custom.css', 1) }}" rel="stylesheet">
{%- endblock %}

{%- block extrahead %}

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="docsearch:language" content="en">

<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
{%- endblock %}

{# Silence the sidebar's, relbar's #}
{% block header %}{% endblock %}
{% block relbar1 %}{% endblock %}
{% block relbar2 %}{% endblock %}
{% block sidebarsourcelink %}{% endblock %}

{% block body_tag %}
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="60">
{%- endblock %}
{%- block content %}
<nav class="navbar navbar-light navbar-expand-lg bg-light fixed-top bd-navbar" id="navbar-main">
<div class="container">
{%- include "docs-navbar.html" %}
Expand Down Expand Up @@ -36,4 +57,4 @@

{# %- include "scripts.html" % #}
</body>
</html>
{%- endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
body {
font-family: Arial, sans-serif;
font-size: 100%;
background-color: #111;
color: #555;
margin: 0;
padding: 0;
Expand Down
2 changes: 1 addition & 1 deletion pandas-docs/source/_themes/bootstrap_docs_theme/theme.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[theme]
inherit = basic
stylesheet = nature.css
stylesheet = sphinx-bootstrap.css
pygments_style = tango

[options]
Expand Down