Skip to content

Sphinx.build_main no longer exists in 1.7.0 #4623

@Syntaf

Description

@Syntaf

It doesn't seem there was any mention of this in the changelog, and i'm not aware of a replacement for sphinx.build_main. What can I replace this command with for > 1.7.0?

Problem

  • As of 1.7.0, sphinx.build_main no longer exists and present a problem for repositories which use this function to build documentation within a script.

Procedure to reproduce the problem

import sphinx
sphinx.build_main(args)

Error logs / results

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'sphinx' has no attribute 'build_main'

Expected results

Pre 1.7, this function was used inside https://github.com/Syntaf/travis-sphinx to build docs and auto deploy to github web pages.

Reproducible project / your project

Environment info

  • Python version: 3
  • Sphinx version: 1.7.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions