Hi all,
I build the most recent version of Sage 10.10.beta9 using conda. I didn't explicitly turn off the doc build, so I expected it to build. However, when I call manual(), I am unable to bring up the documentation. The error message said to build it with `sage -docbuild reference html` and try again. When I tried that, I got an error: unrecognized arguments -docbuild. (Also with --docbuild.)
So I have two questions - (1) what is the right thing to do here? and (2) more importantly, is the error message on line 1632 of SAGE_ROOT/src/sage/misc/sagedoc.py misleading? If so, how should it be changed?
Thanks!
(sage-dev) ~ $ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.10.beta9, Release Date: 2026-08-23 │
│ Using Python 3.12.13. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable. ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
sage: manual()
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
Cell In[1], line 1
----> 1 manual()
File sage/misc/lazy_import.pyx:420, in sage.misc.lazy_import.LazyImport.__call__()
--> 420 'Could not get source, probably due dynamically evaluated source code.'
File ~/sage/sage/src/sage/misc/sagedoc.py:1659, in _sage_doc.reference(self)
1650 def reference(self):
1651 """
1652 The Sage reference manual.
1653
(...) 1657 sage: manual() # indirect doctest, not tested
1658 """
-> 1659 self._open("reference")
File ~/sage/sage/src/sage/misc/sagedoc.py:1632, in _sage_doc._open(self, name, testing)
1630 path = os.path.join(self._base_path, name, "index.html")
1631 if not os.path.exists(path):
-> 1632 raise OSError("""The document '{0}' does not exist. Please build it
1633 with 'sage -docbuild {0} html' and try again.""".format(name))
1635 if testing:
1636 return (url, path)
OSError: The document 'reference' does not exist. Please build it
with 'sage -docbuild reference html' and try again.
sage:
(sage-dev) ~ $ sage -docbuild reference html
usage: sage [-h] [-v] [-q] [--simple-prompt] [-V] [-n [{jupyter,jupyterlab}]]
[-c [COMMAND]]
[file ...]
sage: error: unrecognized arguments: -docbuild