Will Crichton
3ad6d12827
Sort scraped call locations before serializing
2021-11-04 13:57:09 -07:00
Will Crichton
b8ecc9fefa
Fix rare ICE during typeck in rustdoc scrape_examples
2021-10-29 13:21:50 -07:00
Will Crichton
24a71cbdd7
Fix local crate not being scraped
2021-10-12 18:26:39 -07:00
Will Crichton
f10dceeae2
Change handling of spans in scrape examples, add test for highlight decorations
2021-10-08 15:32:22 -07:00
Will Crichton
e22e858687
Move more scrape-examples logic from JS to rust
...
Fix failing test
Add missing backslash
Fix padding issue with horizontal scrollbar
2021-10-08 11:14:01 -07:00
Will Crichton
5584c79597
Update to latest rustc and rustdoc styles
2021-10-06 21:43:40 -07:00
Will Crichton
df5e3a6e40
Change serialized format to use DefPathHash instead of custom String
...
Move test to rustdoc-ui
Fix test writing to wrong directory
Formatting
Fix test
Add FIXME
Remove raw multiline strings
2021-10-06 19:45:25 -07:00
Will Crichton
5c05b3c03d
Add target crates as inputs to reduce size of intermediates
...
Add tests for module-path remapping and scrape example options
Find all crates with a given name
2021-10-06 19:45:25 -07:00
Will Crichton
829b1a9dd9
Incorporate jyn's feedback
...
* Move call location logic from function constructor to rendering
* Fix issue with macro spans in scraping examples
* Clean up example loading logic
Documentation / newtype for DecorationInfo
Fix line number display
Serialize edition of call site, other small cleanup
2021-10-06 19:45:23 -07:00
Will Crichton
55bb51786e
Move highlighting logic from JS to Rust
...
Continue migrating JS functionality
Cleanup
Fix compile error
Clean up the diff
Set toggle font to sans-serif
2021-10-06 19:44:50 -07:00
Will Crichton
eea8f0a39a
Sort examples by size
...
Improve styling
Start to clean up code, add comments
2021-10-06 19:44:50 -07:00
Will Crichton
b6338e7792
Generate example source files with corresponding links
...
Add display name
Fix remaining merge conflicts
Only embed code for items containing examples
2021-10-06 19:44:50 -07:00
Will Crichton
2855bf039a
Factor scraping and rendering into separate calls to rustdoc
...
Simplify toggle UI logic, add workspace root for URLs
2021-10-06 19:44:50 -07:00
Will Crichton
7831fee9f8
Fix check issue
...
Clean up tidy checks
2021-10-06 19:44:50 -07:00
Will Crichton
4b3f82ad03
Add updated support for example-analyzer
...
Move rendering of examples into
Finalize design
Cleanup, rename found -> scraped
Softer yellow
Clean up dead code
Document scrape_examples
More simplification and documentation
Remove extra css
Test
2021-10-06 19:44:47 -07:00