rustdoc: Removed command line option issue-tracker-base-url
This commit is contained in:
parent
d893145cae
commit
10d08f0466
2 changed files with 3 additions and 7 deletions
|
@ -306,8 +306,7 @@ thread_local!(pub static CURRENT_LOCATION_KEY: RefCell<Vec<String>> =
|
||||||
pub fn run(mut krate: clean::Crate,
|
pub fn run(mut krate: clean::Crate,
|
||||||
external_html: &ExternalHtml,
|
external_html: &ExternalHtml,
|
||||||
dst: PathBuf,
|
dst: PathBuf,
|
||||||
passes: HashSet<String>,
|
passes: HashSet<String>) -> io::Result<()> {
|
||||||
issue_tracker_base_url: Option<String>) -> io::Result<()> {
|
|
||||||
let src_root = match krate.src.parent() {
|
let src_root = match krate.src.parent() {
|
||||||
Some(p) => p.to_path_buf(),
|
Some(p) => p.to_path_buf(),
|
||||||
None => PathBuf::new(),
|
None => PathBuf::new(),
|
||||||
|
@ -327,7 +326,7 @@ pub fn run(mut krate: clean::Crate,
|
||||||
},
|
},
|
||||||
include_sources: true,
|
include_sources: true,
|
||||||
render_redirect_pages: false,
|
render_redirect_pages: false,
|
||||||
issue_tracker_base_url: issue_tracker_base_url,
|
issue_tracker_base_url: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
try!(mkdir(&cx.dst));
|
try!(mkdir(&cx.dst));
|
||||||
|
|
|
@ -179,8 +179,6 @@ pub fn opts() -> Vec<getopts::OptGroup> {
|
||||||
"FILES"),
|
"FILES"),
|
||||||
optopt("", "markdown-playground-url",
|
optopt("", "markdown-playground-url",
|
||||||
"URL to send code snippets to", "URL"),
|
"URL to send code snippets to", "URL"),
|
||||||
optopt("", "issue-tracker-base-url",
|
|
||||||
"base URL for issue tracker", "URL"),
|
|
||||||
optflag("", "markdown-no-toc", "don't include table of contents")
|
optflag("", "markdown-no-toc", "don't include table of contents")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -287,8 +285,7 @@ pub fn main_args(args: &[String]) -> isize {
|
||||||
Some("html") | None => {
|
Some("html") | None => {
|
||||||
match html::render::run(krate, &external_html,
|
match html::render::run(krate, &external_html,
|
||||||
output.unwrap_or(PathBuf::from("doc")),
|
output.unwrap_or(PathBuf::from("doc")),
|
||||||
passes.into_iter().collect(),
|
passes.into_iter().collect()) {
|
||||||
matches.opt_str("issue-tracker-base-url")) {
|
|
||||||
Ok(()) => {}
|
Ok(()) => {}
|
||||||
Err(e) => panic!("failed to generate documentation: {}", e),
|
Err(e) => panic!("failed to generate documentation: {}", e),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue