about summary refs log tree commit diff
path: root/src/bootstrap/doc.rs
AgeCommit message (Collapse)AuthorLines
2019-03-28Rollup merge of #58848 - GuillaumeGomez:fix-cache-issues, ↵Mazdak Farrokhzad-8/+8
r=Mark-Simulacrum,ollie27 Prevent cache issues on version updates Fixes #58827. cc @rust-lang/infra
2019-03-26Fix error index CSS file nameGuillaume Gomez-0/+1
2019-03-26Add resource suffix for libtest and proc_macro as wellGuillaume Gomez-2/+2
2019-03-26Prevent cache issues on version updatesGuillaume Gomez-8/+7
2019-03-26Rollup merge of #59197 - kornelski:redir, r=steveklabnikGuillaume Gomez-2/+2
Exclude old book redirect stubs from search engines Adds `<meta name="robots" content="noindex,follow">` to the `<head>` of old stub pages pointing to the second edition of the book. This is continuation of https://github.com/rust-lang/book/pull/1788
2019-03-14Exclude old book redirect stubs from search enginesKornel-2/+2
2019-03-03Permit getting stage 0 rustdocMark Rousskov-4/+4
This allows us to e.g. test compiletest, including doctests, in stage 0 without building a fresh compiler and rustdoc.
2019-03-03Tools built by the bootstrap compiler must be built by itMark Rousskov-1/+5
This avoids building compilers that we don't need -- most tools will work just fine with the downloaded compiler.
2019-02-27Update edition-guideEric Huss-1/+1
2019-02-25bootstrap: deny(rust_2018_idioms)Taiki Endo-42/+47
2019-02-17Rollup merge of #57929 - GuillaumeGomez:rustodc-remove-old-style-files, ↵kennytm-3/+6
r=ollie27 Rustdoc remove old style files Reopening of #56577 (which I can't seem to reopen...). I made the flag unstable so with this change, what was blocking the PR is now gone I assume.
2019-02-10rustc: doc commentsAlexander Regueiro-4/+4
2019-02-04Add embedded bookJames Munns-4/+1
2019-01-31Add missing generation for test and proc_macro, remove old macro redirectionGuillaume Gomez-5/+6
2019-01-30No consumers of MdBook2 yetJames Munns-0/+4
2019-01-30Only the compatibility items from the embedded book PRJames Munns-8/+33
PR: https://github.com/rust-lang/rust/pull/56291
2019-01-27Add generate-old-style-files option to rustdocGuillaume Gomez-1/+3
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-10bootstrap: fix editionljedrz-7/+7
2018-12-07use top level `fs` functions where appropriateAndy Russell-8/+6
This commit replaces many usages of `File::open` and reading or writing with `fs::read_to_string`, `fs::read` and `fs::write`. This reduces code complexity, and will improve performance for most reads, since the functions allocate the buffer to be the size of the file. I believe that this commit will not impact behavior in any way, so some matches will check the error kind in case the file was not valid UTF-8. Some of these cases may not actually care about the error.
2018-12-06Rollup merge of #56441 - ollie27:rustbuild_compiler_docs, r=alexcrichtonPietro Albini-6/+11
rustbuild: Fix issues with compiler docs * Create output directories for crates beforehand so rustdoc uses relative links (fixes #56107) * Readd rustc_codegen_ssa (fixes #56196) * Don't build out of tree dependencies for rustdoc like we don't for rustc
2018-12-03Rollup merge of #56419 - mark-i-m:remove-try, r=Centrilkennytm-3/+3
Remove some uses of try!
2018-12-02rustbuild: Fix issues with compiler docsOliver Middleton-6/+11
* Create output directories for crates beforehand so rustdoc uses relative links * Readd rustc_codegen_ssa * Don't build out of tree dependencies for rustdoc like we don't for rustc
2018-12-01remove some uses of try!Mark Mansi-3/+3
2018-11-30Add the edition guide to doc.rust-lang.orgSteve Klabnik-0/+1
2018-11-20fix rustbuild to build all the booksSteve Klabnik-11/+15
2018-11-02Auto merge of #54543 - GuillaumeGomez:top-level-index, r=QuietMisdreavusbors-13/+22
Add index page argument @Mark-Simulacrum: I might need some help from you: in bootstrap, I want to add an argument (a new flag added into `rustdoc`) in order to generate the current index directly when `rustdoc` is documenting the `std` lib. However, my change in `bootstrap` didn't do it and I assume it must be moved inside the `Std` struct. But there, I don't see how to pass it to `rustdoc` through `cargo`. Did I miss anything? r? @QuietMisdreavus
2018-10-20Update Cargo, build curl/OpenSSL statically via featuresAlex Crichton-0/+1
In addition to to updating Cargo's submodule and Cargo's dependencies, this also updates Cargo's build to build OpenSSL statically into Cargo as well as libcurl unconditionally. This removes OpenSSL build logic from the bootstrap code, and otherwise requests that even on OSX we build curl statically.
2018-10-21Use markdown::render instead of using pulldown_cmark directlyGuillaume Gomez-3/+6
2018-10-21new version for bootstrapGuillaume Gomez-12/+17
2018-10-21Add index pageGuillaume Gomez-0/+1
2018-09-12clear_if_dirty in Builder::cargo with passed modeCollins Abitekaniza-10/+0
2018-08-24Added rustc_codegen_llvm to compiler documentation.David Wood-1/+1
2018-07-30Remove the unstable std_unicode crate, deprecated since 1.27Simon Sapin-1/+1
Its former contents are now in libcore.
2018-07-28Don't format!() string literalsljedrz-2/+2
2018-07-26Refactor is_external_tool into source_typeTatsuyuki Ishi-2/+2
2018-07-25Deny bare_trait_objects globallyTatsuyuki Ishi-0/+1
2018-07-03Compile stage0 tools with the raw bootstrap compilerAlex Crichton-2/+10
This commit updates the stage0 build of tools to use the libraries of the stage0 compiler instead of the compiled libraries by the stage0 compiler. This should enable us to avoid any stage0 hacks (like missing SIMD).
2018-06-03impl is_tool on Mode enumCollins Abitekaniza-2/+4
make is_tool inherent prop of mode fix errors from rebase resolve issues from review
2018-06-03refactor Mode enumCollins Abitekaniza-8/+8
2018-05-28Auto merge of #50892 - davidtwco:issue-50004, r=alexcrichtonbors-6/+82
Added rustdoc documentation to compiler docs. Fixes #50004. r? @alexcrichton (since you reviewed the last PR about compiler docs)
2018-05-22build the 2018 editionsteveklabnik-0/+6
2018-05-20Added rustdoc documentation step outputting into compiler documentation.David Wood-6/+82
2018-04-27Rollup merge of #49707 - steveklabnik:rustc-book, r=QuietMisdreavuskennytm-0/+1
Add "the Rustc book" This PR introduces a new book into the documentation, "The rustc book". We already have books for Cargo, and for Rustdoc, rustc should have some too. This book is focused on *users* of rustc, and provides a nice place to write documentation for users. I haven't put content here, but plan on scaffolding it out very soon, and wanted this PR open for a few discussions first. One of those is "what exactly should said TOC be?" I plan on having a proposed one up tomorrow, but figured I'd let people know to start thinking about it now. The big one is that we also will want to put https://github.com/rust-lang-nursery/rustc-guide in-tree as well, and the naming is... tough. I'm proposing: * doc.rust-lang.org/rustc is "The Rustc book", to mirror the other tools' books. * doc.rust-lang.org/rustc-contribution is "The Rustc contribution guide", and contains that book @nikomatsakis et al, any thoughts on this? I'm not attached to it in particular, but had to put something together to get this discussion going. I think mirroring the other tools is a good idea for this work, but am not sure where exactly that leaves yours. Fixes https://github.com/rust-docs/team/issues/11
2018-04-17Remove uses of Build across Builder stepsMark Simulacrum-115/+103
2018-04-14Rollup merge of #49465 - ollie27:rustbuild_test_docs, ↵kennytm-1/+4
r=steveklabnik,QuietMisdreavus,frewsxcv,GuillaumeGomez Add docs for the test crate with the std docs If the compiler docs aren't going to include the test crate then it may as well be included with std. Fixes #49388
2018-04-09Add rustc book to the build systemsteveklabnik-0/+1
2018-04-05Rollup merge of #49654 - davidtwco:issue-29893, r=alexcrichtonkennytm-0/+1
Host compiler documentation: Include private items Fixes #29893. Now that compiler documentation is being hosted, including private items seems sensible as these types are going to be being used by contributors working on the compiler. However, including this means that doc comments that contain codeblocks with invalid Rust and can fail the documenting of a given crate (as evidenced by the changes in the second commit included in this PR). We'd need some way of ensuring that this cannot happen so that these failures don't cause documenting to fail. I'm unsure whether this change to documentation steps will cause this to happen already or if something new will be required. r? @alexcrichton
2018-04-04Documenting private items in compiler docs.David Wood-0/+1
2018-04-03Avoid printing output when in dry run modeMark Simulacrum-12/+12