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