Skip to content

Commit d61bfbc

Browse files
committed
Preparing 1.5.1 steps 7/16
7. python setup.py build_doc * fix include of basic.css for rendering permalink anchors * make anchors less obtrusive
1 parent 40c5384 commit d61bfbc

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

doc/_static/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,9 @@ table
107107
border-spacing: 1px;
108108
background-color: #fafafa;
109109
}
110+
111+
a.headerlink {
112+
font-size: 0.8em;
113+
margin-left: 0.3em;
114+
color: #c99;
115+
}

doc/_templates/layout.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
{#
2+
_templates/layout.html
3+
~~~~~~~~~~~~~~~~~~~~~~
4+
5+
Custom layout template for Roundup.
6+
7+
#}
8+
{%- block doctype -%}
19
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
210
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3-
11+
{%- endblock %}
412
{%- macro relbar(class) %}
513
<div class="related {{ class }}">
614
<ul>
@@ -65,6 +73,15 @@ <h3>{{ _('Quick search') }}</h3>
6573
{%- endblock %}
6674
{%- endmacro %}
6775

76+
{%- macro css() %}
77+
<link rel="stylesheet" href="{{ pathto('_static/basic.css', 1) }}" type="text/css" />
78+
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
79+
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
80+
{%- for cssfile in css_files %}
81+
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
82+
{%- endfor %}
83+
{%- endmacro %}
84+
6885
<html xmlns="http://www.w3.org/1999/xhtml">
6986
<head>
7087
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@@ -80,8 +97,7 @@ <h3>{{ _('Quick search') }}</h3>
8097
<link rel="alternate" type="{{ type|e(true) }}" title="{{ title|e(true) }}" href="{{ link|e(true) }}" />
8198
{%- endfor %}
8299
{%- else %}
83-
<link rel="stylesheet" href="{{ pathto('_static/style.css', 1) }}" type="text/css" />
84-
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
100+
{{ css() }}
85101
{%- endif %}
86102
{%- if builder != 'htmlhelp' %}
87103
<script type="text/javascript">

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
# The style sheet to use for HTML and HTML Help pages. A file of that name
127127
# must exist either in Sphinx' static/ path, or in one of the custom paths
128128
# given in html_static_path.
129-
html_style = 'default.css'
129+
html_style = 'style.css'
130130

131131
#-- Sphinx 1.3
132132
# The theme to use for HTML and HTML Help pages. See the documentation for

0 commit comments

Comments
 (0)