about summary refs log tree commit diff
path: root/src/bootstrap/doc.rs
AgeCommit message (Collapse)AuthorLines
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
2018-04-03Refactor to use a dry-run config instead of cfg(test)Mark Simulacrum-15/+20
This ensures that each build will support the testing design of "dry running" builds. It's also checked that a dry run build is equivalent step-wise to a "wet" run build; the graphs we generate when running are directly compared node/node and edge/edge, both for order and contents.
2018-04-03Stub out less codeMark Simulacrum-1/+0
2018-04-03Stub out various functions during testingMark Simulacrum-0/+1
2018-03-28Add docs for the test crate with the std docsOliver Middleton-1/+4
If the compiler docs aren't going to include the test crate then it may as well be included with std.
2018-03-22Remove std/test documentation from compiler docs.David Wood-12/+4
2018-03-22Only generate documentation for local rustc crates.David Wood-4/+31
2018-03-21Add support to rustbuild for a 'rustc docs' component tarballDavid Wood-29/+104
2018-03-09rustbuild: Fix MSBuild location of `llvm-config.exe`Alex Crichton-1/+1
For LLD integration the path to `llvm-config` needed to change to inside the build directory itself (for whatever reason) but the build directory is different on MSBuild than it is on `ninja` for MSVC builds, so the path to `llvm-config.exe` was actually wrong and not working! This commit removes the `Build::llvm_config` function in favor of the source of truth, the `Llvm` build step itself. The build step was then updated to find the right build directory for MSBuild as well as `ninja` for where `llvm-config.exe` is located. Closes #48749
2018-03-02Don't produce TOCs for doc markdown filessteveklabnik-0/+1
Currently, we are producing headers for markdown files, which is generally not what we want. As such, passing this flag causes them to render normally.
2018-02-11Change Step to be invoked with a path when in default mode.Mark Simulacrum-1/+1
Previously, a Step would be able to tell on its own when it was invoked "by-default" (that is, `./x.py test` was called instead of `./x.py test some/path`). This commit replaces that functionality, invoking each Step with each of the paths it has specified as "should be invoked by." For example, if a step calls `path("src/tools/cargo")` and `path("src/doc/cargo")` then it's make_run will be called twice, with "src/tools/cargo" and "src/doc/cargo." This makes it so that default handling logic is in builder, instead of spread across various Steps. However, this meant that some Step specifications needed to be updated, since for example `rustdoc` can be built by `./x.py build src/librustdoc` or `./x.py build src/tools/rustdoc`. A `PathSet` abstraction is added that handles this: now, each Step can not only list `path(...)` but also `paths(&[a, b, ...])` which will make it so that we don't invoke it with each of the individual paths, instead invoking it with the first path in the list (though this shouldn't be depended on). Future work likely consists of implementing a better/easier way for a given Step to work with "any" crate in-tree, especially those that want to run tests, build, or check crates in the std, test, or rustc crate trees. Currently this is rather painful to do as most of the logic is duplicated across should_run and make_run. It seems likely this can be abstracted away into builder somehow.