On Friday, October 21, 2016 at 1:46:02 PM UTC-7, Martin R wrote: > > > > Am Freitag, 21. Oktober 2016 22:18:48 UTC+2 schrieb John H Palmieri: >> >> >> >> On Friday, October 21, 2016 at 12:31:01 PM UTC-7, Martin R wrote: >>> >>> Eli Zaretskii from the texinfo team helped me with two problems I had, >>> and texinfo documentation is now almost ready to go. I need help with >>> three things, which I report here, because trac is down. >>> >>> 1.) for some reason, it is necessary that makeinfo is called with >>> "--footnote-style separate". However, Sphinx produces makefiles as defined >>> by TEXINFO_MAKEFILE, see >>> http://www.sphinx-doc.org/en/stable/_modules/sphinx/builders/texinfo.html >>> >>> What is the proper way to change that, and where should I do this? >>> >> >> You might need to patch Sphinx for this, since it doesn't look like that >> aspect of Sphinx is customizable. (So patch the linked file as part of >> Sage's Sphinx package. I hope that just modifying TEXINFO_MAKEFILE to add >> "--footnote-style separate" is good enough.) >> > > (if I have to call make myself, the following is obsolete anyway) > Is this preferred over modifying TEXINFO_MAKEFILE via > > import sphinx.builders.texinfo > sphinx.builders.texinfo.TEXINFO_MAKEFILE = ... > > ? (I tested that this works, why shouldn't it...) > > If not so, where should I put this? It looks awkward to have this in > docbuild.__init__.py, but I don't know a better place. >
That sounds better than patching Sphinx, and putting it in docbuild/__init__.py sounds good to me. If your modifed TEXINFO_MAKEFILE gets written successfully to the appropriate subdirectories, can't you still run "make" manually? > > I think you should have two build targets: "sage --docbuild DOCUMENT >> texinfo" which produces texinfo sources, and "sage --docbuild DOCUMENT >> info" which produces the actual info files, just like the current situation >> with "latex" and "pdf" output types. You would then have to deal with the >> "info" case yourself: first invoke the "texinfo" builder and then run >> "makeinfo" or "make" or whatever in each appropriate directory. Where are >> the info files going to go? $SAGE_ROOT/local/share/info, I assume? > > > I have no clue, but $SAGE_ROOT/local/share/info sounds reasonable. > Or subdirectories of it. Does "info" work well with subdirectories? I'm worried that the reference manual, for example, will overwhelm everything else there. Maybe that's not a problem, though. I also don't know how the info files work with file names: if we build both the English and the German tutorials, for example, which have the same names for their underlying rst files, will the info files get different names? -- John -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.