Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Cloudflare static-asset headers, copied to the site root by html_extra_path.
# GitHub Pages sent this on every response. Without it, tools on other sites
# cannot read the docs' files (objects.inv, images, JSON) from a browser.
/*
Access-Control-Allow-Origin: *
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@
ogp_social_cards = {"enable": False}
html_static_path = ["stylesheets"]
html_css_files = ["extra.css"]
# Cloudflare serves the site; _redirects maps directory URLs to index.html.
html_extra_path = ["_redirects"]
# Cloudflare serves the site; _redirects maps directory URLs to index.html and
# _headers adds the CORS header that GitHub Pages used to send.
html_extra_path = ["_redirects", "_headers"]
html_theme_options = {
"accent_color": "crimson", # names the token family; stylesheets/extra.css re-tones the crimson scale to ledger oxblood
"color_mode": "auto", # follow the reader's light/dark preference
Expand Down
Loading