awoodsnet,
@awoodsnet@phpc.social avatar

@ramsey what did you use to make thai site? Looks fantastic! https://uuid.ramsey.dev/en/stable/index.html

ramsey,
@ramsey@phpc.social avatar

@awoodsnet It’s hosted on , using their docs template and Sphinx to generate them.

https://readthedocs.org

The README in my docs folder goes into more detail: https://github.com/ramsey/uuid/tree/4.x/docs

heiglandreas,
@heiglandreas@phpc.social avatar
jaapio,
@jaapio@phpc.social avatar

@heiglandreas thanks Andreas, I think @ramsey is aware of phpDocumentor. But maybe not of the ability to render markdown and restructured text. Sphinx does a great job. But phpDocumentor is faster, and written in #php 😊

@awoodsnet

ramsey,
@ramsey@phpc.social avatar

@jaapio @heiglandreas @awoodsnet I thought phpDocumentor was more for generating class API docs from comments in your source code.

jaapio,
@jaapio@phpc.social avatar

@ramsey it was, about 8 years ago we changed our goal. phpDocumentor will be a documentation framework. That's what we are working on right now. since 1 year we have had full support for RST. Markdown is still experimental, but also ready to be tested by end users.

I will keep building on this until we have the ultimate documentation tool for php. That can generate uml diagrams out of code, and fully integrates api docs with developer docs.

See our docs for examples

@heiglandreas @awoodsnet

awoodsnet,
@awoodsnet@phpc.social avatar

@jaapio how hard would it be to phpDocumentor for parsing Shell doc comments too? There isn’t a good solution currently. I like the style of phpdoc, but naturally would need to adapt some of the items for shell scripting?

@ramsey @heiglandreas

jaapio,
@jaapio@phpc.social avatar

@awoodsnet that would require another parser. In theory it's just that, but I never tried to build a second one.
We do a lot of reflection in php. Trying different type resolution strategies. Not sure a complex tool like phpDocumentor would be the best fit for bash

@ramsey @heiglandreas

ramsey,
@ramsey@phpc.social avatar

@awoodsnet @jaapio @heiglandreas I’m not sure whether there’s a standard for that, but I’ve noticed JetBrains IDEs parsing them and showing their details when hovering over functions, etc.

For example, it knows how to parse this and make some sense of it: https://github.com/ramsey/asdf-php/blob/bf3636555262925cd368f8f9bae67193bd759c8f/lib/install.bash#L130-L136

ramsey,
@ramsey@phpc.social avatar

@jaapio @heiglandreas @awoodsnet This is great to hear! I didn’t realize you had changed direction. I’ll have to check it out. Is it “production ready?”

Is there anyone like Read the Docs who are auto-building on pushes and hosting multiple versions of docs built with phpDocumentor?

RST is my preferred format for technical documentation, btw.

jaapio,
@jaapio@phpc.social avatar

@ramsey it's production ready. The RST parser is a collaboration with the documentation team. They recently switch to our parser completely.
phpDocumentor itself doesn't contain the latest version yet. I expect a new release somewhere this month. Since 3.3 it's really usable.

We do have a GitHub action so it's easy to integrate in your pipelines. No hosted solution right now. But maybe that will follow in the future. Might be a nice idea. However GitHub pages also works.

Crell,
@Crell@phpc.social avatar

@jaapio @ramsey @heiglandreas @awoodsnet I may have to look into this...

ramsey,
@ramsey@phpc.social avatar
awoodsnet,
@awoodsnet@phpc.social avatar

@ramsey Thanks Ben! Think i want to use this for my Opal Framework. I haven’t written any docs yet, so this looks like a good option.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • tacticalgear
  • slotface
  • Durango
  • khanakhh
  • rosin
  • everett
  • Leos
  • vwfavf
  • normalnudes
  • osvaldo12
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ngwrru68w68
  • anitta
  • provamag3
  • tester
  • modclub
  • megavids
  • JUstTest
  • All magazines