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

0.1.9-p.1で生成したTRPL2で検索機能が起動しない(JavaScritp ReferenceError) #1

Open
tatsuya6502 opened this issue Jan 12, 2021 · 1 comment
Assignees

Comments

@tatsuya6502
Copy link
Member

TRPL2 サイトを再生成するためにmdBook 0.1.9にCVE-2020-26297の対応コミットを0.4.5からback port(単にgit cherry-pick)した。しかし、そのmdBookで生成したTRPL2ではページのロード時に以下のエラーが起こり、検索機能が起動しない。

searcher.js:470:5 --
Uncaught ReferenceError: path_to_root is not defined
    search https://doc.rust-jp.rs/book/second-edition/searcher.js:470
    <anonymous> https://doc.rust-jp.rs/book/second-edition/searcher.js:482

バージョンなど:

@tatsuya6502 tatsuya6502 self-assigned this Jan 12, 2021
@tatsuya6502
Copy link
Member Author

本件、簡単に直せそうですが、以下のように実害がないことから優先度を落として対応します。

  • セキュリティー脆弱性(CVE-2020-26297)自体の対応はできている
  • TRPL2では検索のニーズ自体がない。(各ページにTRPL最新版への案内リンクを表示しており、最新版を読むように促している)

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

No branches or pull requests

1 participant