Thursday, 2019-10-24

*** jamesmcarthur has joined #openstack-doc00:00
*** jamesmcarthur has quit IRC00:16
*** jamesmcarthur has joined #openstack-doc00:17
*** jamesmcarthur_ has joined #openstack-doc00:26
*** jamesmcarthur has quit IRC00:26
*** jamesmcarthur_ has quit IRC00:29
*** jamesmcarthur has joined #openstack-doc00:30
*** jamesmcarthur has quit IRC00:30
*** jamesmcarthur has joined #openstack-doc00:32
*** jamesmcarthur has quit IRC00:40
*** jamesmcarthur has joined #openstack-doc00:40
openstackgerritMerged openstack/openstack-manuals master: [www] Fix project-deploy-guide redirects  https://review.opendev.org/69066701:56
*** tinwood has quit IRC02:18
*** tinwood has joined #openstack-doc02:20
*** jamesmcarthur has quit IRC02:25
*** jamesmcarthur has joined #openstack-doc02:30
*** jamesmcarthur has quit IRC03:10
*** jamesmcarthur has joined #openstack-doc03:11
*** jamesmcarthur has quit IRC03:15
*** jamesmcarthur has joined #openstack-doc03:42
*** jamesmcarthur has quit IRC04:27
*** jamesmcarthur has joined #openstack-doc04:31
*** jamesmcarthur has quit IRC04:39
*** jamesmcarthur has joined #openstack-doc04:52
*** efried has quit IRC05:04
*** efried has joined #openstack-doc05:11
*** jamesmcarthur has quit IRC05:13
*** jamesmcarthur has joined #openstack-doc05:20
*** andyzon has joined #openstack-doc05:25
*** jamesmcarthur has quit IRC05:30
AJaegerefried: don't do that - if you move the file or change the anchor, sphinx will not tell you. Use :ref:05:56
*** andyzon has quit IRC06:12
*** miloa has joined #openstack-doc06:31
*** andyzon has joined #openstack-doc06:37
*** pcaruana has joined #openstack-doc06:41
*** andyzon is now known as jawad_axd06:47
AJaegerpmatulis, asettle, https://docs.openstack.org/project-deploy-guide/charm-deployment-guide redirect works now ;)07:01
*** tosky has joined #openstack-doc07:12
*** kopecmartin|off is now known as kopecmartin07:13
*** tesseract has joined #openstack-doc07:18
asettleThanks AJaeger  :)08:19
*** jawad_axd has quit IRC08:48
*** jawad_axd has joined #openstack-doc08:48
*** jawad_axd has quit IRC08:58
*** njohnston has joined #openstack-doc09:08
njohnstonHi!  Moving a conversation from #openstack-tc to here09:09
njohnston709:09
njohnstonI got a question yesterday about docs, was not sure of the answer.  I was chatting with a chap from cinder and he asked me about the header we put on docs that are older, that says "This is maintained, but not the current release. The current supported release is Train."  He asked, could we have the link deeplink to the train version of the doc you're looking at instead of09:10
njohnstonhttps://docs.openstack.org/train/09:11
njohnstonasettle: example URL is https://docs.openstack.org/neutron/pike/contributor/policies/09:11
asettleOH! You mean, the banner each time taking you to the actual page, rather than back to docs.openstack.org/train09:12
asettleI get you nowwwwww09:12
njohnstonprecisely09:12
asettleI was *very* confused in tc09:12
asettleSo, I don't see anything wrong with that idea. I understand evrardjp_ 's concerns about 404s though. Could that not just result in a loop?09:13
asettleI like the idea though. Although, I believe the banner is a part of the theme. I'm sure you could initiate something that changes how it is read...09:14
njohnstonHow would it loop?  https://docs.openstack.org/neutron/pike/contributor/policies/ would redirect to https://docs.openstack.org/neutron/train/contributor/policies/ but the latter would just have the "This is the currently supported version" banner.09:14
njohnstonWith 404s I don't think it's a bad idea in general to ask project teams to leave forwarding pages to say "Update your bookmarks, this info is now at [link]"09:15
asettleI guess I'm concerned that the redirection that is, in theory, created would be a command that says "if this is 404, find the most up-to-date version that works" and it would loop and loop because we've changed the URLs a lot lately09:15
njohnstonOh, I am not suggesting an actual HTTP redirect.  Just that the link in the banner links to the deeplink version of the page you are looking at.  But you'd still have to click on the link to go there.09:18
njohnstonasettle: I don't see the text of the banner anywhere in https://opendev.org/openstack/openstackdocstheme09:21
AJaegernjohnston: you could move files around and then it won't work...09:30
AJaegernjohnston: sure, you can change the link but if you get a 404 every time?09:30
AJaegernjohnston: check https://docs.openstack.org/neutron/ocata/contributor/policies/09:30
AJaegerso, you get eventual these reorgs in every guide and thus we decided it is not worth it.09:31
AJaegernjohnston: that badge is a global file, see http://codesearch.openstack.org/?q=This%20release%20is%20under%20development.%20The%20current%20supported%20release%20is&i=nope&files=&repos=09:34
evrardjp_AJaeger: this is why I proposed that, if we bring this feature in, to make sure that we have another link pointing to the top of the build document for a new release, instead of pointing to general documentation page for said new release09:35
AJaegerso, adding a proper link might be quite involved...09:35
evrardjp_AJaeger: agreed. proper contextual linking would require teams to bring semantic data into their docs page per version. That's a whole lot different09:35
AJaegeror add redirects for each rename...09:36
njohnstonor leave a breadcrumb file behind09:36
evrardjp_njohnston: yeah that's the simplest09:37
AJaegerI'm not sure it's worth the extra effort. I agree it would be nice to have ;)09:37
evrardjp_AJaeger: welcome to the club I guess? :p09:37
njohnstonAJaeger: Do you see page renames/reorgs frequently?  In neutron and the other projects I work in I only see new pages getting added - like your earlier link https://docs.openstack.org/neutron/ocata/contributor/policies/ that page was created in pike and has been there ever since.09:41
evrardjp_njohnston: it might be worth checking if neutron is an exception or not.09:52
evrardjp_njohnston: OSA for example, redid the documentation quite a few times to improve user friendliness. We were never asked of backwards compatibility.09:53
evrardjp_njohnston: if you write a tool that finds all the 404 of old branches in branch x, creating the appropriate breadcrumb files in the branch x (with a link to redirecting to the equivalent project top docs), that would be awesome, I guess? :D09:55
AJaegernjohnston: there was a major rework a few releases ago, that will break *older* links10:50
AJaegermeaning, I assume between ocata and stein most links do not work...10:51
AJaegernjohnston: random page: https://docs.openstack.org/neutron/ocata/policies/blueprints.html - does not exist in stein10:52
*** alexmcleod has joined #openstack-doc10:57
asettleAJaeger, that's what I thought too. Mapping those links would be a huge task11:46
asettleNot that I disagree with the idea, i think it's a good one11:46
asettleBut yeah, conflicting11:46
toskybut may be possible to parse the information from doc/source/_extra/.htaccess, maybe; but then it would have been useful to have the redirects written down in a more consumable format, which could be used to generate both the htaccess file and those specific redirects, maybe11:53
*** jamesmcarthur has joined #openstack-doc12:11
*** jawad_axd has joined #openstack-doc12:22
*** jamesmcarthur has quit IRC12:28
*** jawad_axd has quit IRC12:40
*** jamesmcarthur has joined #openstack-doc12:48
efriedAJaeger: This was an anchor embedded in a support matrix, which is generated, and (afaict) there's no way to inject a ref anchor12:49
AJaegerefried: interesting. Maybe stephenfin has an idea if you share the exact example with us...12:50
efriedtosky: fwiw we have that tool in the nova-specs repo12:51
efried(I only read the last few lines, it may not be exactly what you were looking for)12:51
efriedAJaeger: it's here: https://review.opendev.org/#/c/690748/1/doc/source/admin/aggregates.rst@374 (I believe stephenfin is on vacation until the summit)12:52
AJaegerefried: why not link to top of page?12:54
efriedAJaeger: just because the page is huge and hard to find stuff in.12:55
efriedand the anchor *exists* so it's frustrating not to be able to use it.12:55
AJaegerefried: or use a relative :doc: link, so that it works once you branch?12:55
efriedYou mean :doc: with the anchor?12:55
efriedI tried that and it didn't build.12:55
AJaegerah ;(12:56
AJaegersorry, then I'm out of ideas12:56
efriedAJaeger: Oh, when you say "relative"...12:56
efriedyou mean :doc:`../user/support-matrix#the_anchor` rather than :doc:`/user/support-matrix#the_anchor` ?12:57
efriedI didn't try that12:57
*** goldyfruit has joined #openstack-doc13:00
efriedAJaeger: ...nope: WARNING: unknown document: ../user/support-matrix#operation_cache_images13:10
efriedIs :doc: an openstackdocstheme thing? I'd like to get a rfe bug/story opened for this.13:10
efriedalso possible I could make the support matrix generator inject :ref: anchors...13:11
AJaeger:doc: is RST AFAIR13:12
*** jamesmcarthur has quit IRC13:13
efriedhmph13:19
*** jamesmcarthur has joined #openstack-doc13:20
AJaegerhttps://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax13:21
AJaegersphinx docs mention it13:22
*** jawad_axd has joined #openstack-doc13:39
*** jawad_axd has quit IRC13:44
*** jawad_axd has joined #openstack-doc13:45
*** jamesmcarthur has quit IRC14:06
*** jamesmcarthur has joined #openstack-doc14:17
*** pcaruana has quit IRC14:19
pmatulisAJaeger, nicely done14:32
pmatulisAJaeger, could you give me a link to the PR that fixed the redirect?14:33
AJaegerpmatulis: in the backscroll, let me get it...14:34
AJaegerhttps://review.opendev.org/69066714:34
pmatulissweet thx14:34
*** kopecmartin is now known as kopecmartin|off14:46
*** evrardjp_ is now known as evrardjp14:48
*** tesseract has quit IRC15:49
*** goldyfruit has quit IRC15:54
*** goldyfruit has joined #openstack-doc15:56
*** ianychoi has joined #openstack-doc16:21
*** jawad_axd has quit IRC16:52
*** tosky has quit IRC16:52
*** alexmcleod has quit IRC16:55
*** jamesmcarthur has quit IRC17:29
*** jamesmcarthur has joined #openstack-doc17:31
*** jamesmcarthur has quit IRC17:43
*** jamesmcarthur has joined #openstack-doc17:54
*** jamesmcarthur has quit IRC17:59
*** tosky has joined #openstack-doc18:03
efriedAJaeger: FYI I submitted an issue and PR to sphinx https://github.com/sphinx-doc/sphinx/issues/676619:24
*** goldyfruit_ has joined #openstack-doc19:57
*** goldyfruit has quit IRC19:59
*** tosky_ has joined #openstack-doc20:00
*** tosky has quit IRC20:03
*** jamesmcarthur has joined #openstack-doc20:14
*** jamesmcarthur has quit IRC20:34
*** KeithMnemonic has quit IRC20:41
*** KeithMnemonic has joined #openstack-doc20:52
*** gyee has joined #openstack-doc21:16
*** goldyfruit_ has quit IRC21:38
*** miloa has quit IRC21:52
*** rcernin has quit IRC22:03
*** goldyfruit has joined #openstack-doc22:03
*** jawad_axd has joined #openstack-doc22:19
*** jawad_axd has quit IRC22:24
*** tosky_ is now known as tosky22:36
*** tosky has quit IRC22:36
*** jawad_axd has joined #openstack-doc22:41
*** jawad_axd has quit IRC22:45
*** jawad_axd has joined #openstack-doc23:01
*** jawad_axd has quit IRC23:06
*** rcernin has joined #openstack-doc23:13
*** jawad_axd has joined #openstack-doc23:22
*** jawad_axd has quit IRC23:26
*** jawad_axd has joined #openstack-doc23:43
*** jawad_axd has quit IRC23:47

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!