-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add library intro #587
base: master
Are you sure you want to change the base?
Add library intro #587
Conversation
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.
please don't mix changes with indentation/formatting changes such as the tabs -> spaces change that you did, this makes it hard to review
There is a home-fixed.dt file which you probably didn't intend to include
The change to viewutils.d was done in a separate PR and is merged already, please rebase
the error shows you are mixing tabs and spaces, please use them consistently. Currently the files in this repo use tabs so it'd be better to convert your changes all to tabs |
b62b428
to
415f887
Compare
done! |
@@ -27,6 +27,18 @@ block body | |||
- else | |||
p Welcome to DUB, the D package registry. The following list shows all available packages: | |||
|
|||
//New Section |
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.
please don't add comments that refer to old/new things, this comment will be outdated immediately on the next change and isn't helping anyone. I would just suggest removing this line since the h2
describes it already
@@ -21,8 +21,8 @@ | |||
ul | |||
- foreach(items; listitems) | |||
- if(items[1].length < 2) | |||
- bool active = startsWith(req.path[1..$], items[1][0]); | |||
- if( items[1][0].empty ) active = req.path == "/"; | |||
- bool active = startsWith(req.requestPath.toString()[1..$], items[1][0]); |
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 is unrelated to the change above, please only do one thing at a time in a PR, you can have multiple PRs open at the same time
li | ||
a(href="https://github.com/BindBC") 🔗 bindbc - A collection of bindings for C libraries | ||
li | ||
a(href="https://github.com/dlang-community/gettext") 🌎 gettext - A library for handling internationalization |
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.
I personally like having a list of common libraries, but I don't know if the registry is the right place for this. This needs some discussion on the forum where to put it and which libraries to include in it I think. There are already a lot of "awesome" lists for D projects, e.g. https://github.com/dlang-community/awesome-d/ - it should probably rather link to a project like this instead of maintaining a separate list.
We already have the dynamically updating "Most popular" listing as well. It would probably make more sense to update the scoring there if you think certain packages shouldn't be ranked so high.
Also I don't think it's a good idea to use emoji on websites due to possible encoding issues, not all fonts having them and the look being different on each platform / emoji font which isn't really controllable and quickly gets ugly. For categories we already included monochrome icons which could be reused here instead.
This PR includes several updates and improvements to various parts of the project. Key changes include:
Updated dependencies in dub.selections.json (e.g., diet-ng updated to version 1.8.3).
Fixed a broken link in source/dubregistry/viewutils.d (corrected link to package scoring documentation).
Refactored the front-end code in views/home.dt to improve the layout and structure, including category selection enhancements.
Updated navigation and package display logic across multiple views (views/layout.inc.menu.dt, views/view_package.dt).