1{ lib, buildPythonPackage, fetchFromGitHub, sphinxHook }:
2
3buildPythonPackage rec {
4 pname = "sphinx-better-theme";
5 version = "0.1.5";
6 outputs = [ "out" "doc" ];
7
8 src = fetchFromGitHub {
9 owner = "irskep";
10 repo = "sphinx-better-theme";
11 rev = "v${version}";
12 sha256 = "07lhfmsjcfzcchsjzh6kxdq5s47j2a6lb5wv3m1kmv2hcm3gvddh";
13 };
14
15 nativeBuildInputs = [ sphinxHook ];
16
17 pythonImportsCheck = [ "better" ];
18
19 meta = with lib; {
20 homepage = "https://github.com/irskep/sphinx-better-theme";
21 description = "Better Sphinx Theme";
22 longDescription = ''
23 This is a modified version of the default Sphinx theme with the following
24 goals:
25
26 1. Remove frivolous colors, especially hard-coded ones
27 2. Improve readability by limiting width and using more whitespace
28 3. Encourage visual customization through CSS, not themeconf
29 4. Use semantic markup
30
31 v0.1 meets goals one and two. Goal three is partially complete; it's simple to
32 add your own CSS file without creating a whole new theme.
33 you'd like something changed.
34
35 To use the theme, set ``html_theme_path`` to contain
36 ``better.better_theme_path``, and set ``html_theme`` to ``'better'``::
37
38 from better import better_theme_path
39 html_theme_path = [better_theme_path]
40 html_theme = 'better'
41 '';
42 license = licenses.bsd2;
43 maintainers = with maintainers; [ kaction ];
44 };
45}