-
Notifications
You must be signed in to change notification settings - Fork 31
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
Use docs/docsite/links.yml file to create extra links #355
Use docs/docsite/links.yml file to create extra links #355
Conversation
|
a912ae1
to
29ed03b
Compare
Now collection metadata and extra links are extracted and shown:
|
On the example where we highlight the author with a link to their email... seems like we need consent from each author before we do something like that. |
We also need to make those buttons the 'ansible teal' so to speak at least on this docsite so it matches. |
80a0443
to
3587a2e
Compare
I've added links to the communication data supplied by the collection. (I've slightly adjusted the |
In such examples, the author put their email address in the collection's |
The last commit reduces the number of buttons ( |
Done. |
6909c2e
to
a6ea7f8
Compare
I updated the schema slightly (https://gist.github.com/felixfontein/18b1763ca2a5320808225c4121b50791 and https://github.com/ansible-collections/community.dns/pull/76/files are updated) to match the internal data structures, and switched to using Pydantic for parsing so I can also use it for linting. The output didn't change at all. With the linting in place, I think this is ready for some reviewing. (I guess that the design / output needs some adjustments :) ) |
c92d221
to
0b88015
Compare
7ba8313
to
fc1e676
Compare
bb8e048
to
0dd6a90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really cool!
Really, really nice work @felixfontein - thanks again for getting ahead of me on this! I love the buttons, I think that works well. I guess @samccann has the last word on the look of things, but it's nice and prominent, high up the page, and clearly differenciated. Do we need a dedicated section in the metadata for communication? I'm concerned that they get lost as text underneath the button links - the eye is drawn there and skims over the bit below. Would it not be simpler to put those links into
It seems unlikely that a collection would need multiple Matrix/IRC rooms, I think, but nothing is preventing it this way, you'll just get a lot of buttons. However the buttons seem to overflow nicely, so even that isn't a huge concern. This would simplify the code (no extra handling for |
Is there something we can put on the individual module pages as well? I don't want to go overboard here, but we used to have 'edit on github' on every module page. It would be cool if we could either put a link back to the collection index page where all the buttons are, or add a the buttons to the module/plugin pages as well? I don't want to overclutter things ... |
Good catch @samccann - I'd agree with rendering them on the plugin pages too - they don't take up too much space as a single line (assuming the "Communication" text section is dropped) so I think clutter is minimal, and is probably a win. People who go straight to a module/plugin from history, search, etc, might not know to head back to the index page for links - and by the time you've explained to go there for further directions, you might as well put the buttons anyway. |
0dd6a90
to
798591e
Compare
Personally, I would avoid that, since having too many buttons makes it hard to find the things you are looking for (you potentially have to read all of them). I would avoid having more than 3-5 buttons. About converting the communication metadata to extra links: we would be losing all metadata on communication channels and will not have a chance to display them differently at any point in the future. If we really want to show everything as buttons, we should dynamically convert communication metadata to buttons.
In terms of IRC channels, there's always #ansible for general help/support questions, and #ansible-(something) for development questions. Which would be two IRC channels and two Matrix rooms :) |
I've updated the PR to:
(I also fixed the Edit on GitHub links for community.general and community.network, where they were currently broken for modules due to the subdirectory structure.) |
(Example: https://ansible.fontein.de/collections/community/dns/hetzner_dns_record_module.html#collection-links for the collection links; look at the top of the page for the 'Edit on GitHub' link.) |
I like the Edit on Github official 'button' being back, that's great! Thanks for that @felixfontein. I wonder if we should left-justify the buttons so they don't seem so 'floating in space' so to speak? Also on the plugin pages, do we need a link to the ...wait for it... communication links header? :-) So it's noticable at the top level toc. |
@samccann how about the following changes:
That way the "less relevant" information (authors, communication) will be at the bottom, but still visible (due to the TOC). Regarding alignment of the buttons: I'm not sure whether I'll like them left aligned. But then, I'm not a designer. You can try out different alignments by changing the |
What about these ideas?
|
OK, these inline replies are starting to get out of hand (size-wise) 😁
That's fair. What I'm trying to avoid is confusing people - I have been on way too many pages where it is unclear where I should go next, and I don't want to repeat that mistake. Multiple channels makes this highly likely, but I agree with the other point about setting examples rather than defining hard limits. Thus, I'd suggest sticking to a single one as the "recommended approach" - most people are friendly, and if a question is off-topic (which should be infrequent) then signposting will happen. (It would be fair to say that linking to both Matrix and IRC falls under the same problem, but we currently commit to treating them equally, so I can't suggest dropping that 😛) This also applies to the later point about page loads - every page load generally causes some more users to just give up. I'd rather get them talking to someone (or writing an issue, or a mailing list post, or something else interactive) sooner rather than later, which is why I lean towards duplication across pages rather than multiple loads to get to the right thing. It's not duplicated for us because we define it once in the metadata - it's just rendered in multiple places. I don't think that will cause any conflicts, right? In which case I don't understand the harm of seeing the buttons in multiple places.
Yes, sorry, I was being flippant in my earlier statement. What I was trying to say is, you're doing the hard work right now, and I respect that, and that carries weight, regardless of who may maintain it later. In any case, I feel like I'm "bikeshedding" here. All the work so far is great, and a vast improvement on the nothing we have at the moment. I'm certainly not going to make a big fuss if you ignore me entirely 😛 In the last docs meetings, @samccann suggested we just get on with it, and then get feedback from both collection owners and users in a little while, and I support that. I'd be happy to craft a small survey or something to be run a month or two after merge and get some opinions on how we can improve it. Thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't comment on the code but the output/result LGTM
Assuming there's no (negative) feedback in #80 until this evening, and assuming that @samccann and @GregSutcliffe don't veto, I'll merge this tomorrow morning. |
LGTM 👍 |
LGTM too |
@samccann @briantist @GregSutcliffe and everyone else involved, thanks a lot for reviewing and testing this, and for all the dicussions on this one! |
WIP implementation for ansible-collections/overview#181 using https://gist.github.com/felixfontein/18b1763ca2a5320808225c4121b50791. See ansible-collections/community.dns#76 for how such a file can look like, and:
for how it looks. The very first version only has a "Edit on GitHub" link on the module and plugin, but hey, that's the very first step :-)