diff --git a/requirements.txt b/requirements.txt index bfa599b..0461735 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,6 +12,6 @@ sphinxcontrib-bibtex sphinxcontrib-images reportlab ablog -#sphinx-storymaker -#sphinx_nervproject_theme +sphinx-storymaker +sphinx_nervproject_theme sphinx-fasvg diff --git a/source/conf.py b/source/conf.py index 7b93695..426679b 100644 --- a/source/conf.py +++ b/source/conf.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- import os +import ablog project = 'Nerv Project' basename = 'nervproject' @@ -91,7 +92,7 @@ extensions = [ 'sphinx_issues', 'sphinx_sitemap', 'sphinx_fasvg', - # 'sphinx_storymaker', + 'sphinx_storymaker', ] if use_ablog: @@ -105,6 +106,11 @@ if use_bibtex: locale_dirs = ['locale/'] +if use_ablog: + locale_dirs.append( + os.path.join(ablog.get_html_templates_path(), '..', 'locale'), + ) + images_config = { "default_show_title": True, "override_image_directive": True,