Merge pull request #1767 from Jellby/master

Allow setting 'rel' and 'title' attributes for stylesheets.
This commit is contained in:
Takeshi KOMIYA
2017-04-19 00:04:43 +09:00
committed by GitHub
10 changed files with 83 additions and 18 deletions

View File

@@ -0,0 +1,8 @@
{% extends "!layout.html" %}
{%- block csss %}
{{ super() }}
<link rel="stylesheet" href="_static/more_persistent.css" type="text/css" />
<link rel="stylesheet" href="_static/more_default.css" type="text/css" title="Default" />
<link rel="alternate stylesheet" href="_static/more_alternate1.css" type="text/css" title="Alternate" />
<link rel="alternate stylesheet" href="_static/more_alternate2.css" type="text/css" />
{%- endblock %}

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
master_doc = 'index'
html_theme = 'classic'
templates_path = ['_templates']
def setup(app):
app.add_stylesheet('persistent.css')
app.add_stylesheet('default.css', title="Default")
app.add_stylesheet('alternate1.css', title="Alternate", alternate=True)
app.add_stylesheet('alternate2.css', alternate=True)

View File

@@ -0,0 +1,4 @@
test-stylesheets
================
Lorem ipsum dolor