summary refs log tree commit diff
path: root/mk/docs.mk
AgeCommit message (Collapse)AuthorLines
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
2014-05-03rustdoc: Fix inclusion of the new fontsAlex Crichton-20/+0
These fonts were moved into place by rust's makefiles, but rustdoc is widely used outside of rustc itself. This moves the fonts into the rustdoc binary, similarly to the other static assets, and writes them to the output location whenever rustdoc generates documentation. Closes #13593 Closes #13787
2014-04-25doc,rustdoc: store webfonts locallyAdrien Tétar-0/+20
- Avoids cross-domain requests restrictions - Better availability of content - No HTML queries needed for an offline build
2014-04-15auto merge of #13416 : brson/rust/30min, r=alexcrichtonbors-1/+1
This is intended to be the first thing somebody new to the language reads about Rust. It is supposed to be simple and intriguing, to give the user an idea of whether Rust is appropriate for them, and to hint that there's a lot of cool stuff to learn if they just keep diving deeper. I'm particularly happy with the sequence of concurrency examples.
2014-04-10mk: Add a dummy CFG_COMPILER_HOST_TRIPLE to rustdoc invocation.Kang Seonghoon-0/+1
Otherwise it will prohibit `make compiler-docs` on Windows.
2014-04-09doc: Add "A 30-minute Introduction to Rust"Brian Anderson-1/+1
By Steve Klabnik.
2014-04-03std: Document builtin syntax extensionsAlex Crichton-1/+1
These syntax extensions need a place to be documented, and this starts passing a `--cfg dox` parameter to `rustdoc` when building and testing documentation in order to document macros so that they have no effect on the compiled crate, but only documentation. Closes #5605
2014-03-27verify-grammar path to rust.mdJan Kobler-1/+1
When calling make verify-grammar rust.md cannot be found, because the path to rust.md is missing. The path is set to: $(D)/rust.md This can only be tested, when llnextgen is installed. Signed-off-by: Jan Kobler <eng1@koblersystems.de>
2014-03-15docs: begin a "low-level & unsafe code" guide.Huon Wilson-1/+2
This aims to cover the basics of writing safe unsafe code. At the moment it is just designed to be a better place for the `asm!()` docs than the detailed release notes wiki page, and I took the time to write up some other things. More examples are needed, especially of things that can subtly go wrong; and vast areas of `unsafe`-ty aren't covered, e.g. `static mut`s and thread-safety in general.
2014-03-12Test fixes from rolling up PRsAlex Crichton-2/+2
Closes #12803 (std: Relax an assertion in oneshot selection) r=brson Closes #12818 (green: Fix a scheduler assertion on yielding) r=brson Closes #12819 (doc: discuss try! in std::io) r=alexcrichton Closes #12820 (Use generic impls for `Hash`) r=alexcrichton Closes #12826 (Remove remaining nolink usages) r=alexcrichton Closes #12835 (Emacs: always jump the cursor if needed on indent) r=brson Closes #12838 (Json method cleanup) r=alexcrichton Closes #12843 (rustdoc: whitelist the headers that get a § on hover) r=alexcrichton Closes #12844 (docs: add two unlisted libraries to the index page) r=pnkfelix Closes #12846 (Added a test that checks that unary structs can be mutably borrowed) r=sfackler Closes #12847 (mk: Fix warnings about duplicated rules) r=nmatsakis
2014-03-12mk: Fix warnings about duplicated rulesAlex Crichton-4/+4
The footer.tex rule didn't depend on $(1) of the macro it was being defined in, so it was getting duplicated, causing many warnings.
2014-03-11doc: remove outdated tutorial entry, restore removed Makefile entriesAdrien Tétar-3/+3
2014-03-11doc: auto-generate LaTeX includesAdrien Tétar-8/+8
2014-03-09doc: have a real switch b/w LaTeX compilersAdrien Tétar-12/+14
2014-03-09doc: remove node.js dependencyAdrien Tétar-10/+3
`prep.js` outputs its own HTML directives, which `pandoc` cannot recognize when converting the document into LaTeX (this is why the PDF docs have never been highlighted as of now). Note that if we were to add the `.rust` class to snippets, we could probably use pandoc's native highlighting capatibilities i.e. Kate.