1
Fork 0

rustdoc: Removed command line option issue-tracker-base-url

This commit is contained in:
Martin Wernstål 2015-08-17 20:24:28 +02:00
parent d893145cae
commit 10d08f0466
2 changed files with 3 additions and 7 deletions

View file

@ -306,8 +306,7 @@ thread_local!(pub static CURRENT_LOCATION_KEY: RefCell<Vec<String>> =
pub fn run(mut krate: clean::Crate,
external_html: &ExternalHtml,
dst: PathBuf,
passes: HashSet<String>,
issue_tracker_base_url: Option<String>) -> io::Result<()> {
passes: HashSet<String>) -> io::Result<()> {
let src_root = match krate.src.parent() {
Some(p) => p.to_path_buf(),
None => PathBuf::new(),
@ -327,7 +326,7 @@ pub fn run(mut krate: clean::Crate,
},
include_sources: true,
render_redirect_pages: false,
issue_tracker_base_url: issue_tracker_base_url,
issue_tracker_base_url: None,
};
try!(mkdir(&cx.dst));

View file

@ -179,8 +179,6 @@ pub fn opts() -> Vec<getopts::OptGroup> {
"FILES"),
optopt("", "markdown-playground-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")
)
}
@ -287,8 +285,7 @@ pub fn main_args(args: &[String]) -> isize {
Some("html") | None => {
match html::render::run(krate, &external_html,
output.unwrap_or(PathBuf::from("doc")),
passes.into_iter().collect(),
matches.opt_str("issue-tracker-base-url")) {
passes.into_iter().collect()) {
Ok(()) => {}
Err(e) => panic!("failed to generate documentation: {}", e),
}