-
Notifications
You must be signed in to change notification settings - Fork 198
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
Docs for releases during 2018-{10-12} appear unstyled #1327
Comments
Can you pull up the network console and show what file it's trying to load? Mine is loading https://docs.rs/rouille/3.0.0/rustdoc-20181129-1.32.0-nightly-3e90a12a8.css which succeeds. |
For that particular URL (the others behave similarly), first I get a 302 which pastes an extra
|
Interesting, I can reproduce if compression is disabled (though maybe that's just an artifact of the caching): > curl -I https://docs.rs/rouille/3.0.0/rustdoc-20181129-1.32.0-nightly-3e90a12a8.css
HTTP/2 302
content-length: 0
location: https://docs.rs/rouille/3.0.0/rustdoc-20181129-1.32.0-nightly-3e90a12a8.css/rouille/
server: nginx/1.14.0 (Ubuntu)
date: Mon, 22 Mar 2021 22:34:16 GMT
expires: Mon, 22 Mar 2021 22:34:16 GMT
x-cache: Miss from cloudfront
via: 1.1 458f29e42261f01e7368474593f44b66.cloudfront.net (CloudFront)
x-amz-cf-pop: TXL52-C1
x-amz-cf-id: gtmRXBGWwh5d06CQuMfY_nrCsI-QyyBEDOCUNIW21u4-6PwT0Qi2FQ==
> curl -I https://docs.rs/rouille/3.0.0/rustdoc-20181129-1.32.0-nightly-3e90a12a8.css --compressed
HTTP/2 200
content-type: text/css
server: nginx/1.14.0 (Ubuntu)
date: Sun, 07 Feb 2021 13:56:45 GMT
cache-control: public, max-age=31104000
last-modified: Fri, 19 Jul 2019 14:28:38 GMT
content-encoding: gzip
vary: Accept-Encoding,Accept-Encoding
x-cache: Hit from cloudfront
via: 1.1 a57d5819527c444e16b1875e3bd28970.cloudfront.net (CloudFront)
x-amz-cf-pop: TXL52-C1
x-amz-cf-id: 29N_lXiWz5vXptphnNYQyckTHjaGlTQteFH_CRgNhQnoASEMQsDqBA==
age: 3746254 |
This is the caching, on the prod server |
Seems likely to be a side-effect of #1324 and some weirdness of the "redirect crate root into the docs" ignoring the filename, if there's a filename it should probably just return a 404. |
This was built with 2018-11-29, so I expect it's related to #1181 somehow. Honestly I would rather just rather rebuild those docs. |
Ok, the issue is that Lines 45 to 47 in de03cb2
There are a couple possible fixes:
1 is kind of a hack but I think it's the easiest and most reliable fix. |
|
…imulacrum rustdoc: Add unstable option to only emit shared/crate-specific files The intended use case is for docs.rs, which can now copy exactly the files it cares about, rather than having to guess based on whether they have a resource suffix or not. In particular, some files have a resource suffix but cannot be shared between crates: rust-lang/docs.rs#1312 (comment) The end goal is to fix rust-lang/docs.rs#1327 by reverting rust-lang/docs.rs#1324. This obsoletes `--print=unversioned-files`, which I plan to remove as soon as docs.rs stops using it. I recommend reviewing this one commit at a time. r? `@GuillaumeGomez` cc `@Nemo157` `@pietroalbini`
…imulacrum rustdoc: Add unstable option to only emit shared/crate-specific files The intended use case is for docs.rs, which can now copy exactly the files it cares about, rather than having to guess based on whether they have a resource suffix or not. In particular, some files have a resource suffix but cannot be shared between crates: rust-lang/docs.rs#1312 (comment) The end goal is to fix rust-lang/docs.rs#1327 by reverting rust-lang/docs.rs#1324. This obsoletes `--print=unversioned-files`, which I plan to remove as soon as docs.rs stops using it. I recommend reviewing this one commit at a time. r? ``@GuillaumeGomez`` cc ``@Nemo157`` ``@pietroalbini``
Wow, github is really bad about that. That commit isn't even close to fixing this. |
For posterity: since rouille was rebuilt, another example of an affected crate is https://docs.rs/ess/0.4.2/ess/, which is now working. |
The most recent docs.rs displays the contents for rouille-3.0.0 with no styles; only the top nav bar is styled. Tested with FF 86 and Chromium 89. When I last visited the page, in the past week or so, it displayed correctly.
Inspector shows the stylesheet links in
<head>
as relative, e.g.,...and obviously doesn't read valid CSS, since the console is full of "Ruleset ignored due to bad selector" messages. If I tweak the links to absolute like this:
...the styling appears, but will of course again be absent if I navigate away to any subpage.
The text was updated successfully, but these errors were encountered: