zendframework / zend-stratigility

Middleware for PHP built on top of PSR-7 and PSR-15
BSD 3-Clause "New" or "Revised" License
235 stars 57 forks source link

Provide versioned documentation #127

Closed weierophinney closed 6 years ago

weierophinney commented 6 years ago

In working on #122 and #124, I've come to the conclusion that we need versioned documentation for this component. Doing so allows us to refer users to the documentation specific to their major version, but also allows us to simplify examples: v1 code samples show only code compatible with v1, etc.

This patch provides a possible approach, by creating two trees, v1 and v2, each with their version-specific documentation. Documentation for the current/upcoming version is in the root tree.