Examples with hidden lines should be editable
メンテナーはふだん 17 日以内に返信
@LukeMathWalker がすでに取り組んでいます。
2025年7月7日 から。
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- Rust
- スター
- 33.5k
- フォーク
- 2.1k
- 平均マージ
- 16日 20時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/comprehensive-rust のほかの issue
-
Graph can be created in safe Rust very well対応中かも @sanjitpawar2007-hue が 17 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
google/comprehensive-rust#2955 ·
メンテナーはふだん 17 日以内に返信
-
"Calling unsafe functions" example is confusing対応中かも @haranishi が 23 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
google/comprehensive-rust#2733 · リアクション 1 件 ·
メンテナーはふだん 17 日以内に返信
-
Binary tree exercise is a binary *search* tree対応中かも @haranishi が 23 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
google/comprehensive-rust#2732 ·
メンテナーはふだん 17 日以内に返信
-
Minor suggested updates to the Collatz Sequence exercise in section 6.8 and its solution in section 6.8.1対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
google/comprehensive-rust#2636 · コメント 3 件 ·
メンテナーはふだん 17 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 50/100
google/comprehensive-rust#3315 · コメント 1 件 ·
メンテナーはふだん 17 日以内に返信
google/comprehensive-rust の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
GiganticMinecraft/seichi-portal-backend#1651 ·
メンテナーはふだん 1 日以内に返信
-
Android visitors are offered the Linux .deb on cap.so's homepage and download page対応中かも @patrickballard が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
CapSoftware/Cap#3677 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信