Сборка DOCX¶
Подготовка к работе¶
Установите Расширение Docxbuilder.
В файле conf.py добавьте:
extensions = ['docxbuilder']
В файле conf.py добавьте настройки документа:
docx_documents = [ ('index', 'docxbuilder.docx', { 'title': project, 'creator': author, 'subject': 'A manual of docxbuilder', }, True), ] docx_style = 'path/to/custom_style.docx' docx_pagebreak_before_section = 1
Подробнее см. статью Usage.