Rollup merge of #46824 - GuillaumeGomez:doc-sidebar, r=QuietMisdreavus
Fix dynamic crates listing in doc sidebar Fixes #46687. r? @QuietMisdreavus
This commit is contained in:
@@ -1446,7 +1446,7 @@
|
|||||||
|
|
||||||
// Draw a convenient sidebar of known crates if we have a listing
|
// Draw a convenient sidebar of known crates if we have a listing
|
||||||
if (rootPath === '../') {
|
if (rootPath === '../') {
|
||||||
var sidebar = document.getElementsByClassName('sidebar')[0];
|
var sidebar = document.getElementsByClassName('sidebar-elems')[0];
|
||||||
var div = document.createElement('div');
|
var div = document.createElement('div');
|
||||||
div.className = 'block crate';
|
div.className = 'block crate';
|
||||||
div.innerHTML = '<h3>Crates</h3>';
|
div.innerHTML = '<h3>Crates</h3>';
|
||||||
|
|||||||
Reference in New Issue
Block a user