You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RTD Theme supports, "Edit on GitHub" which helps navigate to sources in GitHub. It would be nice if doxysphinx generated HTMLs could navigate to its corresponding hpp/cpp.
Example conf.py
# Get current branch for "Edit on GitHub"git_cmd= ["git", "branch", "--show-current"]
try:
importsubprocessgit_branch=subprocess.check_output(git_cmd).decode("utf-8")
display_github=True# Show "Edit on GitHub"exceptFileNotFoundError:
display_github=False# Show "View page source"git_branch=""warnings.warn("Cannot get current git branch. Not setting 'git_branch' for 'Edit on GitHub'.")
html_context= {
# Enable the "Edit in GitHub link within the header of each page."display_github": display_github,
# Variables to generate the resulting github URL for each page.# Format Template:# https://{{ github_host|default("github.com") }}/# {{ github_user }}/{{ github_repo }}/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ suffix }}"github_user": "USER",
"github_repo": "REPO",
"github_version": git_branch+"/",
}
The text was updated successfully, but these errors were encountered:
RTD Theme supports, "Edit on GitHub" which helps navigate to sources in GitHub. It would be nice if doxysphinx generated HTMLs could navigate to its corresponding hpp/cpp.
Example
conf.py
The text was updated successfully, but these errors were encountered: