It comes from Swift5.6. with plugin supports.
Support hosting DocC archives in static hosting environments
@gwendal.roue I agree! If there's anything you'd like to see beyond what is described in the original forums post that you would consider necessary for "Full support" of GitHub hosting, please let me know. This is a really important feature for Swift-DocC to get right.
SwiftPM will supports to generate static archive to host on GitHubPages
Publishing DocC Documentation as a Static Website on GitHub Pages
DocC This tutorial shows how to generate DocC documentation archives, how to process them for static hosting and deploy the on GitHub Pages. At WWDC 2021, Apple introduced DocC. It is an amazing framework to create rich API reference documentation and interactive tutorials for Swift projects, frameworks, or packages.