Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HTML meta-tag output #197

Merged
merged 1 commit into from
Mar 9, 2023
Merged

Conversation

jakelishman
Copy link
Member

Commit 6538ba1 (gh-119) removed several bits of HTML meta information from the Jinja template of the layout. This caused (amongst other things):

  • the HTML "title" elements to not be output, which means that things like search engines couldn't display nice output and tab titles were missing information

  • the <meta charset="utf-8"> (or appropriate charset) to be omitted. Some OSes and browser combinations would then default to latin-1 (or other) and not utf-8 for some pages, making several text-output circuit drawings illegible.

This commit restores the meta-tag information to the relevant Jinja template, and tidies up some duplicate outputs.


As a side note: there doesn't appear to be a favicon defined anywhere, though Sphinx officially supports one. I suspect that this happens to work for our deployed documentation because there's one at https://qiskit.org/favicon.ico and historically web browsers have always just sent an exploratory request there to see. The favicon being absent is why local builds don't get one, though.

Commit 6538ba1 (Qiskitgh-119) removed several bits of HTML meta information
from the Jinja template of the layout.  This caused (amongst other
things):

* the HTML "title" elements to not be output, which means that things
  like search engines couldn't display nice output and tab titles were
  missing information

* the `<meta charset="utf-8">` (or appropriate charset) to be omitted.
  Some OSes and browser combinations would then default to `latin-1` (or
  other) and not utf-8 for some pages, making several text-output
  circuit drawings illegible.

This commit restores the meta-tag information to the relevant Jinja
template, and tidies up some duplicate outputs.
Copy link
Collaborator

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@HuangJunye HuangJunye merged commit edbff26 into Qiskit:main Mar 9, 2023
@jakelishman jakelishman deleted the fix-meta-tags branch March 9, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants