Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Remove commented-out lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Apr 7, 2022
1 parent 7cc5eb7 commit c92b6c0
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/sage_docbuild/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import time
import types
import warnings
from pathlib import Path

import sphinx.util.console
import sphinx.ext.intersphinx
Expand Down Expand Up @@ -154,11 +153,6 @@ def f(self, *args, **kwds):
if ABORT_ON_ERROR:
raise Exception("Non-exception during docbuild: %s" % (e,), e)

# if type == 'html' and os.environ.get('SAGE_OFFLINE_DOC', 'no') == 'yes':
# if Path(self.dir).parent.parent.name == 'doc':
# logger.warning("Copying mathjax files...")
# shutil.copytree(os.path.join(SAGE_SHARE, 'mathjax3'), output_dir)

if "/latex" in output_dir:
logger.warning("LaTeX file written to {}".format(output_dir))
else:
Expand Down Expand Up @@ -1579,12 +1573,12 @@ def setup_parser():
standard.add_argument("--no-prune-empty-dirs", dest="no_prune_empty_dirs",
action="store_true",
help="do not prune empty directories in the documentation sources")
standard.add_argument("-N", "--no-colors", dest="color",
action="store_false",
help="do not color output; does not affect children")
standard.add_argument("--offline-doc", dest="offline_doc", default=True,
action="store_true",
help="do not assume internet connection; in particular, do not use MathJax CDN")
standard.add_argument("-N", "--no-colors", dest="color",
action="store_false",
help="do not color output; does not affect children")
standard.add_argument("-q", "--quiet", dest="verbose",
action="store_const", const=0,
help="work quietly; same as --verbose=0")
Expand Down

0 comments on commit c92b6c0

Please sign in to comment.