mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
Replace current crate's searchIndex when regenerating
This commit is contained in:
parent
748d354af3
commit
3d8a066fa1
@ -964,7 +964,7 @@ themePicker.onblur = handleThemeButtonsBlur;
|
|||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join(",")));
|
.join(",")));
|
||||||
}
|
}
|
||||||
all_aliases.push(format!("ALIASES['{}'] = {{{}}};", krate.name, output));
|
all_aliases.push(format!("ALIASES[\"{}\"] = {{{}}};", krate.name, output));
|
||||||
all_aliases.sort();
|
all_aliases.sort();
|
||||||
try_err!(writeln!(&mut w, "var ALIASES = {{}};"), &dst);
|
try_err!(writeln!(&mut w, "var ALIASES = {{}};"), &dst);
|
||||||
for aliases in &all_aliases {
|
for aliases in &all_aliases {
|
||||||
@ -1038,7 +1038,7 @@ themePicker.onblur = handleThemeButtonsBlur;
|
|||||||
|
|
||||||
let dst = cx.dst.join("source-files.js");
|
let dst = cx.dst.join("source-files.js");
|
||||||
let (mut all_sources, _krates) = try_err!(collect(&dst, &krate.name, "sourcesIndex"), &dst);
|
let (mut all_sources, _krates) = try_err!(collect(&dst, &krate.name, "sourcesIndex"), &dst);
|
||||||
all_sources.push(format!("sourcesIndex['{}'] = {};",
|
all_sources.push(format!("sourcesIndex[\"{}\"] = {};",
|
||||||
&krate.name,
|
&krate.name,
|
||||||
hierarchy.to_json_string()));
|
hierarchy.to_json_string()));
|
||||||
all_sources.sort();
|
all_sources.sort();
|
||||||
|
Loading…
Reference in New Issue
Block a user