-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Docs: add missing twbs/examples
and change sorting
#38407
Conversation
indexPath: src/pages/index.tsx | ||
- name: Bootstrap with Vue | ||
description: "Import and bundle Bootstrap's source Sass and JavaScript with Vue and Vite." | ||
url: /examples/tree/main/vue |
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.
Maybe we should sort these a little different? I feel the current sorting is a little weird, but I don't know if sorting by name in the template would make sense. Maybe a manual sorting would be better?
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.
Yeah I didn't understand the original order when I added the new examples so I've put them in the end. I agree that it can be improved but IDK know how exactly. If we don't find any idea or logic to sort them, maybe the right thing to do is to do it alphabetically.
If you have any ideas, you can commit them directly. I'll try to think about it too.
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.
Have a look now :)
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.
Better IMO. Maybe we can also remove the "Bootstrap with " prefixes. Not sure there are useful for readability.
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.
Yeah, I was about to drop them
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.
Oh yeah or putting it everywhere like you did. One or the other no problem
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 kept the same sorting we have in https://github.com/twbs/examples#readme
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.
Good idea. LGTM 👌
twbs/examples
and change sorting
Description
This PR adds missing twbs/examples in our /examples page.
In order to do that, because of the
src/pages/index.tsx
main file, I've modified the/examples/_index.md
file to directly set the index path fromsite/data/examples.yml
file.It also adds some callouts:
Motivation & Context
Let the users know that we have a lot of examples.
Type of changes
Checklist
npm run lint
)Live previews
Related issues
Closes #38370