summary refs log tree commit diff
path: root/mk/docs.mk
AgeCommit message (Collapse)AuthorLines
2015-04-07mk: Stop documenating non-facade cratesAlex Crichton-3/+5
This commit ceases documentation-by-default of crates such as `term`, `serialize`, and `alloc`. Crates like `term` and `rand` have duplicates on `crates.io` and the search index entries generated in the local tree end up only leading to confusion. Crates like the entire compiler infrastructure, `flate`, or `rbml` don't need to be documented in such a prominent location. This change also means that doc tests will no longer be run for crates beyond the facade (e.g. `serialize` or `term`), but there were very few doc tests in there to begin with. Closes #22168
2015-04-07mk: Pass the same flags to rustdoc as rustcAlex Crichton-1/+1
This ensures that def ids don't drift too much over time. Closes #15309
2015-03-29mk: don't build docs for internal or behind-the-facade crates in beta/stableCorey Richardson-1/+4
This saves a bunch of a time and will make distributions smaller, as well as avoiding filling the implementors page with internal garbage. Turn it back on with `--enable-compiler-docs` if you want compiler docs during development. Crates behind the facade are only documented on nightly/dev builds (where they can be used). [breaking-change] Closes #23772 Closes #21297
2015-03-04std: Deprecate std::old_io::fsAlex Crichton-0/+2
This commit deprecates the majority of std::old_io::fs in favor of std::fs and its new functionality. Some functions remain non-deprecated but are now behind a feature gate called `old_fs`. These functions will be deprecated once suitable replacements have been implemented. The compiler has been migrated to new `std::fs` and `std::path` APIs where appropriate as part of this change.
2015-02-17rollup merge of #22331: steveklabnik/guidelinesAlex Crichton-1/+7
Fixes #19315 r? @aturon
2015-02-17Fix removal of complement-bugreport.mdManish Goregaokar-1/+1
2015-02-17Rollup merge of #22326 - semarie:compat-cp, r=alexcrichtonManish Goregaokar-4/+4
`cp -a` is a GNU extension. Use an alternate combinaison of POSIX options (`-PRp`) that do nearly the same. The difference is `-a` will preserve context, links and xattr attributes, whereas `-p` not. But as we use it only for copy a file, there is no difference in the current context.
2015-02-16Import rust-guidlinesSteve Klabnik-1/+7
at https://github.com/rust-lang/rust-guidelines/commit/16fa41b3b091e7e532c809c7145dd88b8e4a5513 Fixes #19315
2015-02-14docs.mk: use posix arguments for cpSébastien Marie-4/+4
`cp -a` is a GNU extension. Use an alternate combinaison of POSIX options (`-PRp`) that do nearly the same. The difference is `-a` will preserve context, links and xattr attributes, whereas `-p` not. But as we use it only for copy a file, there is no difference in the current context.
2015-02-13Generate grammar.html and link to it from the reference.Steve Klabnik-1/+1
Fixes #19278
2015-02-11docs: disable PDF docs when latex _isn't_ presentTim Cuthbertson-1/+1
2015-02-05Only accept xelatex for building PDF docsSteve Klabnik-17/+6
None of the others work, so let's remove them. Fixes #17220.
2015-01-09Ensure that the book is built after the doc/ directory.Huon Wilson-1/+1
Without this, rustbook was failing because it was expecting the directory to exist. (Previously, rustbook was just silently failing to install the CSS files due to this.)
2015-01-09Add stub deprecation files for each of the old guides.Huon Wilson-0/+6
There are hundreds of stackoverflow answers, reddit posts and blog articles that link to these documents, so it's a nicer user experience if they're not plain 404s. The intention is to let these hang around only for relatively short while. The alpha is likely to bring in many new users and they will be reading the documents mentioned above.
2015-01-08Fix dead links in the guide and reorganizeAlex Crichton-3/+2
2015-01-08"The Rust Programming Language"Steve Klabnik-8/+19
This pulls all of our long-form documentation into a single document, nicknamed "the book" and formally titled "The Rust Programming Language." A few things motivated this change: * People knew of The Guide, but not the individual Guides. This merges them together, helping discoverability. * You can get all of Rust's longform documentation in one place, which is nice. * We now have rustbook in-tree, which can generate this kind of documentation. While its style is basic, the general idea is much better: a table of contents on the left-hand side. * Rather than a almost 10,000-line guide.md, there are now smaller files per section.
2015-01-05rollup merge of #19998: th0114nd/unicode-bottomAlex Crichton-3/+8
In the HTML version of the documentation, it isn't rendered so might as well use the unicode representation.
2014-12-28mk: Stop generating docs for deprecated cratesAlex Crichton-1/+2
These crates are all deprecated for their rust-lang/$crate equivalents and by generating docs we're generating broken links. The documentation for these crates are generated out-of-tree and are managed separately, so we're not losing the documentation altogether, just the links from the main distribution's docs. Closes #20096
2014-12-19Changed LaTex $\bot$s to ⊥th0114nd-3/+8
In the HTML version of the documentation, it isn't rendered so might as well use the unicode representation. Part of the problem was that putting a math unicode character wasn't rendering properly in the pdf, so extra steps were needed to define the unicode charecter ⊥ in reference.tex closes #15285
2014-12-17remove l10nSteve Klabnik-34/+0
2014-12-04auto merge of #18613 : steveklabnik/rust/ownership_guide, r=huonwbors-1/+1
This is a work in progress, but this should get *extensive* review, so I'm putting it up early and often. This is the start of a draft of the new 'ownership guide,' which explains ownership, borrowing, etc. I'm feeling better about this framing than last time's, but we'll see.
2014-11-26rollup merge of #19322: DiamondLovesYou/multi-llvmdepsAlex Crichton-1/+2
2014-11-26Lifetime guide -> ownership guideSteve Klabnik-1/+1
2014-11-25Don't use the same llvmdeps.rs for every host.Richard Diamond-1/+2
2014-11-24remove the generation of grammar from the referenceSteve Klabnik-20/+0
2014-11-18New guide: error handlingSteve Klabnik-1/+1
2014-11-07Guide: Puts the toc again in the docgamazeps-3/+3
Closes #17505
2014-10-23build the crates guideSteve Klabnik-1/+1
2014-10-10Remove the runtime guide.Steve Klabnik-1/+1
Now that libgreen is gone, this is all wrong. Fixes #17923
2014-10-04docs: Fix short hash link to githubBrian Campbell-2/+2
The escaped newline in the middle of the variable reference breaks the short hash substitution, leaving the link text exmpty; rewrap so that each replacement is on its own line.
2014-10-01Add a guide to compiler pluginsKeegan McAllister-1/+1
Fixes #16983.
2014-09-22manual -> reference & formattingSteve Klabnik-2/+2
'reference' sounds better than 'manual' to me here, and rust.html is certainly wrong. I also wrapped everything to 80 cols.
2014-09-11only deprecate the guide rather than :fire: :fire: :fire:Steve Klabnik-1/+1
2014-09-11Replace the Tutorial with the Guide.Steve Klabnik-6/+5
The Guide isn't 100% perfect, but it's basically complete. It's certainly better than the tutorial is. Time to start pointing more people its way. I also just made it consistent to call all things 'guides' rather than tutorials. Fixes #9874. This is the big one. And two bugs that just go away. Fixes #14503. Fixes #15009.
2014-09-09Prefer lualatex, xelatex, pdflatex, in that order. #12804Brian Anderson-7/+21
2014-08-01mk: Add missing colonBrian Anderson-1/+1
2014-07-23mk: Add space before line continuation backslashBirunthan Mohanathas-2/+2
2014-07-21rustc: Print a smaller hash on -vAlex Crichton-2/+2
The long hash just takes up space and you can discover the main hash through the `rustc --version verbose` command.
2014-07-18Include Strings guide with the others.Steve Klabnik-1/+1
Three small changes: 1. Re-organize headers in the Strings guide so they show up correctly. 2. build the strings guide with the other docs 3. include the strings guide in the list of guides
2014-06-30Allow external html in rustdoc for crates.zzmp-4/+4
Updated documentation to reflect md->html. Modularized external file loading.
2014-06-24Add the Guide, add warning to tutorial.Steve Klabnik-1/+1
In line with what @brson, @cmr, @nikomatsakis and I discussed this morning, my redux of the tutorial will be implemented as the Guide. This way, I can work in small iterations, rather than dropping a huge PR, which is hard to review. In addition, the community can observe my work as I'm doing it. This adds a note in line with [this comment][reddit] that clarifies the state of the tutorial, and the community's involvement with it. [reddit]: http://www.reddit.com/r/rust/comments/28bew8/rusts_documentation_is_about_to_drastically/ci9c98k
2014-06-24Remove the cheat sheet.Steve Klabnik-1/+1
Rust by Example is far better. Fixes #14380.
2014-06-09mk: Ensure docs have relative links to each otherAlex Crichton-2/+6
When generating documentation, rustdoc has the ability to generate relative links within the current distribution of crates to one another. To do this, it must recognize when a crate's documentation is in the same output directory. The current threshold for "local documentation for crate X being available" is whether the directory "doc/X" exists. This change modifies the build system to have new dependencies for each directory of upstream crates for a rustdoc invocation. This will ensure that when building documentation that all the crates in the standard distribution are guaranteed to have relative links to one another. This change is prompted by guaranteeing that offline docs always work with one another. Before this change, races could mean that some docs were built before others, and hence may have http links when relative links would suffice. Closes #14747
2014-06-06rustdoc: Submit examples to play.rust-lang.orgAlex Crichton-1/+3
This grows a new option inside of rustdoc to add the ability to submit examples to an external website. If the `--markdown-playground-url` command line option or crate doc attribute `html_playground_url` is present, then examples will have a button on hover to submit the code to the playground specified. This commit enables submission of example code to play.rust-lang.org. The code submitted is that which is tested by rustdoc, not necessarily the exact code shown in the example. Closes #14654
2014-06-01mk: Less noisy rustdoc invocationsAlex Crichton-3/+5
2014-05-27mk: Don't build any docs with --disable-docs.Luqman Aden-0/+1
2014-05-25doc: add a new language design faqCorey Richardson-2/+2
This indends to help quell frequently answered questions about the language design in a single, authoritative place.
2014-05-21Change static.rust-lang.org to doc.rust-lang.orgAlex Crichton-1/+1
The new documentation site has shorter urls, gzip'd content, and index.html redirecting functionality.
2014-05-15Render not_found with an absolute path to the rust stylesheetRicho Healey-3/+9
2014-05-13docs: Add a not found pageRicho Healey-1/+1