Jeffrey Seyfried
3bf9fc0c2a
Fix fallout in rustdoc
2016-04-14 04:53:33 +00:00
pierzchalski
d8d8669439
Delegate whether to print docblocks to 'document'
...
Add test to check this resolves #24838 and #26871 .
2016-04-14 13:57:01 +10:00
mitaa
ea83349c9f
Retire rustdocs ANALYSISKEY
...
The thread-local isn't needed and consists of mostly empty fields which
were just used to move the data into `html::render::CACHE_KEY`.
2016-04-13 19:39:17 +02:00
Jeffrey Seyfried
bb66d91c98
Make hir::Visibility non-copyable and add ty::Visibility
2016-04-07 04:31:45 +00:00
bors
a9f34c86a4
Auto merge of #32230 - GuillaumeGomez:extend_css, r=alexcrichton
...
Add --extend-css option to rustdoc
Fixes #32223
r? @brson
2016-04-06 17:11:44 -07:00
Guillaume Gomez
669edfaef4
Update to last rustdoc version
2016-04-06 12:40:23 +02:00
Eduard Burtescu
ffca6c3e15
rustc: move middle::{def,def_id,pat_util} to hir.
2016-04-06 09:14:21 +03:00
Eduard Burtescu
8b0937293b
rustc: move rustc_front to rustc::hir.
2016-04-06 09:01:55 +03:00
Manish Goregaokar
e8ab71fa00
Rollup merge of #32715 - nrc:rustdoc-highlight, r=cmr
...
rustdoc: factor out function for getting inner html of highlighted source
2016-04-05 16:43:22 +05:30
Guillaume Gomez
ded701bf64
Centralize nightly compiler flags handling
2016-04-05 04:13:30 +02:00
Guillaume Gomez
ab835a12da
Add --extend-css option to rustdoc
2016-04-05 01:39:35 +02:00
Nick Cameron
a4e2933c6a
rustdoc: factor out function for getting inner html of highlighted source
2016-04-04 11:07:41 +12:00
mitaa
95eb8a68aa
Slim down rustdoc::html::render::Context
...
Like the comment on `Context` explains, `Context` is supposed to be
lightweight, so we're putting everything that's immutable after
creation of the Context behind an `Arc<SharedContext>`.
2016-04-02 13:47:11 +02:00
mitaa
0ef85c1e6a
Refactor HiddenStructField into StrippedItem
2016-04-02 13:47:05 +02:00
mitaa
b1543a1aac
Make the rendering process less pass-aware
...
Instead of hardcoding knowledge about the strip-private pass into the
rendering process we represent (some) stripped items as `ItemEnum::StrippedItem`.
Rustdoc will, for example, generate redirect pages for public items
contained in private modules which have been re-exported to somewhere
externally reachable - this will now not only work for the `strip-private`
pass, but for other passes as well, such as the `strip-hidden` pass.
2016-04-02 12:00:55 +02:00
Seo Sanghyeon
b308a8c036
Avoid linking to itself in implementors section of trait page
2016-03-29 17:04:00 +09:00
mitaa
8779e7baa4
Don't initialize id-map when rendering md files
...
Adding these "known" values to the table of used ids is only required
when embedding markdown into a rustdoc html page and may yield
unexpected results when rendering a standalone `*.md` file.
2016-03-27 00:21:01 +01:00
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
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
mitaa
f1cf2a6fcb
rustdoc: correct src-link url
2016-03-08 08:07:57 +01: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
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
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
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
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
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
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
Wesley Wiser
75acee2bde
Rustdoc - display since version for stable items
...
Fixes #27607
2016-02-09 21:20:41 -05: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