Skip to content

Commit 5b37bf1

Browse files
committed
Support: provide highlighting
This highlights the blockquote when targeting one of the quotes via the URL's fragment: https://rust-for-linux.com/industry-and-academia-support#Samsung It does so in a color that works for all themes (having said that, I just used one of the existing colors the themes provide -- CSS Color Module Level 5 cannot come soon enough). Signed-off-by: Miguel Ojeda <[email protected]>
1 parent a094b6a commit 5b37bf1

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

post.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ def process(path, content, html_menu, html_index_toc):
8282
margin-bottom: -0.3em !important;
8383
margin-top: 1em !important;
8484
}
85+
86+
.quote-highlight:target {
87+
/*
88+
* `--table-header-bg` is used as an existing color in the themes
89+
* that is good enough for highlighting the `blockquote`s.
90+
*/
91+
background-color: var(--table-header-bg);
92+
}
8593
</style>
8694
""")
8795

src/Industry-and-academia-support.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Industry and academia support
22

3-
<blockquote id="Google">
3+
<blockquote id="Google" class="quote-highlight">
44
<p>“Google supports and contributes directly to the Rust for Linux project. Our Android team is evaluating a new Binder implementation and considering other drivers where Rust could be adopted.”</p>
55
</blockquote>
66

77
[Google](https://lore.kernel.org/lkml/[email protected]/), 2021.
88

99

10-
<blockquote id="Arm">
10+
<blockquote id="Arm" class="quote-highlight">
1111
<p>“Arm recognises the Rust value proposition and is actively working with the Rust community to improve Rust for Arm based systems.
1212
A good example is Arm’s RFC contribution to the Rust language which made Linux on 64-bit Arm systems a Tier-1 Rust supported platform.</p>
1313
<p>Rustaceans at Arm are excited about the Rust for Linux initiative and look forward to assisting in this effort.”</p>
@@ -16,42 +16,42 @@ A good example is Arm’s RFC contribution to the Rust language which made Linux
1616
[Arm](https://lore.kernel.org/lkml/[email protected]/), 2021-06-29.
1717

1818

19-
<blockquote id="Microsoft">
19+
<blockquote id="Microsoft" class="quote-highlight">
2020
<p>“Microsoft's Linux Systems Group is interested in contributing to getting Rust into Linux kernel. Hopefully we will be able to submit select Hyper-V drivers written in Rust in the coming months.”</p>
2121
</blockquote>
2222

2323
[Microsoft](https://lore.kernel.org/lkml/[email protected]/), 2021-06-29.
2424

2525

26-
<blockquote id="RedHat">
26+
<blockquote id="RedHat" class="quote-highlight">
2727
<p>“There is interest in using Rust for kernel work that Red Hat is considering.”</p>
2828
</blockquote>
2929

3030
[Red Hat](https://lore.kernel.org/lkml/[email protected]/), 2021-07-08.
3131

3232

33-
<blockquote id="Anderson">
33+
<blockquote id="Anderson" class="quote-highlight">
3434
<p>“Rust for Linux is a key step towards reducing security-critical kernel bugs, and on the path towards our ultimate goal of making Linux free of security-critical bugs. We are using Rust in our OS research, and adoption is easier with an existing Rust in the Linux kernel framework in place.”</p>
3535
</blockquote>
3636

3737
— Thomas Anderson, University of Washington, 2022-06-23.
3838

3939

40-
<blockquote id="BlancCohenSchmidt">
40+
<blockquote id="BlancCohenSchmidt" class="quote-highlight">
4141
<p>“We are convinced that Rust is changing the landscape of system programming by applying the research done on programming languages in the last decades. We wanted to see how the language was able to help us write code we are really comfortable with thanks to the extensive static checking.”</p>
4242
</blockquote>
4343

4444
— Esteban Blanc, Arthur Cohen and Martin Schmidt, LSE (Systems Research Laboratory) at EPITA (École pour l'informatique et les techniques avancées), 2022-06-23.
4545

4646

47-
<blockquote id="ISRG">
47+
<blockquote id="ISRG" class="quote-highlight">
4848
<p>“Being able to use Rust in the Linux kernel is an incredible milestone on the road to a more secure future for the Internet and everything else that depends heavily on Linux.”</p>
4949
</blockquote>
5050

5151
[ISRG's Prossimo Project](https://www.memorysafety.org/blog/rust-in-linux-just-the-beginning/), 2022-10-18.
5252

5353

54-
<blockquote id="Samsung">
54+
<blockquote id="Samsung" class="quote-highlight">
5555
<p>“Samsung is actively engaged in supporting the integration of Rust code into the Linux Kernel. Recognizing the significant benefits that Rust brings to kernel and system software development, particularly in terms of enhancing security and reducing critical bugs, Samsung is committed to enabling kernel developers to write block layer device drivers using the Rust programming language. By embracing modern programming languages like Rust, Samsung aims to attract new talent to systems development and promote memory safety within the Linux storage stack.”</p>
5656
</blockquote>
5757

0 commit comments

Comments
 (0)