-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Missing PDF icons in the Sage documentation website #30418
Comments
This comment has been minimized.
This comment has been minimized.
comment:3
This change works: diff --git a/src/sage_setup/docbuild/__init__.py b/src/sage_setup/docbuild/__init__.py
index 0841f429e7..9c2e6ed4e2 100644
--- a/src/sage_setup/docbuild/__init__.py
+++ b/src/sage_setup/docbuild/__init__.py
@@ -580,9 +580,6 @@ class ReferenceBuilder(AllBuilder):
# of the PDF file. So we create an html file, based on
# the file index.html from the "website" target.
if format == 'pdf':
- # First build the website page. This only takes a few seconds.
- getattr(get_builder('website'), 'html')()
-
website_dir = os.path.join(SAGE_DOC, 'html', 'en', 'website')
output_dir = self._output_dir(format, lang)
@@ -1726,5 +1723,8 @@ def main():
# Set up Intersphinx cache
C = IntersphinxCache()
+ if type == 'pdf':
+ # First build the website page. This only takes a few seconds.
+ getattr(get_builder('website'), 'html')()
builder = getattr(get_builder(name), type)
builder() This moves the test to the top-level |
comment:4
Replying to @jhpalmieri: The code in lines 583--585 has nothing to do with the current issue. It should not be removed. Your code in lines 1726--1728 is effectively the same with running The issue of this ticket is to see why |
comment:5
Replying to @kwankyu:
I think that code is intended to build the basic website framework for the PDF documentation. It appears to matter when
Of course I didn't remove it, I moved it.
I know that. The question is why it works and why running
I disagree: you don't want the PDF icon if you haven't built the PDF documentation. So
|
comment:6
Replying to @jhpalmieri:
The main purpose of the code is to provide the htmls for the basic website framework. The other code following it assumes that the htmls are in place. If you remove the code from the place where it is, the assumption is broken.
The question must be solved before we think of any cure.
The PDF icon problem is just a consequence of the bigger problem of |
Branch: u/klee/30418 |
Author: Kwankyu Lee |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:12
It would be nice for this ticket to get reviewed for sage 9.2. |
Reviewer: John Palmieri |
comment:13
Looks okay to me. |
Changed branch from u/klee/30418 to |
This ticket is a spin-off from #29993.
In
local/share/doc/sage/html/en/index.html
, there are supposed to be PDF icons next to each document, as links leading to the PDF builds. Those are missing, because the file_static/pdf.png
is missing. For some reason, it is not copied fromsrc/doc/en/website/static
tolocal/share/doc/sage/html/en/_static
.To see the problem, check that:
Running
make doc-clean; sage --docbuild all html
does not install the PDF icon to the right place, that is underlocal/share/doc/sage/html/en/website/_static
.But running
make doc-clean; sage --docbuild website html
does install the PDF icon to the right place.CC: @jhpalmieri
Component: documentation
Author: Kwankyu Lee
Branch/Commit:
f69c403
Reviewer: John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/30418
The text was updated successfully, but these errors were encountered: