Altai-man / docs.raku.org

Source code of a beta version of the updated docs.raku.org website
Artistic License 2.0
11 stars 6 forks source link

Sort each section’s item titles in alphabetical order #72

Closed tbrowder closed 1 year ago

Altai-man commented 1 year ago

Hi! What sections do you mean?

tbrowder commented 1 year ago

For example, on the Language page, there are sections:

Each section has a list of subject titles and descriptions. For example, under the section General reference there are the following subjects:

Subject Description
Terms Raku terms
Glossary Glossary of Raku terminology
... ...

Notice the subject titles are unordered. They would be easier to peruse by ordering them alphabetically by subject so the example above would then look like this:

Subject Description
Glossary Glossary ...
Terms Raku terms
... ...
Altai-man commented 1 year ago

I see, thanks! I'll look into it when time allows.

2colours commented 1 year ago

Now that I have a working setup, I can also look into it. :) Maybe later today or this weekend.

Altai-man commented 1 year ago

It shouldn't be bad, most likely a map with sort around https://github.com/Altai-man/docs.raku.org/blob/master/lib/Docky/Routes/Index.pm6#L24-L25 will help.

2colours commented 1 year ago

Actually, it seems to me that this is already fixed - the demo site hasn't been updated to the latest version.

Edit: or maybe it's non-deterministic? The order seems to be alphabetic in some cases (including the "general reference" part) while random in others.

Altai-man commented 1 year ago

Actually, it seems to me that this is already fixed - the demo site hasn't been updated to the latest version.

The latest version was not uploaded, yes. And the PR was not merged yet, too, cause the submodules got into the PR somehow.

I find it hard to spend time on the website when it's in the limbo state as it is now, so try to do updates with more changes included at once.

2colours commented 1 year ago

Yes, understandable... my personal motive is to contribute to something that is maintained to any extent, and might turn out to be useful. You probably know what "infinitely pending pull requests" are and you are doing just enough to avoid that situation. The rest is not directly up to us either way...