diff options
| author | Michael Howell <michael@notriddle.com> | 2024-07-18 19:49:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 19:49:32 -0700 |
| commit | 0c932b763d24a9f57ce3285927ea54308b7be902 (patch) | |
| tree | 9b68be8870bda135ca722883a8a0c93a8d1857a2 | |
| parent | 2e1e6274306bed67291c1eefc7332d0bf972e6ac (diff) | |
| download | rust-0c932b763d24a9f57ce3285927ea54308b7be902.tar.gz rust-0c932b763d24a9f57ce3285927ea54308b7be902.zip | |
Rearrange sidebar modnav builder to more logical order
| -rw-r--r-- | src/librustdoc/html/static/js/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/js/main.js b/src/librustdoc/html/static/js/main.js index 116ce615d8c..9506bc9ed22 100644 --- a/src/librustdoc/html/static/js/main.js +++ b/src/librustdoc/html/static/js/main.js @@ -531,13 +531,13 @@ function preLoadCss(cssUrl) { link.href = path; link.textContent = name; const li = document.createElement("li"); - li.appendChild(link); - ul.appendChild(li); // Don't "optimize" this to just use `path`. // We want the browser to normalize this into an absolute URL. if (link.href === current_page) { li.classList.add("current"); } + li.appendChild(link); + ul.appendChild(li); } sidebar.appendChild(h3); sidebar.appendChild(ul); |
