How do we add to our portal the table of contents and the 'what is in this article' guide to our KB articles like we see on learn.microsoft.com?

How do we add to our portal the table of contents and the 'what is in this article' guide to our KB articles like we see on learn.microsoft.com?
Hi Jessica,
There is no OOTD solution to add the table of content like the learn.microsoft.com.
The Knowledge Base page are designed by the Web Template which using Liquid Template.
You can customize the Knowledge Base page by editing the code.
The following are some links about Liquid Template.
Work with Liquid templates - Power Apps | Microsoft Learn
Create a custom page template - Power Apps | Microsoft Learn