Giter VIP home page Giter VIP logo

Comments (6)

ondrejmirtes avatar ondrejmirtes commented on June 13, 2024 2

And it's alive :) https://apiref.phpstan.org/1.8.x/namespace-PHPStan.html

And I started linking the ApiGen-generated reference instead of GitHub sources :) phpstan/phpstan@b2f24ae

And the whole website is already linked in the sidebar here :) https://phpstan.org/developing-extensions/extension-types

I really appreciate what you did here, I was able to take advantage of it immediately.

I have some feature requests but I'm gonna open separate issues for those.

from apigen.

ondrejmirtes avatar ondrejmirtes commented on June 13, 2024

FYI I'm gonna use the ApiGen 7 to generate an apiref.phpstan.org website, I'm excited about it :)

from apigen.

JanTvrdik avatar JanTvrdik commented on June 13, 2024

This is sort-of currently possible, if you provide your own ApiGen\Analyzer\Filter implementation by replacing analyzer.filter service in apigen.neon.

The only tricky/unsolved part, is how to get your filter class loaded, because both Docker and Phar versions have their own autoloaders and will never load your code. So you currently either need to install ApiGen with composer require apigen/apigen:^7.0@alpha or use some trick to make your filter class loadable.


I added class context to member filtering, which may be useful 18c6881

from apigen.

ondrejmirtes avatar ondrejmirtes commented on June 13, 2024

Oh yeah, custom Filter implementation is ideal for me. I'll run it in GitHub Actions so I'll create a subdirectory with its own composer.json in phpstan-src, no problem! 👍

from apigen.

JanTvrdik avatar JanTvrdik commented on June 13, 2024

@ondrejmirtes Let me know if you encounter any issues. You're the first one trying this out.

from apigen.

ondrejmirtes avatar ondrejmirtes commented on June 13, 2024

FYI the whole GitHub Action that builds this and deploys this: https://github.com/phpstan/phpstan-src/blob/1.8.x/.github/workflows/apiref.yml

from apigen.

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.