We can use a confluence-specific shortcode to render the Page Tree Macro using a Confluence Raw Block.

"Is the currently a way to create page-level Table of Contents? Perhaps specified at the Project level?"
https://github.com/quarto-dev/quarto-cli/discussions/2003#discussioncomment-6001293
allenmanning
2023-05-26T06:55:16Z
allenmanning
enhancement publishing-confluence
v1.4
open
Confluence: Site Table of Contents
https://github.com/quarto-dev/quarto-cli/issues/5699