Copy page¶
Show a “Copy page” button with dropdown of open in AI links.
A Copy page button is shown by default starting with version 2025.12.13.
Source files¶
If the Copy page button does not appear at all, it may be because the source file cannot
be found. The Shibuya theme will look for the source file when html_copy_source = True is
set, or when html_context is configured with source information.
Use the GitHub’s raw URL for source URL:
html_context = {
"source_type": "github",
"source_user": "lepture",
"source_repo": "shibuya",
}
Use the Sphinx copy source feature for source URL:
html_copy_source = True
Sphinx will copy the source files into _sources folder.
Prompt template¶
By default, you can open the page in ChatGPT, Claude, and Perplexity using the following prompt:
Read {url} so I can ask questions about it.
You can customize the prompt template in the conf.py file:
html_theme_options = {
"ai_prompt_template": "Read {url} at first, then answer my questions about it.",
}
Open links¶
The Copy page dropdown enables Open in links for ChatGPT and Claude by default. These links can be enabled or disabled via the following configuration:
html_theme_options = {
"open_in_chatgpt": True,
"open_in_claude": True,
"open_in_perplexity": True,
}