Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: design fixes and changes #13776

Merged
merged 4 commits into from
Apr 30, 2014
Merged

Conversation

adrientetar
Copy link
Contributor

Samples:

r? @brson

@adrientetar adrientetar changed the title rustdoc: refactor and unstyle inline section headers rustdoc: design fixes and slight changes Apr 27, 2014
@adrientetar adrientetar changed the title rustdoc: design fixes and slight changes rustdoc: design fixes and changes Apr 27, 2014
@adrientetar
Copy link
Contributor Author

Updated the PR description. r? @alexcrichton
This fixes usability concerns expressed.

@alexcrichton
Copy link
Member

This looks good to me, although I don't have a very large stake in this design. Does this look ok to those that have a stake in this?

@adrientetar
Copy link
Contributor Author

Those are just minor adjustments due to requests that I've seen a few times (bring back a slight grey background on code samples, decrease font-size, tighten margins).

@adrientetar
Copy link
Contributor Author

There was an issue in my cached pages' stylesheet, I fixed it.

@thehydroimpulse
Copy link
Contributor

LGTM. The [src] font size seems a bit too large, but not a big deal. Overall, the new font size is much more appropriate!

@adrientetar
Copy link
Contributor Author

It would need to be bottom-aligned otherwise, which is a headache when using a float. – It can always be revisited later anyways.

bors added a commit that referenced this pull request Apr 30, 2014
- Closes #13591. Relevant example: http://adrientetar.legtux.org/cached/rust-docs/struct.CChars.htm
(Had to use `!important` to override CSS selector precedence, namely matching over parent class.)
- Implement changes from #13780 feedback, namely:
  * Changed font-size from 18px to 15px
  * Reintroduced gray background for code samples
  * Tightened up the margins
- Fix point 1 and point 4 of #13804.

Samples:

- [enum.FileType](http://adrientetar.legtux.org/cached/rust-docs/enum.FileType.htm)
- [struct.CChars](http://adrientetar.legtux.org/cached/rust-docs/struct.CChars.htm)
- [std](http://adrientetar.legtux.org/cached/rust-docs/std.htm)
- [std::io](http://adrientetar.legtux.org/cached/rust-docs/io.htm).

r? @brson
@bors bors closed this Apr 30, 2014
@bors bors merged commit 2bf25a7 into rust-lang:master Apr 30, 2014
bors added a commit that referenced this pull request Apr 30, 2014
Two selector fixes for rustdoc:

- links colored in blue (#13807) was also affecting headers, which are anchored to their respective ids
- the header unstyling from #13776 was being applied to all headers also

Additionally, remove a stray title in the documentation. This makes the crate title of prelude appear as header instead of an inline paragraph of text (all others work normally and do not have that header tag).

The design is unchanged from my previous template (e.g. [here](http://adrientetar.legtux.org/cached/rust-docs/struct.CChars.htm)), however it is now properly applied.  
The last fix remaining is to enable webfonts service from `static.rust-lang.org`, this is #13593.

r? @alexcrichton, @brson
arcnmx pushed a commit to arcnmx/rust that referenced this pull request Dec 17, 2022
arcnmx pushed a commit to arcnmx/rust that referenced this pull request Dec 17, 2022
fix: add a check for `if` token in patterns parser

Closes rust-lang#13776
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs now have poor information density
5 participants