online-judge-tools / verification-helper

a testing framework for snippet libraries used in competitive programming
MIT License
231 stars 56 forks source link

Bundle and Copy buttons doesn't show up in generated docs #398

Closed ngthanhtrung23 closed 2 years ago

ngthanhtrung23 commented 2 years ago

Summary / 概要

This issue seems to happen on my repo only (the issue doesn't happen on other repos I looked at, but I can't figure out why):

Click on any page, for example this one, you can see there is no "Bundle" and "Copy" buttons.

Developer console shows:

Mixed Content: The page at 'https://ngthanhtrung23.github.io/ACM_Notebook_new/DP/lis.h' was loaded over HTTPS, but requested an insecure script 'http://ngthanhtrung23.github.io/ACM_Notebook_new/assets/js/copy-button.js'. This request has been blocked; the content must be served over HTTPS.

Manually changing the link of the scripts to https like in this commit fixes the issue, but the change will be automatically overwrite when I push new code.

Steps to reproduce / 再現方法

  1. Go to my generated docs
  2. Click on any link
  3. See that there is no Bundle / Copy buttons

environments:

Run pip3 install -U online-judge-verify-helper
Collecting online-judge-verify-helper
  Downloading online_judge_verify_helper-5.6.0-py3-none-any.whl (57 kB)

Expected behavior / 期待される挙動

Bundle and Copy buttons should show up

Actual behavior / 実際の挙動

Bundle and Copy buttons doesn't show up

Other notes / その他

ngthanhtrung23 commented 2 years ago

As a workaround, I forked verification-helper repo and hard code the url: commit. So now this issue no longer happens for me.