dlang / dub-docs

Documentation for the Dub package manager
https://dub.pm
Boost Software License 1.0
16 stars 23 forks source link

Add project example for subpackages #78

Open vabenil opened 1 year ago

vabenil commented 1 year ago

The documentation for dub subpackages as the rest of the dub docs are lacking in examples. Adding a repository with simple dub examples would massively help beginners getting into D and thereafter dub.

To be more specific my reason for opening this issue is because of the lack of mention of the file structure of a subpackage. In the dub subpackage documentation in this example: 2023-10-04_21:28:34 Does not include that the source directory for component1 or component2 should be ./component/source/component/ whereas a beginner might assume that the correct path should ./component/source/.

Had there been an example dub project where I could have seen the correct file structure I would not have wasted hours with this issue.

WebFreak001 commented 1 year ago

for current new docs deployment see https://deploy-preview-54--dub-registry.netlify.app/