15:00:50 #startmeeting Docs Working Group aka DaWGs 15:00:50 Meeting started Tue May 7 15:00:50 2019 UTC. 15:00:50 This meeting is logged and archived in a public location. 15:00:50 The chair is acozine. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:00:50 Useful Commands: #action #agreed #halp #info #idea #link #topic. 15:00:50 The meeting name has been set to 'docs_working_group_aka_dawgs' 15:01:00 #chair samccann gundalow 15:01:00 Current chairs: acozine gundalow samccann 15:01:07 who else is around? 15:01:42 * samccann waves 15:02:23 samccann: hi! 15:03:06 * alongchamps waves 15:03:24 alongchamps bizonk dag decentral1se felixfontein Pilou shaps zoredache andersson007_ you runnin' with the DaWGs today? 15:03:29 #chair alongchamps 15:03:29 Current chairs: acozine alongchamps gundalow samccann 15:03:46 alongchamps: timezone-appropriate greetings! 15:04:09 while we're getting warmed up, I would like to mention a milestone 15:04:42 we are down to 60 open PRs labelled `docs`: https://github.com/ansible/ansible/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+label%3Adocs 15:05:22 woot!! 15:05:38 that's some amazing progress!! 15:06:04 this is a testament to the contributions of this community - thanks for the reviews, thanks for making PRs that are easy to assess, and thanks above all for working to make the Ansible docs better 15:06:12 together we can do wonders 15:06:15 woohoo 15:06:52 hey! 15:06:55 I'm here :) 15:07:07 #chair felixfontein 15:07:07 Current chairs: acozine alongchamps felixfontein gundalow samccann 15:07:13 felixfontein: welcome! 15:07:28 #topic https://github.com/ansible/ansible/pull/56041 15:07:53 thanks acozine! 15:08:03 Getting that to 60 PRs is amazing 15:08:18 we are so close to 2 pages on GitHub 15:08:51 if anyone has time to review stale PRs, that would be awesome 15:09:06 I hate to leave good ideas and contributions "on the table" 15:09:24 and even ones we don't merge have something to teach us 15:10:07 but #56041 isn't stale at all 15:10:31 the gist of it is: Change rendering of default list items in docs, so a list appears as ["myitem"] rather than [u'myitem'] 15:10:57 can anyone think of possible side-effects from this change? 15:12:19 do you understand the change from "myitem" to ["myitem"] (aka why we added brackets in 2.6?) 15:12:32 as bcoca mentioned, both forms are not valid for ini-style option parameters (which I think are discouraged, but not deprecated) 15:12:34 just out of curiosity. As for side effects, I can't think of any 15:13:14 samccann: IIRC the change was to demonstrate that the field is a list and can accept multiple values 15:13:18 i.e. dellos10_facts: gather_subset=['!config'] won't work 15:13:43 felixfontein: ah, that is interesting 15:13:45 but then this was already broken before the PR, so I guess the PR only improves the situation 15:13:54 felixfontein: some discourage, im not one of em 15:14:10 https://www.irccloud.com/pastebin/35ikKjot/ 15:14:10 felixfontein: yep, sometimes we need to take small steps 15:14:32 convert lists into , separated strings, this works on all k=v and k: v cases 15:14:43 so I think the examples are all in yaml, correct (aka we are consistent with that) 15:14:58 but table also includes 'ini' settings 15:15:04 samccann: you can also write 15:15:09 dellos10_facts: 15:15:17 gather_subset: ['!config'] 15:15:42 bcoca: would it be more correct to strip the `[` and display just `!config` - would that work for both YAML and INI? 15:15:55 only if default is single value 15:16:07 i.e default: ['all', '!config'] 15:16:10 do values starting with ! have to be escaped in YAML? I can never remember that... 15:16:17 felixfontein: yes 15:16:29 !stuff is 'custom yaml parser hook' 15:16:30 so if the default is a list, do ', 15:16:32 see !unsafe 15:16:38 ','.join([str(e) for e in list]) 15:16:49 s/str/to_text/ 15:16:52 ah, tojson instead of str 15:17:13 to_text and str will both result in !config instead of "!config" 15:17:31 you need quoting also 15:17:37 but that can happen on the full string 15:17:47 i.e default: "!config, all" 15:17:57 hmm. actually. doesn't ansible do all kind of YAML parsing of option values? so does ['!config'] really doesn't work for INI-style params? 15:18:33 !config does not require escaping in ini style 15:18:37 if that is what you are asking 15:18:45 subset=!config <<= safe 15:18:51 subset: !config <= not safe 15:19:19 - debug: var=["!config"] works fine for me 15:19:23 is it possible to pass multiple values with INI-style syntax? if so, do we document that anywhere? 15:19:34 so tojson (as in the PR) would produce a valid result 15:19:58 while - debug: var=[u"!config"] fails 15:20:29 Could not "Choices/Defaults (YAML)" be added in the table header ? 15:20:59 Pilou: that's a good idea 15:21:17 do we have a sense of how many users still use INI syntax? 15:22:00 maybe a blog post would be a good way to push for change and help people understand the details 15:22:43 a note could be added "Choices/Defaults (YAML, )" 15:23:35 if we prefer people don't use ini, should we/do we need to add more ini info (if it's not already there)? I like the idea of saying the table is in YAML for sure to make that clear 15:24:05 as I understood bcoca, not everyone prefers people to not use INI 15:24:09 Not sure what the effect of a link might be - isn't this the same content served by ansible-doc? 15:24:15 Greetings! 15:24:26 i actually prefer ini in some contexts 15:24:42 andersson007_: hi! 15:24:46 #chair andersson007_ 15:24:46 Current chairs: acozine alongchamps andersson007_ felixfontein gundalow samccann 15:25:15 ansible-doc already seems to use tojson, or something else, at least it outputs [Default: ['!config']] for that option 15:25:16 acozine: Thanks! 15:25:20 * bcoca deprecates gather_subset and solves the issue 15:25:38 Putting on my techwriter hat here - it's common practice to pick the 'best way' so to speak, for most of the documentation. Then the 'alternate way' can be mentioned, but not emphasized. Except where ini might be preferred/the better way in some instances/scenarios 15:25:38 um . . . how did we get to `gather_subset`? 15:25:56 ^ actually, that is an issue gather_subset is more complex, its not just a module option, its also a keyword and a ansible.cfg entry 15:26:40 samccann: understood, that is why i have not made it an issue that we are rewriting k=v syntax out of existance 15:26:55 hm . . . maybe at AnsibleFest we can have a docs bounty-hunt for INI examples in the module docs 15:27:14 i create those all the time 15:27:28 bcoca: create what all the time? 15:27:40 k=v examples 15:27:54 in many cases they are clearer than k: v 15:27:56 why do you choose that syntax? 15:28:00 hmmm 15:28:26 so why do we prefer the YAML `k: v` version? 15:28:30 peopel are easily confused by indentation, but change the syntax and it becomes clear what is a 'task keyword' vs 'module option' 15:28:44 oh, interesting 15:28:47 acozine: multline k=v is messy 15:28:48 anyway, I think the PR is already a good first step, since it improves the situation, and doesn't make it worse 15:29:00 also escaping rules in k=v require extra \ 15:29:57 felixfontein: I agree that this PR is a step in the right direction 15:30:26 +1 to merging #56041 15:30:35 +1 15:30:38 +1 15:30:46 also +1 15:30:54 4/0 so far, unless bcoca you're opposed? 15:31:01 +-0 15:31:04 heh 15:31:35 okay, I'm going to merge it 15:32:17 I'll post here when the change gets published, and if anyone sees problems with it, please post links here! 15:33:52 samccann: do you want to give an update on the version-changer work? 15:34:02 sure 15:34:09 #topic version changer for docs 15:34:12 is the jenkins test build visible do you know? 15:34:26 the build itself is not, but the test site is 15:34:33 ok - http://docs.testing.ansible.com/ansible/latest/user_guide/index.html 15:35:15 the version is still at the bottom for now. I fixed the urls so that it knows latest vs 2.7 etc. 15:36:02 (it was hardcoded to latest before). The test site still shows latest in the url but devel in the title... So I need to pick acozine's brain on that one. And I'll test it on 2.7, 2.6 next just to be sure the back n forth work 15:36:19 then it's on to figuring out if I can move it higher up on the navigation vs floating at the bottom 15:36:46 and this is the wip pr for the curious - https://github.com/ansible/ansible/pull/55655 15:37:16 (review comments always welcome in the pr... I'm hacking away/learning via google how to do most of this) 15:38:07 I think testing the back and forth is more important as a next step than getting the box to be at the top 15:38:23 yeah me too 15:38:48 this is good progress --- this has been on the wish list for so long! 15:39:32 will three also be a version selection in 2.6, 2.7, and devel? 15:40:07 and is there a 404 when you change to a page which doesn't exist in the selected version? 15:40:10 if you mean will we have version selection in the 2.6 etc versions of the docsite, yes, that's the goal. No later than that 15:40:29 felixfontein: we hope so . . . we're pretty sure we can get it into 2.7 at least 15:40:33 the default (old/plain/unhelpful) 404 page appears yes. there's in issue to make that better 15:40:48 (github issue that is) 15:41:03 it might be a good idea to first implement the 404, and then the version selection, since the version selection increases the number of 404 links 15:41:11 https://github.com/ansible/ansible/issues/51439 15:41:18 that's the 404 issue ^^^ 15:41:32 404 issue not found? ;) 15:41:39 heh 15:41:49 I'd like to get the version working first, even if we don't merge... so I don't forget what I was doing etc. 15:42:04 yeah, the 404 is at least a known fix 15:42:12 but how do others feel about getting a better 404 in place/merged first? 15:42:22 I mean, there are no technical blockers, it's just work 15:42:36 +1 on better 404 first, it will probably be helpful 15:42:40 getting the version selector into a mergeable shape (if it isn't already) is totally fine with me 15:43:03 +1 on the merge order, but keep working on the version-changer 15:43:25 sounds like a plan, stan 15:43:28 and if any community folks have time to work on the 404, that would be awesome! 15:43:31 (hint, hint) 15:44:19 I tried to describe a minimum viable fix in the issue, but I suspect others on this channel have more experience and more knowledge in this area than I do 15:45:26 hey, with the merge of #56041 we are down to 59 open docs PRs 15:45:53 there's something so satisfying about breaking another "decade" 15:46:05 * acozine does a little dance 15:46:06 \o/ 15:46:53 thanks samccann for the update on the version-changer stuff - can you put a note on the PR documenting that we'd like to see the 404 work done and merged before we merge the version-changer? 15:47:06 can do cashew 15:47:11 heh, thanks! 15:47:19 #topic open floor 15:47:21 * samccann glares at tea and wonders what's inside it 15:48:08 I saw an article this morning about how Colorado is debating legalizing magic mushrooms . . . maybe your tea came from an experimental facility there? 15:48:47 hehe could be! 15:48:53 so . . . anybody have an issue, PR, suggestion, comment, idea, etc. to bring up? 15:49:09 complaints? celebrations? 15:49:46 I posted this last week, but it's worth posting again 15:50:18 AnsibleFest call for proposals: https://ansiblefest2019.eventpoint.com/cfp 15:50:45 it would be great to have a bunch of docs champions turn up in Atlanta 15:51:13 who's planning to come to AnsibleFest 2019? 15:54:41 well, if you have ideas for docs-related talks, i encourage you either to submit them, or to suggest them here! 15:54:54 (presenters get free registration) 15:56:05 and that brings us to the end of another DaWGs meeting (DaWGs walk? DaWGs romp?) 15:56:18 thanks everyone, especially #chair 15:56:23 hm, that didn't work 15:56:27 thanks to . . . 15:56:30 #chair 15:56:30 Current chairs: acozine alongchamps andersson007_ felixfontein gundalow samccann 15:56:48 and to everyone following along at home 15:56:53 :-) 15:57:19 add agenda items for next week (or any week) to https://github.com/ansible/community/issues/389 15:57:26 thanks again, folks! 15:57:30 #endmeeting