Monday, 2021-03-29

*** rcernin has joined #openstack-doc00:00
*** rcernin has quit IRC03:06
*** rcernin has joined #openstack-doc03:11
*** dmacpher has quit IRC04:41
*** miloa has joined #openstack-doc06:04
*** miloa has quit IRC06:38
*** rcernin has quit IRC07:29
*** tosky has joined #openstack-doc08:28
*** rcernin has joined #openstack-doc08:48
*** rcernin has quit IRC09:00
*** rcernin has joined #openstack-doc09:52
*** rcernin has quit IRC10:07
*** rcernin has joined #openstack-doc10:07
*** rcernin has quit IRC10:20
*** rcernin has joined #openstack-doc10:27
*** rcernin has quit IRC10:38
*** rcernin has joined #openstack-doc10:51
*** rcernin has quit IRC11:05
*** dmacpher has joined #openstack-doc12:10
*** pcaruana has quit IRC12:30
*** pcaruana has joined #openstack-doc12:39
*** rcernin has joined #openstack-doc14:01
*** rcernin has quit IRC14:06
*** diablo_rojo has joined #openstack-doc15:09
*** openstackgerrit has joined #openstack-doc15:26
openstackgerritGhanshyam Mann proposed openstack/openstack-manuals master: Update site for deprecated monasca-transform & monasca-analytics  https://review.opendev.org/c/openstack/openstack-manuals/+/78367015:26
openstackgerritGhanshyam Mann proposed openstack/openstack-manuals master: Update site for deprecated monasca-transform & monasca-analytics  https://review.opendev.org/c/openstack/openstack-manuals/+/78367015:27
pmatulisjohnsom, good afternoon. i'm pleased to report that my pdf-generation troubles boil down to a handful of blocks where latex nomenclature is utilised to print math formulas [1]. since these are very rare for me i can just make images out of them but do you see any easy clear way forward?17:24
pmatulis[1]: https://pastebin.ubuntu.com/p/Cp93ZRmdTC/17:24
johnsomHmm, does the process error out with those today?17:25
johnsomI think I had one, but I think I got it to render correctly. Let me look17:25
pmatulisyeah, it hangs on many steps. i press any key to get to the next, etc. this is what it looks like: https://paste.ubuntu.com/p/K9pGhXcfb6/17:29
johnsompmatulis So my guess is there is a missing latex preampble in the conf.py.17:32
johnsomhttps://github.com/openstack/octavia/blob/master/doc/source/conf.py#L21217:33
johnsomyou may need some math related packages.17:33
johnsomTotal guess:17:33
johnsomhttps://www.irccloud.com/pastebin/MKdv2fRZ/17:33
pmatulisso those would be part of bindep.txt?17:35
johnsomI don't think so. At least on Ubuntu most of those are already bundled in the texlive-* packages that are already in the bindep.txt17:37
johnsomhttps://packages.ubuntu.com/focal/all/texlive-latex-extra/filelist17:38
johnsomThough it's a bit of trial and error usually for me when I need to find what package has which latex bits in it.17:39
johnsomHmm, the middle example you pasted doesn't use the asmmath module....17:43
pmatulisjohnsom, after adding your preamble i'm getting:17:52
pmatulispy.error.ENOENT: [No such file or directory]: getcwd()17:52
johnsomtypo?17:52
pmatulislooking17:53
johnsomI'm trying to setup a test environment here to try out those math blocks17:54
pmatulisthis is my PR. i removed the math blocks to get it to build. but now i'm getting the above errors after adding to conf.py:18:01
pmatulishttps://review.opendev.org/c/openstack/charm-deployment-guide/+/78258118:01
pmatulis(blocks removed from keystone.rst)18:01
pmatuliserrors: https://paste.ubuntu.com/p/hQhty85Hwc/18:07
johnsomI see you changed the profile in bindep from doc to pdf, does that zuul job use pdf?18:08
johnsomhttps://zuul.opendev.org/t/openstack/build/d79a1cac44b24ed68fab91b9f668f34b/log/zuul-info/inventory.yaml#2418:10
johnsomThat path thing just looks like a filesystem path changed. I would cd / and then back into the directory18:12
pmatulisok, cd stuff works now. thanks18:14
pmatulisas for zuul job and 'doc/pdf', i'm not sure18:14
johnsomI think it has to be "doc" for the bindep profile18:15
pmatuliswill change it. i admit to not knowing how to verify18:16
pmatulisi put the math blocks back and no progress...18:17
johnsompmatulis I have it figured out for you18:35
johnsomhttps://www.irccloud.com/pastebin/nNodxlEX/18:35
johnsomAnywhere you have a begin/end wrapper, you need to add :nowarp:18:35
johnsomsphinx does some automatic wrapping of the formula and that conflicts with the explicit begin/end18:37
pmatulis\o/18:39
pmatulisso should i remove the additions to conf.py? it builds and looks good on first inspection18:39
johnsomYeah, turns out you don't need that as you are not using the asmmath equivalent functions.18:40
pmatuliswhat does that give me again? maybe i should keep it18:41
johnsomIt's an alternate library for doing math formulas. It's considered more modern from what little I know. However, if this works for you, there is no point in reworking all of your formulas into asmmath18:41
johnsomhttp://www.texfaq.org/FAQ-eqnarray18:43
johnsomI am far from a latex expert, so... Don't quote me. grin18:43
pmatuliswell this is literally all i have: https://pastebin.ubuntu.com/p/Cp93ZRmdTC/18:44
pmatulisso maybe i will remove the extra conf.py stuff for now18:45
johnsomYeah, just leave that and add the ":nowrap:" and you should be good. Though you will have to find all instances of the begin/end and do the same18:45
johnsomYeah, I would18:45
pmatulisthanks a lot for this18:46
johnsomNP, this is the benefit of a community process!18:46
pmatulisdo i need to do something special to get the PDF download icon thingy?18:47
pmatulisi don't see it on my HTML docs18:47
johnsomhttps://github.com/openstack/octavia/blob/master/doc/source/conf.py#L34418:48
johnsomIf that is set and you don't get it, you might check the version of the openstack theme module is up to date.18:48
johnsomI have this in the doc/requirements.txt18:49
johnsomopenstackdocstheme>=2.2.1 # Apache-2.018:49
pmatulisyeah, that's what i got. lemme see if this works!18:50
pmatulisnope :(18:51
johnsomI don't see it in the conf.py in the patch.18:53
pmatulisno, i didn't push it yet18:55
pmatulisk, there now19:00
johnsomOh, in that tox there are not non-pdf docs jobs. I think that pdf link tag only matters for the "normal" doc build job....19:03
johnsomHmmm, it's deploy-guid.19:04
johnsompmatulis I see the link there, but the PDF job didn't run19:09
johnsomIt looks like the zuul job template deploy-guide-jobs doesn't run the PDF generation. For that, you need to find someone that is more familiar with the "deploy-guide-jobs" zuul template than I am.19:11
pmatulisalrighty. i will send an email to the list. prolly continue the initial thread i started19:13
johnsomYep, sounds like a plan. Maybe the deploy-guide jobs were not updated for pdf... Not sure, we use a different template19:14
johnsomAt least you have everything working, it's just getting them to publish correctly now.19:14
pmatulisyep, thanks again. i'm starting to find little things here and there in the PDF that i'll like to improve19:15
pmatulislike an image that doesn't get printed where it should. it gets put at the top of the very next page19:16
pmatulisand i was sure i had a multi-level TOC but now i only get top-level headers19:16
pmatulisk, got the TOC going19:24
*** diablo_rojo has quit IRC20:35
*** kopecmartin has quit IRC20:56
*** kopecmartin has joined #openstack-doc21:01
*** dasp has quit IRC22:13
*** dasp has joined #openstack-doc22:19
*** rcernin has joined #openstack-doc22:24
*** rcernin has quit IRC22:24
*** rcernin has joined #openstack-doc22:24

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!