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

Remove references to some missing files and fix some invalid JavaScript #292

Merged
merged 4 commits into from
May 4, 2023

Conversation

Eric-Arellano
Copy link
Collaborator

@Eric-Arellano Eric-Arellano commented May 2, 2023

  1. Remove references to js/vendor, which was removed in remove vendor js code #17
  2. Remove reference to css.theme.map, which we never distribute since we never minify css.theme to begin with
  3. Remove invalid JavaScript references to pytorch-shortcuts-wrapper and header-holder, which no longer exist in our HTML template and caused the JavaScript to fail to run.

The main console error I still get is tracked by #291. (FYI: to avoid a bunch of console errors when developing, you need to serve the app with e.g. python3 -m http.server, rather than opening index.html directly.)

As a result of this change, the right page table of contents now shows subheadings! You can click the + or - to expand it.

Screenshot 2023-05-04 at 1 02 48 PM

Copy link
Collaborator

@javabster javabster left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@Eric-Arellano Eric-Arellano merged commit 97f2029 into Qiskit:main May 4, 2023
@Eric-Arellano Eric-Arellano deleted the fix-console-errors branch May 4, 2023 19:35
Eric-Arellano added a commit that referenced this pull request May 17, 2023
Closes #335.

I git bisected this to
#292. Before, we
weren't actually fully running `theme.js` because JavaScript errors
prevented the file from fully executing. @coruscating identified that
before the regression, the HTML elements did not have the class
`.has-code`, but after they did. I suspect `theme.js` is responsible for
that (but I couldn't figure out how!)

Either way, these rules about `.has-code` are bad. We should not be
setting links to be blue.
Eric-Arellano added a commit to Eric-Arellano/qiskit_sphinx_theme that referenced this pull request May 17, 2023
Closes Qiskit#335.

I git bisected this to
Qiskit#292. Before, we
weren't actually fully running `theme.js` because JavaScript errors
prevented the file from fully executing. @coruscating identified that
before the regression, the HTML elements did not have the class
`.has-code`, but after they did. I suspect `theme.js` is responsible for
that (but I couldn't figure out how!)

Either way, these rules about `.has-code` are bad. We should not be
setting links to be blue.
HuangJunye pushed a commit that referenced this pull request May 18, 2023
Closes #335.

I git bisected this to
#292. Before, we
weren't actually fully running `theme.js` because JavaScript errors
prevented the file from fully executing. @coruscating identified that
before the regression, the HTML elements did not have the class
`.has-code`, but after they did. I suspect `theme.js` is responsible for
that (but I couldn't figure out how!)

Either way, these rules about `.has-code` are bad. We should not be
setting links to be blue.
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.

2 participants