-
-
Notifications
You must be signed in to change notification settings - Fork 182
Add Create a backend add-on section in the Developer guide with GenericSetup
#1757
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
base: 6.0
Are you sure you want to change the base?
Conversation
- Add term reference for Buildout
GenericSetup
|
I'm ready to close this issue as won't fix. Does anyone on @plone/classicui-team care about the topic of how to add or create a backend add-on section in the Developer guide with GenericSetup? If so, speak up, and let's get this finished. |
|
@stevepiercy will have a look at this. |
|
I've created a basic "addon creation documentation" and moved the old docs for GenericSetup here. I've also removed several outdated parts/link and tried to update the XML examples. Not finished yet though. I would recommend to place these docs all inside "Backend" and make a link from "Developer guide / Develop backend add-ons" -> "Backend / Add-ons" (like its done for Volto add-ons) Further we can add references for several What do you think? |
|
what's also missing is something like "Installing backend Add-on" ... at least I didn't find it... would also make sense to add it to "Backend / Add-ons" chapter. EDIT: I mean adding a pypi package or source checkout to cookieplone/buildout project ... |
Was this what you couldn't find? https://6.docs.plone.org/admin-guide/add-ons.html The plan is to merge the Admin section into Develop section so that people don't have to think of what role they're in versus the task they want to perform. See #1997. |
|
Ah ... exactly. Merging this to development section makes completely sense to me. Maybe we can do it like Volto does, to have an Sidenote: what confuses me is, that when I click "Developer Guide -> Develop Volto Add-ons" I get redirected directly to the Volto Development 2nd level subdirectory ... from a UI perspective I would never redirect directly when clicking in the navigation area, instead have at least a small introductionary text in the content area with the link to the desired target. |
In a perfect world, we'd have one repo for all documentation in an easy-to-organize hierarchy. However, we use submodules to pull in documentation from multiple repos, and therefore can't easily have a single hierarchical structure. plone.restapi and plone.api have similar things. We made the decision to use redirects as a compromise. There are placeholder files there that perform the actual redirect when the meta refresh tag fails in a browser for security reasons, but people were annoyed that they had to click twice to get to the content. Eventually, when the re-organization dust settles, we'll look into symlinks. |
|
@petschki it's a holiday weekend here in the US. I'll review this next week. Did you copy and paste this from the sources listed in the description, or did you modify any of it? It needs some serious editorial work. |
|
I've copied the merged GenericSetup document and removed the outdated parts ... I'll finish that this week. Happy Thanksgiving ... |
|
|
||
| ```shell | ||
| uvx plonecli create addon <addon namespace package> | ||
| ``` |
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 remove using plonecli to create the addon. The latests alpha release calls uvx cookieplone under the hood, so it does the same.
We keep the addon template in there because all the testing is based on creating the addon
| ```shell | ||
| uvx ploncli add <subtemplate> | ||
| ``` | ||
|
|
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.
You can also use make add <subtemplate> inside the backend folder of the structure created by cookieplone
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.
the Makefile only exists in the monorepo backend folder, am I correct?
If you simply create a uvx cookieplone backend_addon there is no Makefile (at least for me) ... I'll outline both scenarios.
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 have just made a test, I see the correct Makefile and it contains the make add command support.
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, sorry... you're right. I've looked in my plonecli created addon, not in the cookieplone backend_addon version 🫣
I'll update this ...
Co-authored-by: Mikel Larreategi <[email protected]>
af2689a to
0a4cace
Compare
|
|
||
| ## Add `plonecli` subtemplate to an addon | ||
|
|
||
| The generated addon contains a {file}`bobtemplates.cfg` file which lets you add several subtemplates with `plonecli`. |
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.
| The generated addon contains a {file}`bobtemplates.cfg` file which lets you add several subtemplates with `plonecli`. | |
| The generated addon contains a {file}`bobtemplate.cfg` file which lets you add several subtemplates with `plonecli`. |
See #1748 (comment)
Closes #1754.
Ping @petschki to take it from here.
📚 Documentation preview 📚: https://plone6--1757.org.readthedocs.build/