GithubOpenFileHandler
class GithubOpenFileHandler(githubRepository: String, branch: String = "main", server: String = "https://github.com") : UrlOpenFileHandler
An OpenFileHandler that opens files in GitHub's web interface.
This handler generates URLs that point to specific files and line numbers in a GitHub repository, allowing users to view the source code of previews directly in their web browser.
Parameters
githubRepository
The GitHub repository in format "owner/repository"
branch
The branch name to link to (defaults to "main")
server
The GitHub server URL (defaults to "https://github.com" for public GitHub)