-
-
Notifications
You must be signed in to change notification settings - Fork 735
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
Route registry #6600
Route registry #6600
Conversation
✅ Deploy Preview for plone-components canceled.
|
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.
@sneridagh No documentation?
@sneridagh if docs are needed—and I think they are needed, especially for an API—then at least create a new issue referencing this PR. Otherwise it will go unnoticed and unused. |
@davisagli @stevepiercy incoming, I promise, I needed it to see if something I wanted to try would work... and it did :) |
@stevepiercy @davisagli Which brings the point on how to document something that will be only usable in the next Plone (Volto) major, or in this case, only relevant for React Router 7 projects. |
@sneridagh if by "how to document" you mean "where to document", and assuming this would be a how-to guide to configure routing in Volto, then it would be a new page under Development. If a reference, then under Configuration. If explanation, then under Conceptual guides. In all cases, we would need to add an admonition and use a title that includes "Plone 7". We could try a collapsible admonition, initially closed, so that the reader would have to click on the admonition title to reveal the content, effectively serving as a "I understand and accept the risks" thing. https://myst-parser.readthedocs.io/en/latest/syntax/admonitions.html#collapsible-admonitions # Routes in Plone 7
```{admonition} Warning! This feature is experimental. Click to accept the risks and read details.
:class: warning
All the content here.
``` If that's too much, we can just use an admonition at the top of the page without a toggle. We also have this ridiculously shameless document Contributing to Volto > Routing, so whatever you write will not conflict with what does not exist. There may be other relevant docs, but I don't know which they would be from a search for "routing". |
* main: Route registry (#6600)
@stevepiercy let's talk about this, because I started to write it, and it's not that easy. For example, let's assume we start to document all the new things in Plone 7. If we mix it up with the "Plone 6" things it will be a complete mess. Specially when we will have to "switch" to Plone 7 is default eg. "https://7.docs.plone.org"... So I think we really need a sound strategy with this. TBH, I'd start a new completely different "Canary docs" section, going full diataxis in there. It's easier to document the new feature in |
* main: (741 commits) Improve the usability of the ObjectBrowser when inputting a manual value, checking it on blur, and adding a local validator (#6576) fixing Markdown heading (#6588) fix site logo issue (#6591) Route registry (#6600) Release @plone/client 1.0.0-alpha.21 Export the getContent bare fetcher (#6594) fix: incorrect copied state useClipboard (#6585) [RR7] Update to latest RR7 and conventions, fix index page (#6589) Release 18.6.0 Release @plone/slate 18.1.0 Revert "added swedish translation" (#6578) Slate Italian translations (#6563) Release 18.5.0 Fix robots.txt in devmode (#6571) added swedish translation (#6557) Depth search issue (#6558) Block examples documentation (#6560) Fixed folder contents issues with persistent selection (#6554) Fix redirects to MDN responsive images (#6552) Bugfix remove query string inclusion in body class generation logic (#6547) ...
Added
registerRoute
API for the config.It allows to add a ReactRouter route to the configuration, that we can process and load later.
Quite simple, it only saves the configuration given a specific object.