-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip-installable packages sagemath-doc-src, sagemath-doc-inventory, sagemath-doc-html, sagemath-doc-pdf #29868
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to sd111 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Dependencies: #31356 |
comment:14
Setting new milestone based on a cursory review of ticket status, priority, and last modification date. |
comment:15
Input and help from docbuild experts is very welcome. |
comment:16
Some questions:
|
comment:17
Replying to @mkoeppe:
I do believe there is a sphinx option for doing just that.
As far as I know they need to be able to run the sage library. In particular all graphs/plots are generated during the documentation build. |
comment:18
Replying to @kiwifb:
I cannot find such an option anymore. If it existed. There is an option to say where the doctrees should be stored and found, but nothing on producing it in isolation. |
comment:19
Well, |
comment:20
Replying to @mkoeppe:
The |
comment:21
No, I'm wrong about that. It's done in |
comment:25
According to #33064 comment:19, there is no need to install doctrees in |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
No. Reference doc builder (part of Sage, in
Yes, if it intends to include all rst files from which htmls (or pdfs) are generated by Sphinx. |
Now the builders are in |
Similar to #29411 + #29950, which made
sagelib
a pip-installable distribution (which is then installed by the sage-the-distribution script packagesagelib
), we change the build/installation scheme of the sage documentation.We create pip-installable packages
sagemath-doc-html
andsagemath-doc-pdf
. By providing wheels on pypi, users can get access to an offline copy of the documentation without having to build it themselves.We create a package
sagemath-doc-inventory
, which is in charge of building and installing the inventory files.It is a build dependency of
sagemath-doc-html
andsagemath-doc-pdf
.All of these packages depend on
sagemath-doc-src
. It has a build-system dependency on sagelib. Ansdist
of it consists ofSAGE_SRC/doc
. Awheel
ofsagemath-doc-src
(and thus an installation) contains a copy of the sources (including the auto-generated rst files) inshare/doc/sage/src/
and the doctrees inshare/doc/sage/doctrees
.The incremental build features of the docbuild will only be active when the package
sagemath-doc-src
is installed directly usingsetup.py install
,setup.py develop
orpip install --editable
. In these cases, the doctrees (including environment pickes) are kept in the source directory.pip wheel
will always make a from-scratch build of the documentation, eliminating incremental build errors.The script
sage-grepdoc
will be provided bysagemath-doc-html
.Follow-up tickets:
nbextension
s that provide offline help in a Jupyter notebook. This is useful in particular with local notebooks connecting to remote sage kernels (see Meta-ticket: Use system Jupyter notebook / JupyterLab #30306 (3)).See also:
sage_setup.docbuild
out to a separate packagebuild/make/Makefile.in
: Rename make targetsSPKG-clean
toSPKG-uninstall
Depends on #33852
CC: @isuruf @kiwifb @antonio-rojas @timokau @nbruin @dimpase @jhpalmieri @mwageringel @zlscherr
Component: build
Keywords: sd111
Issue created by migration from https://trac.sagemath.org/ticket/29868
The text was updated successfully, but these errors were encountered: