This package integrates the popular Read The Docs Sphinx theme in the phpDocumentor Guides library.
-
Install the package using Composer:
composer require wouterj/guides-readthedocs
-
Update the
guides.xml
file to enable the extension:<!-- guides.xml --> <?xml version="1.0" encoding="UTF-8" ?> <guides xmlns="https://www.phpdoc.org/guides" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.phpdoc.org/guides packages/guides-cli/resources/schema/guides.xsd"> <extension class="WouterJ\ReadTheDocs"/> </guides>
-
Render the documentation using the new theme:
./vendor/bin/guides --theme rtd