-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
125 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
% Copyright 2024 Remy Blank <remy@c-space.org> | ||
% SPDX-License-Identifier: MIT | ||
|
||
# Elements | ||
|
||
## Document metadata | ||
|
||
This section configures page metadata with a {rst:dir}`metadata` directive to | ||
hide solutions by default. | ||
|
||
```{metadata} | ||
hide-solutions: true | ||
``` | ||
|
||
## Solutions | ||
|
||
This section has several {rst:dir}`solution` blocks, and the page is | ||
configured to hide solutions by default. Click the "Toggle solutions" button in | ||
the navbar to show or hide them. | ||
|
||
```{solution} | ||
This solution follows the per-page setting. | ||
``` | ||
|
||
```{solution} *Complete* solution | ||
This solution has a custom title. | ||
``` | ||
|
||
```{solution} Solution (show) | ||
:show: | ||
This solution is always visible. | ||
``` | ||
|
||
```{solution} Solution (expand) | ||
:expand: | ||
This solution is expanded by default. | ||
``` | ||
|
||
```{solution} | ||
:class: warning | ||
This solution has a different color, and no drop-down. | ||
``` | ||
|
||
## IFrames | ||
|
||
The [YouTube](https://youtube.com/) video below is embedded with the | ||
{rst:dir}`youtube` directive. | ||
|
||
```{youtube} aVwxzDHniEw | ||
``` | ||
|
||
The [GeoGebra](https://geogebra.org/) sheet below is embedded with the | ||
{rst:dir}`iframe` directive. | ||
|
||
```{iframe} https://www.geogebra.org/classic/esdhdhzd | ||
``` | ||
|
||
## Numbering | ||
|
||
This sections uses the {rst:role}`num` role to create numbered sub-sections that | ||
reference each other, and separately numbered quotes. | ||
|
||
### Exercise {num}`ex:first` | ||
|
||
Read these quotes, then move on to exercises {numref}`ex:second` & | ||
{numref}`ex:third`. | ||
|
||
{attribution="Terry Pratchett, Mort"} | ||
> **Quote {num}`quote`:** "It would seem that you have no useful skill or talent | ||
> whatsoever," he said. "Have you thought of going into teaching?"" | ||
{attribution="Terry Pratchett, Hogfather"} | ||
> **Quote {num}`quote`:** Real stupidity beats artificial intelligence every | ||
> time. | ||
### Exercise {num}`ex:second` | ||
|
||
You've already read the quotes from {numref}`exercise %s<ex:first>`. Read this | ||
one as well, the move to {numref}`exercise %s<ex:third>`. | ||
|
||
{attribution="Douglas Adams, The Hitchhiker’s Guide to the Galaxy"} | ||
> **Quote {num}`quote`:** For a moment, nothing happened. Then, after a second | ||
> or so, nothing continued to happen. | ||
### Exercise {num}`ex:third` | ||
|
||
This is the last quote. | ||
|
||
{attribution="Iain M. Banks, Consider Phlebas"} | ||
> **Quote {num}`quote`:** I had nightmares I thought were really horrible until | ||
> I woke up and remembered what reality was at the moment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
```{toctree} | ||
:maxdepth: 1 | ||
directives | ||
elements | ||
python | ||
sql | ||
html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
```{toctree} | ||
:maxdepth: 1 | ||
directives | ||
elements | ||
exec | ||
python-libs | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters