Giter Site home page Giter Site logo

Comments (2)

jaapio avatar jaapio commented on June 16, 2024

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.

smileBeda avatar smileBeda commented on June 16, 2024

@jaapio I think I resolved it by doing the following:

  1. 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>
  2. 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 then ignore 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.