Skip to content

Commit

Permalink
build: Drop the feedback form html context.
Browse files Browse the repository at this point in the history
The new theme does not use this function so we don't need to have the html_context have info about it.
  • Loading branch information
feanil committed Aug 1, 2024
1 parent 0e97164 commit 4790975
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions shared/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,10 @@ def set_audience(category, audience):
if help_data:
html_context.update(help_data)

FEEDBACK_FORM_FMT = "https://docs.google.com/forms/d/1T5QGnYb_QnQoMO7T_eatq02miPTY40WVe3cgGphNAdY/viewform?entry.1952574704&entry.241692674={pageid}"

def feedback_form_url(project, page):
"""Create a URL for feedback on a particular page in a project."""
return FEEDBACK_FORM_FMT.format(pageid=urllib.quote("{}: {}".format(project, page)))

# We want the feedback_form_url function available in HTML templates, but it
# makes html_context un-JSON-able, so don't add it if we are doing JSON.
if the_builder != "json":
html_context['feedback_form_url'] = feedback_form_url

# General information about the project.

print(html_context)

copyright = '{year}, The Axim Collaborative'.format(year=datetime.datetime.now().year)

# Intersphinx manages the connections between books.
Expand Down

0 comments on commit 4790975

Please sign in to comment.