-
Notifications
You must be signed in to change notification settings - Fork 180
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
Make attributes visible in c-tips chapter #212
Make attributes visible in c-tips chapter #212
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @andre-richter (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
I also see them render OK in Chrome; what browser are you using @austinglaser ? |
Firefox 70.0.1, on ubuntu. I don't have any custom styles enabled. If you build from my branch, does the chapter mis-render on your browsers? |
Same browser here, to the last digit. Ubuntu 64bit. |
If I look at the page source for one of the offending examples, I see: <pre><pre class="playpen"><code class="language-rust">
<span class="boring">#![allow(unused_variables)]
fn main() {
</span>/// In your top-level lib.rs
<span class="boring">[cfg(feature="FIR")]
</span>pub mod fir;
<span class="boring">[cfg(feature="IIR")]
</span>pub mod iir;
<span class="boring">}
</code></pre></pre> What do you see there on your system? |
I see the same behavior (and the same static html, including I've tried explicitly clearing my browser's cache, and I see the same page. I'm looking at https://rust-embedded.github.io/book/c-tips/index.html. Is there another hosting location for the book that could cause this confusion? Are there other things I could check? Does |
Ah, I'm looking at https://docs.rust-embedded.org/book/c-tips/index.html which renders OK, whereas your link to rust-embedded.github.io does not render correctly (with the attributes missing). docs.rust-embedded.org is a CNAME for rust-embedded.github.io though, so it's not immediately clear to me why they're different... |
There it is! Your link renders fine for me as well. That probably means we should hold off on merging this until verifying that the changes render correctly when they eventually get pushed to the rust-embedded.org site. Also, I've found a couple other places in the book where attributes are mistakenly getting swallowed -- I'll add them to this PR as well. |
This repository is configured to serve this repository's Meanwhile the I suspect the problem is that https://github.com/rust-embedded/docs/blob/master/ci/install.sh while https://github.com/rust-embedded/book/blob/master/ci/install.sh Edit: in fact it looks like I made the commit that stuck So it looks like we should have |
I've opened a PR to make the |
It looks like this is fixed in mdbook v0.3.5: rust-lang/mdBook#1088 |
Thanks for chasing this down, @austinglaser! |
Fixes #211