ability to specify the `nav` element
オープン
enhancement
- 主要言語
- JavaScript
- スター
- 31.5k
- フォーク
- 5.8k
- 平均マージ
- 9日 8時間
- マージ済み PR(30日)
- 2
説明
I'm trying to embed docsify within an existing template, but I'm having a problem where docsify is hijacking my template's `` tag.
Looking through the source, it seems like docsify [chooses the first ``](https://github.com/docsifyjs/docsify/blob/master/src/core/render/index.js#L404) on the page.
Is there any chance we could get a `nav_el` config option that lets us specify the id of the `` element we want to use?
コントリビューションガイド
調査の方向性
docsify が最初の 要素を選択する src/core/render/index.js の 404 行目から始めます。設定がどのように読み取られ、そのナビゲーション要素がどのように選択されるかを追跡します。埋め込まれた docsify インスタンスが、ホストテンプレート内の別の を乗っ取ることなく、指定された nav 要素を対象にできる任意の nav_el 設定があれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 52/100