-
Notifications
You must be signed in to change notification settings - Fork 2.1k
docs: draft sub-path routing docs #7422
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
Conversation
⚠️ No Changeset found
Latest commit: 07d9013
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
docs/content/guides/7.multistore/3.patterns/5.subpath/1.subpath.md
Outdated
Show resolved
Hide resolved
...h.md Co-authored-by: Michael Kurowski <2772942+michaelKurowski@users.noreply.github.com>
docs/content/guides/7.multistore/3.patterns/5.subpath/1.subpath.md
Outdated
Show resolved
Hide resolved
docs/content/guides/7.multistore/3.patterns/5.subpath/1.subpath.md
Outdated
Show resolved
Hide resolved
docs/content/guides/7.multistore/3.patterns/5.subpath/1.subpath.md
Outdated
Show resolved
Hide resolved
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.
Do we have anything against having the order reversed? If no, then please add an information that this can go both ways
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.
it didn't work in Next.js - at least without any other changes in the i18n config
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.
Ty, I've created a spike for the next sprint, unfortunatelly there's a business case for this
docs/content/guides/7.multistore/3.patterns/5.subpath/1.subpath.md
Outdated
Show resolved
Hide resolved
d15af15 to
9700b6f
Compare
...storefront/vue-storefront into docs/draft-multipath-routing
9700b6f to
cccfc68
Compare
...h.md Co-authored-by: Michael Kurowski <2772942+michaelKurowski@users.noreply.github.com>
docs/content/guides/7.multistore/3.patterns/5.subpath/1.subpath.md
Outdated
Show resolved
Hide resolved
docs/content/guides/7.multistore/3.patterns/5.subpath/1.subpath.md
Outdated
Show resolved
Hide resolved
...storefront/vue-storefront into docs/draft-multipath-routing
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.
thx :)
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 feel like ### How Config Switcher Works and ## Setting Up the Middleware section could be described in our guide on Config Switcher
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 think this would be the correct syntax for adding file path to a fenced code block
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 was using this syntax in the past, but other team members in multibrand team said that it's better to set the file path as a comment, because the UI element for the file path looks bad when the path is long. We didn't have capacity that time to improve this UI element, so I've decided to use the comment instead
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.
our ::steps:: component would fit perfectly here
docs/content/guides/7.multistore/3.patterns/5.subpath/1.subpath.md
Outdated
Show resolved
Hide resolved
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.
do you think it would make sense to turn this code example into a diff?
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 would add one example showing how to update Next <Link /> and Nuxt <NuxtLink /> here to make it 100% clear what we mean
docs/content/guides/7.multistore/3.patterns/5.subpath/1.subpath.md
Outdated
Show resolved
Hide resolved
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.
suggestion: create a wrapper component to render dynamic component rendering based on configId.
<StoreComponentRenderer components= { electronics: ElectronicsAnnouncementBar, apparel: ApparelAnnouncementBar } />
It could also be used in this scenario:
{configId === 'electronics' && (
<ElectronicsPromo />
)}
like this:
<StoreComponentRenderer components= { electronics: ElectronicsPromo, } />
...h.md Co-authored-by: Łukasz Śliwa <39009379+lsliwaradioluz@users.noreply.github.com>
...storefront/vue-storefront into docs/draft-multipath-routing
Quality Gate Passed Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Thanks @michaelKurowski and @lsliwaradioluz for the feedback :) I'm leaving some comments open which are not essential from the perspective of the Spike - they should be resolved during the work on the final docs in AT-387 and AT-388 tasks.
Uh oh!
There was an error while loading. Please reload this page.
This docs draft was created based on the research done within two spikes
It shows how the user may customize the Storefront code using the sub-path routing. The final docs should be written within AT-387 and AT-388 tasks.
I've decided to merge the Next.js and Nuxt docs, because all the concepts are the same, the only difference is in the implementation. Also, the middleware docs seemed to be redundant right now, as we've decided to always place the config switcher code within the generated storefront, that's why I removed it.
A Storefront playground can be found here.