Comments (2)
phpDocumentor is automatically creating a default package named Application
, if it's empty this is a bug that we should address. There is a feature request somewhere to disable this behavior. We didn't implement this yet.
If you want to remove the packages from the menu you can overwrite the template for this.
Please read the docs about this feature: https://docs.phpdoc.org/guide/features/theming/custom-styling.html#replacing-whole-objects-or-components
The template to change is: https://github.com/phpDocumentor/phpDocumentor/blob/master/data/templates/default/components/sidebar.html.twig
from phpdocumentor.
@jaapio I think I resolved it by doing the following:
- In the config, define a default package name that matches the topmost package name of your code. So if for example the code uses package like
MyPack\Subpack
, then pass this in config:<default-package-name>MyPack</default-package-name>
- Make sure all of your code uses the
MyPack
top package (it may use sub package of course). If any code (example: composer autoloader) does not use any, or another package name then exclude it (well I hope people do that anyway in the case of autoloader...) it from the generation with thenignore
attribute.
That resolved the issue for me. No more Application
package is generated and the MyPack
includes as expected all the contents of the application.
I think this can be closed, assuming mis-usage on my end at the begin.
from phpdocumentor.
Related Issues (20)
- `:php:method:` links not working. HOT 1
- Guide for running phpDocumentor includes wrong examples HOT 3
- Error: There are no commands defined in the "C" namespace
- PhpDocumentor creating in pdf HOT 5
- Which tag to use when using constructor property promotion
- Doesn't document the right inherited method HOT 3
- Issue with copy images to output directory
- Revisit writers
- PHP Deprecated: Please use getType in .../phpDocumentor/Descriptor/Traits/CanHaveAType.php HOT 1
- Xdebug has detected a possible infinite loop - problem with latest, not with 3.4.1 HOT 4
- Bug XmlUtils.php - Start tag expected HOT 2
- Documentation issue: Separator characters and the @package tag HOT 7
- Twig v3 support? HOT 2
- Background colour is not defined, but text colour is
- Latest git master is pushed to docker hub instead of stable release HOT 3
- feat: render readthedocs flyout menu for default theme HOT 1
- Specify PHIVE install GPG keys HOT 4
- Separate by folder HOT 2
- Document how to create phar
- Doesn't document the right inherited method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpdocumentor.