Skip to content

Commit

Permalink
Remove mentions of the build_sphinx command
Browse files Browse the repository at this point in the history
  • Loading branch information
krivenko committed Jan 21, 2024
1 parent 93fa7a9 commit f5f51d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If you need to build documentation locally, you should additionally run

.. code::
python setup.py build_sphinx
sphinx-build docs/ <path_to_sphinx_output_dir>
Automated installation using ``pip``
------------------------------------
Expand Down
17 changes: 0 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 +92,6 @@ def build_extensions(self):

cmdclass = {'build_ext': pycommute_build_ext}

# Detect Sphinx/sphinx_rtd_theme/myst_parser and enable documentation build
try:
from sphinx.setup_command import BuildDoc
except ImportError:
BuildDoc = None
if BuildDoc:
class run_build_before_doc(BuildDoc):
def run(self):
self.run_command("build")
super(run_build_before_doc, self).run()

cmdclass['build_sphinx'] = run_build_before_doc
else:
print("Note: "
"Install Sphinx>=2.1.0, sphinx_rtd_theme and myst_parser "
"to build documentation")


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
Expand Down

0 comments on commit f5f51d3

Please sign in to comment.