File: build.sh

package info (click to toggle)
py-postgresql 1.2.1%2Bgit20180803.ef7b9a9-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,620 kB
  • sloc: python: 18,317; ansic: 2,024; sql: 282; sh: 26; makefile: 22
file content (34 lines) | stat: -rwxr-xr-x 786 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
cd "$(dirname $0)"

# distutils doesn't make it straighforward to include an arbitrary
# directory in the package data, so manage .static and .templates here.
mkdir -p .static .templates
cat >.static/unsuck.css_t <<EOF
th.field-name {
	font-weight: normal;
	background: inherit;
	font-variant: small-caps;
	font-size: small;
}

td.field-body ul li strong {
	font-weight: normal;
	border-bottom-width: 1px;
	border-bottom-style: dashed;
	border-bottom-color: darkgreen;
}
EOF

cat >.templates/layout.html <<EOF
{% extends "!layout.html" %}

{%- block extrahead %}
{{ super() }}
<link rel="stylesheet" href="_static/unsuck.css" type="text/css" />
{% endblock %}
EOF

mkdir -p ../html/doctrees
sphinx-build -c "$(pwd)" -E -b html -d ../html/doctrees .. ../html
cd ../html && pwd