Problem/Motivation

The links are not following the https://www.markdownguide.org/cheat-sheet/ format.

Steps to reproduce

Visit README.md and see the links: https://git.drupalcode.org/project/search_api/-/raw/8.x-1.x/README.md

Issue fork search_api-3265881

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ressa created an issue. See original summary.

ressa’s picture

Assigned: Unassigned » ressa

ressa’s picture

Status: Active » Needs review

Here is a Merge Request which updates the links. I think the failing test is an unrelated Composer issue?

ressa’s picture

So, I just realized that Reference Links is a Markdown option, but isn't it better to keep it simple, and use the [link text](Url) format?

drunken monkey’s picture

Category: Bug report » Feature request
StatusFileSize
new6.04 KB

Thanks for creating this issue!
However, as you already noted, there’s nothing wrong with the current formatting of the links, and I prefer them the way they are. I think it makes it much easier to read the source text. I do now see that Gitlab apparently doesn’t correctly parse our current syntax, though, so we should probably fix that. Hopefully just a matter of removing spaces and empty [] syntax.

Regarding the ’ and similar characters: those are just encoding issues. Switch your editor/IDE to UTF-8 (as you should, anyways, according to Drupal guidelines) and they will be displayed correctly.

Reviewing the README I furthermore noticed that we do not list the search_api_random_sort feature that the module defines (for over ten years now, in fact), so we should take the opportunity to add that as well.
I also like your suggested formatting of the plugin directories as a table, thanks for that!

Revised patch attached, please review and tell me what you think.

Pracheth’s picture

Assigned: ressa » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new92.61 KB
new89.76 KB
new25.36 KB

Hi @drunken monkey,
Reviewed you patch(3265881-6--readme_changes.patch), the patch applied cleanly and the changes suggested in #6 is reflected in README.md.

Changing status to Reviewed and Tested by Community.

ressa’s picture

Status: Reviewed & tested by the community » Needs review

You're welcome @drunken monkey! It does make the formatting of the lines less busy with reference links, so that's fine with me.

Personally, I am not a fan of the non-standard characters (’ vs. ' and “ vs. ") and just think it makes more sense to use the standard characters. But that's of course just my opinion, and you should feel free to keep them as they are :-)

I agree, search_api_random_sort should be added, great idea.

I have updated the maintainer formatting, I see that a few modules use the format Wilfrid Roze (eme) - https://www.drupal.org/u/eme.

So all in it looks fine and ready. I have committed your patch from #6 in the MR, so it's available for preview.

  • drunken monkey committed 7f2de5a on 8.x-1.x
    Issue #3265881 by ressa, drunken monkey: Fixed and expanded README.md.
    
drunken monkey’s picture

Status: Needs review » Fixed

Thanks for reviewing, @Pracheth!
Also thanks to ressa, for continuing to work on this. Good to see the new formatting actually gets displayed correctly on Gitlab.
I don’t think there is a standard for how to list maintainers, so I’m gonna leave this as-is. I don’t think displaying the URL has any added value there.

So, committed my patch from #6. Thanks again, everyone!

ressa’s picture

Great to see this land, thanks!

Pracheth’s picture

Welcome @ drunken monkey. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.