File: 0002-Fix-documentation_options.patch

package info (click to toggle)
skyfield 1.53%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,688 kB
  • sloc: python: 14,800; makefile: 278; sh: 41
file content (67 lines) | stat: -rw-r--r-- 1,935 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Thu, 18 Aug 2022 10:07:58 +0000
Subject: Fix documentation_options

Forwarded: not-needed
---
 documentation/_static/style.css      |  2 +-
 documentation/_templates/layout.html | 30 ++++++++++++++++++++----------
 2 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/documentation/_static/style.css b/documentation/_static/style.css
index c61db29..96e28fe 100644
--- a/documentation/_static/style.css
+++ b/documentation/_static/style.css
@@ -46,7 +46,7 @@ table{border-collapse:collapse;border-spacing:0}
 
 @font-face {
     font-family: "Dosis";
-    src: url(Dosis-Medium.ttf);
+    src: url(/usr/share/fonts/opentype/dosis/Dosis-Medium.otf);
 }
 @font-face {
     font-family: "Gentium Custom";
diff --git a/documentation/_templates/layout.html b/documentation/_templates/layout.html
index 5481f5c..0c4339c 100644
--- a/documentation/_templates/layout.html
+++ b/documentation/_templates/layout.html
@@ -1,12 +1,23 @@
-<!doctype html>
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+{% extends "!layout.html" %}
+{% block htmltitle %}
     <title>{{ title|striptags|e }} — {% if title != 'Skyfield' %}Skyfield {% endif %}documentation</title>
+{% endblock %}
+
+{% block relbar1 %}{% endblock %}
+
+{% block relbar2 %}{% endblock %}
+
+{% block sidebar1 %}{% endblock %}
+
+{% block sidebar2 %}{% endblock %}
+
+{% block footer %}{% endblock %}
+
+{%- block css %}
     <link rel="stylesheet" type="text/css" href="_static/style.css">
-  </head>
-  <body>
+{%- endblock %}
+
+{% block body %}
     {% if title != 'Skyfield' %}
     <p class="motto">
       <b>Skyfield:</b>
@@ -19,6 +30,5 @@
       <a href="api.html">API Reference</a>
     </p>
     {% endif %}
-    {{ body }}
-  </body>
-</html>
+    {{ super() }}
+{% endblock %}