-
Notifications
You must be signed in to change notification settings - Fork 14
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
[IDEA] Place generated files in PHPDoc @package and @subpackage dirs #9
Comments
great idea! francisco arenas 2013/2/17 Anselm Christophersen [email protected]
|
I'm currently working on a rather large project, having 30+ Silversmith generated files, and here it would really be a great help to be able to split the project into sub package directories. |
It's a really good idea. I'm concerned about one limitation of the SilverSmith YAML spec that's been bugging me for some time. You can't really group nodes. For instance, the "Tab" attribute of a field becomes really redundant -- the same way your "Package" node does in the example. Ideally, I'd like to see the spec updated so that both of these things are possible:
Likewise:
Thoughts? |
then probably the word packages is not the best... because you can't fill what about a different kind of root node? Modules: ... i like the idea of the tabs too. Silversmith already handles the creation of modules, but it stops there... maybe if you control the module from the project.yml itself can be a really deal breaker! francisco arenas 2013/2/17 unclecheese [email protected]
|
Good idea. I'm myself not a fan of redundant code. @dospuntocero yes you can have subdirectories inside of Thinking about it, I'm not sure it would be a good idea to allow creating files in others modules than the current module, as it could open up for a lot of complications as one module could accidentally overwrite files in another module. So, based on that (and your proposals), I'm considering the following:
Possibly this shouldn't be forced. Maybe we could by default add page types to a So the simple syntax could still be supported:
...and combined that could look like this:
I'm thinking we could do something similar for tabs. Does that make sense? Furthermore, if we want to support auto generating PHPDoc document headers, the
Thinking further, this could be a great helper for/when auto generating project documentation. |
Just an idea: I think it would be great if you could define
package
andsubpackage
on components and pages in yourproject.yml
file.The idea is for Silversmith then being able to place files in different directories.
Example,
project.yml
:Example, code structure:
Furthermore this would allow for automatically generating php doc in the file head.
The text was updated successfully, but these errors were encountered: