mitaa
0e3a2c0167
Linkify associated types and constants
2016-03-27 00:21:00 +01:00
mitaa
1bd8183c15
Don't hardcode item-type anchor ids
...
These should always correspond to the values in `ItemType::to_static_str`
2016-03-27 00:21:00 +01:00
mitaa
3e33ef4c42
Correct anchor for links to associated trait items
2016-03-27 00:20:55 +01:00
Novotnik, Petr
88ab9382ae
Avoid page reload upon hitting "S" when browing in local mode
2016-03-25 21:35:10 +01:00
bors
98f0a9128f
Auto merge of #32454 - eddyb:rollup, r=eddyb
...
Rollup of 11 pull requests
- Successful merges: #32404 , #32420 , #32423 , #32425 , #32429 , #32430 , #32431 , #32434 , #32437 , #32441 , #32443
- Failed merges:
2016-03-23 12:33:04 -07:00
Jorge Aparicio
2628f3cc8f
fix alignment
2016-03-22 22:03:54 -05:00
Jorge Aparicio
0f02309e4b
try! -> ?
...
Automated conversion using the untry tool [1] and the following command:
```
$ find -name '*.rs' -type f | xargs untry
```
at the root of the Rust repo.
[1]: https://github.com/japaric/untry
2016-03-22 22:01:37 -05:00
mitaa
4c71347e94
Consider doc(no_inline)
in crate-local inlining
2016-03-22 21:11:00 +01:00
York Xiang
2910c00206
Fix usability problem when browse document locally
2016-03-18 00:49:15 +09:00
mitaa
f1cf2a6fcb
rustdoc: correct src-link url
2016-03-08 08:07:57 +01:00
bors
21fb3ce71b
Auto merge of #31967 - mitaa:rdoc-refactor, r=alexcrichton
...
This is mostly cleanup of individual code bits and code reuse for `clean::Attribute` handling.
The only change in behaviour should be that emitted sources are now being recorded and queried when trying to create src-links to local source-files.
r? @alexcrichton
2016-03-06 09:16:32 +00:00
mitaa
938c8c18c4
This doesn't seem necessary?
2016-03-04 19:40:01 +01:00
mitaa
d78f19ebbd
Use const instead of function
2016-03-04 19:40:00 +01:00
mitaa
032156210d
Use Item::is_*
methods consistently
2016-03-04 19:40:00 +01:00
mitaa
2a28b69948
Refactor rustdocs attribute handling
2016-03-04 19:39:52 +01:00
mitaa
8f6e09a956
Simplify if let
/match
expressions
2016-03-04 19:07:35 +01:00
mitaa
62267470f6
Refactor src-link creation for local sources
...
Since we emit the sources beforhand we actually **know** whether we
can safely create src-links to these files and where they are stored.
2016-03-03 16:11:10 +01:00
gohyda
311ff0367d
Responsive layout correction.
2016-03-03 04:46:30 +01:00
mitaa
0b3bc9b5e2
Correct plain-summary-line
...
For plaintext we don't actually need to render the Markdown before
shortening the string. (and this may have led to wrong output)
2016-02-27 06:42:30 +01:00
mitaa
2352c1c539
Clearly separate code blocks from other blocks
...
For summary descriptions we need the first paragraph (adjacent lines
until a blank line) - but the rendered markdown of a code block did not
leave a blank line in the html and was thus included in the summary line.
2016-02-27 06:42:21 +01:00
Manish Goregaokar
e584a492f3
Rollup merge of #31837 - mitaa:rdoc-inherent-assoc, r=alexcrichton
...
This effectively only records associated items from either inherent impls or trait definitions in the search-index.
fixes #31808
r? @alexcrichton
2016-02-25 15:06:07 +05:30
Manish Goregaokar
6078a86e2d
Rollup merge of #31835 - mitaa:rdoc-global-src, r=alexcrichton
...
fixes #26995
r? @alexcrichton
2016-02-25 15:06:07 +05:30
mitaa
cf76fcf30d
Fix source-links for files with absolute-paths
...
`clean_srcpath` tries to make the source-path relative to `src_root`,
but this didn't work since `src_root` itself wasn't absolute.
2016-02-24 19:43:02 +01:00
mitaa
27ca2507de
Allow creation of src-links for device files
2016-02-24 19:41:56 +01:00
mitaa
f5df7e0865
Show associated types in inherent impls
2016-02-23 21:47:18 +01:00
mitaa
b38a856e38
Don't show associated consts from trait impls
2016-02-23 21:47:13 +01:00
mitaa
9d3bce38b4
Don't record self parameter for static methods
2016-02-23 12:17:12 +01:00
bors
37c6f2881c
Auto merge of #31715 - mitaa:rdoc-index-crate, r=alexcrichton
...
This allows to search for crates in documentation and simplifies the json serialization of the search-index.
fixes #14077
2016-02-22 23:13:08 +00:00
mitaa
81f673d3bc
Simplify search-index serialization
2016-02-22 20:07:09 +01:00
mitaa
810a514029
Add crates to search-index
2016-02-16 20:00:57 +01:00
Brandon W Maister
17691af38d
doc pages: add the ability to search unknown types
...
This enables `*` in all type positions in doc searches, which I often
want in order to find functions that create or convert specific
types (e.g. `* -> vec`) but I don't actually know what kinds of input
they expect.
I actually started working on this because of #31598 , but I've wanted it
several times when exploring new crates.
2016-02-16 04:10:30 +05:30
bors
f3619ce026
Auto merge of #31626 - mitaa:rdoc-srch-escape, r=alexcrichton
...
Maybe they should be Markdown rendered instead, though that doesn't really seem to work all that well.
fixes #31059
r? @alexcrichton
2016-02-14 12:13:58 +00:00
bors
083dc5b12d
Auto merge of #31614 - mitaa:rdoc_locitem_extmac, r=alexcrichton
...
fixes #26606
r? @alexcrichton
2016-02-14 10:10:50 +00:00
bors
6e446532e8
Auto merge of #31602 - mitaa:rdoc_doc_shorter, r=alexcrichton
...
fixes #25787
fixes #30366
r? @alexcrichton
2016-02-13 21:43:28 +00:00
bors
c438802aa7
Auto merge of #31596 - mitaa:rdoc_assoc_item, r=alexcrichton
2016-02-13 19:28:09 +00:00
mitaa
dcb352647b
Escape search-index item descriptions
...
The item descriptions are included verbatim in search results
causing certain character sequences to misbehave.
2016-02-13 11:27:53 +01:00
mitaa
a31d63320f
Omit src-links for items from extern macros
...
If the span of a local item points into an external macro
its source-file will be bogus.
2016-02-12 22:45:17 +01:00
bors
ce4b75f256
Auto merge of #30726 - GuillaumeGomez:compile-fail, r=brson
...
r? @brson
cc @alexcrichton
I still need to add error code explanation test with this, but I can't figure out a way to generate the `.md` files in order to test example source codes.
Will fix #27328 .
2016-02-12 18:25:08 +00:00
mitaa
5c98ae34a6
Shorten docstrings after Markdown rendering
2016-02-12 14:12:27 +01:00
mitaa
938202c81f
Fix associated item identifiers
...
Search results use the mapping found in `ItemType::to_static_str` for
the identifier, which could not be found on the page in the case of
associated items.
2016-02-12 10:26:46 +01:00
Alex Crichton
eac0a8bc30
bootstrap: Add directives to not double-link libs
...
Have all Cargo-built crates pass `--cfg cargobuild` and then add appropriate
`#[cfg]` definitions to all crates to avoid linking anything if this is passed.
This should help allow libstd to compile with both the makefiles and with Cargo.
2016-02-11 11:12:32 -08:00
Wesley Wiser
75acee2bde
Rustdoc - display since
version for stable items
...
Fixes #27607
2016-02-09 21:20:41 -05:00
Guillaume Gomez
eb7664b445
Fix librustdoc test
2016-02-09 13:54:30 +01:00
Guillaume Gomez
194f1ca3f1
Check if we're not in stable to allow compile_fail option in rustdoc --test
2016-02-09 12:29:53 +01:00
Guillaume Gomez
ed6b575648
Update Makefile
2016-02-09 05:22:24 +01:00
Guillaume Gomez
eb5b9037ad
Add compile-fail test in rustdoc
2016-02-07 13:03:32 +01:00
Brandon W Maister
d59372b7aa
Decide to hide constness only in fn/method renders
...
ConstnessSpace has no knowledge of the type of item it's modifying, so
hide the constness a level up.
2016-02-01 13:05:37 -05:00
Brandon W Maister
cea8f67199
Don't show const
in docs when it's not available
...
Fixes #31098
2016-01-31 15:48:08 -05:00
Oliver Middleton
ad5ab2f360
rustdoc: Add missing trailing comma for single element tuples
2016-01-28 21:02:22 +00:00
Steve Klabnik
b1e5af4872
Rollup merge of #31055 - steveklabnik:alt-tags, r=alexcrichton
2016-01-23 09:38:42 -05:00