Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Introduce Multi-Level TocTrees #264

Merged
merged 9 commits into from
Mar 21, 2023

Conversation

linawolf
Copy link
Collaborator

@linawolf linawolf commented Feb 21, 2023

Toctrees display subpages of subpages if maxdepth is not set or greater then one. The number of levels to be displayed depends on :maxdepth:. Only the main document title is used if :titlesonly: is set.

resolves #197

@linawolf linawolf requested review from greg0ire and wouterj February 21, 2023 19:48
@wouterj
Copy link
Collaborator

wouterj commented Feb 27, 2023

Fyi, I'll put this one on my list to review tomorrow.

Copy link
Collaborator

@wouterj wouterj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Just some very minor comments.

I must admit that I can't 100% follow all logic, but the changes in test look correct to me so the logic must also be correct :)
I haven't been able to test this PR on the Symfony docs yet, as #251 had quite a big impact on our docs-builder package. I'm working on fixing 0.6 compatibility, but for now we can only run 0.5.

lib/HTML/Renderers/TocNodeRenderer.php Outdated Show resolved Hide resolved
lib/HTML/Renderers/TocNodeRenderer.php Outdated Show resolved Hide resolved
lib/HTML/Renderers/TocNodeRenderer.php Outdated Show resolved Hide resolved
Toctrees display subpages of subpages if `maxdepth` is not set or greater then one. The number of levels to be displayed depends on `:maxdepth:`. Only the main document title is used if `:titlesonly:` is set.
@linawolf
Copy link
Collaborator Author

linawolf commented Mar 1, 2023

Thank you @wouterj I committed your suggestions.

@linawolf linawolf requested a review from wouterj March 1, 2023 08:51
@linawolf
Copy link
Collaborator Author

@greg0ire can we merge this PR?

@greg0ire greg0ire merged commit bb84b97 into doctrine:0.6.x Mar 21, 2023
@greg0ire
Copy link
Member

Can and did! Thanks @linawolf !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants