2017-08-07 17 views
7

मेरी conf.py में यह कहता है कि मुझे अंतर्निहित विषयों की सूची के लिए दस्तावेज़ देखना चाहिए। अब मेरी पहली Google हिट मुझे http://www.sphinx-doc.org/en/stable/theming.html#builtin-themes पर ले जाती है। वहाँ विषयों का एक गुच्छा है जो मेरे स्फिंक्स के बारे में पता नहीं है। उदाहरण के लिए 'क्लासिक'।स्फिंक्स निर्मित विषयों को नहीं मिला

conf.py html_theme = 'classic'

मेरी खोल पर में

मुझे क्या करना: sphinx-build -b html source build

writing output... [100%] index 
Exception occurred: 
    File "~\appdata\local\programs\python\python35\lib\site-packages\sphinx\jinja2glue.py", line 200, in get_source 
    raise TemplateNotFound(template) 
jinja2.exceptions.TemplateNotFound: about.html 

स्फिंक्स संस्करण: 1.6.3।

+1

किसी भी अंतर्निहित विषय काम करता है? – mzjn

+1

हां, हाइकू और स्क्रॉल उदाहरण के लिए काम करते हैं। – Nozdrum

उत्तर

16

मुझे एक ही समस्या थी क्योंकि मैंने पहले अल्बस्टर थीम का उपयोग किया था। conf.py में कुछ पंक्तियां हैं जिन्हें अलाबस्टर के लिए आवश्यक है और अन्य विषयों को तोड़ने की आवश्यकता है। आपको उन्हें टिप्पणी करने की ज़रूरत है।

# Custom sidebar templates, must be a dictionary that maps document names 
# to template names. 
# 
# This is required for the alabaster theme 
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars 
# html_sidebars = { 
#  '**': [ 
#   'about.html', 
#   'navigation.html', 
#   'relations.html', # needs 'show_related': True theme option to display 
#   'searchbox.html', 
#   'donate.html', 
#  ] 
# } 
1

यह अलाब्स्टर थीम को बदलने के बाद एक मुद्दा है जो about.html का उपयोग नहीं करता है। लॉरेन ने कामकाज कहा।

मुद्दा: https://github.com/sphinx-doc/sphinx/issues/3987

संबंधित मुद्दे