Examples with hidden lines should be editable
I maintainer di solito rispondono entro 17 giorni
@LukeMathWalker ci sta già lavorando.
Dal 7/7/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Problem
For this issue, there are two types of code blocks:
- Read-only ones, defined via
```rust - Editable ones, defined via
```rust,editable
Read-only code blocks support the usage of # to hide code from the view that's rendered in the browser:
You can click on the "Eye" toggle to show the hidden lines:
This makes it convenient to break an example across multiple code blocks without repeating content from the previous block (e.g., the definition of UserId in the example above).
Instructors often need to be able to edit code directly on the slide, but we lose the hiding feature if we mark the block as editable:
The UserId definition is shown, even if it was prefixed with # in the source.
Solution
Modify the theme to introduce a new button, next to the "Copy" one, which allows instructors to switch from "Preview" to "Edit" mode.
In "Preview" mode, code is rendered as if the editable attribute had not been included.
In "Edit" mode, all hidden code is shown and the instructor is free to edit.
We won't support going back from "Edit" to "Preview" mode.
- Lingua principale
- Rust
- Stelle
- 33.5k
- Fork
- 2.1k
- Merge medio
- 16g 20h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di google/comprehensive-rust
-
Graph can be created in safe Rust very wellForse già presa @sanjitpawar2007-hue l’ha presa 16 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
google/comprehensive-rust#2955 ·
I maintainer di solito rispondono entro 17 giorni
-
"Calling unsafe functions" example is confusingForse già presa @haranishi l’ha presa 22 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
google/comprehensive-rust#2733 · 1 reazione ·
I maintainer di solito rispondono entro 17 giorni
-
Binary tree exercise is a binary *search* treeForse già presa @haranishi l’ha presa 22 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
google/comprehensive-rust#2732 ·
I maintainer di solito rispondono entro 17 giorni
-
Minor suggested updates to the Collatz Sequence exercise in section 6.8 and its solution in section 6.8.1Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
google/comprehensive-rust#2636 · 3 commenti ·
I maintainer di solito rispondono entro 17 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 50/100
google/comprehensive-rust#3315 · 1 commento ·
I maintainer di solito rispondono entro 17 giorni
Tutte le issue di google/comprehensive-rust
Issue simili
-
area:docs documentation good first issue priority:medium
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
rtk-ai/rtk#4958 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
calagopus/panel#285 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: streamed Responses API flex_unavailable error maps to 500 InternalServerError instead of 429Apertallm translation
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 85/100
BerriAI/litellm#49736 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
question
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
autoindex tests: denied loopback bind shows only PermissionDenied (255 failures), not the causeApertafield-report
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno