This commit is contained in:
sillyguodong 2023-04-08 16:37:32 +08:00
parent caf09f7569
commit 742296a69b

View file

@ -1,5 +1,5 @@
---
date: "2023-04-07T10:00:00+08:00"
date: "2023-04-08T19:00:00+08:00"
authors:
- "sillyguodong"
- "delvh"
@ -98,7 +98,7 @@ asciinema tells you that recording has finished and was stored successfully.
The following GIF shows the recording process.
![recording process](/demos/asciicast/recording-process.gif)<!-- TODO: Where is this gif? It's not in the PR… -->
![recording process](/demos/asciicast/recording-process.gif)
`hello_asciicast.cast` is generated in the root path of the local repository.
@ -141,11 +141,11 @@ So, you can for example copy and paste the text from it:
At the moment, an asciicast file can only be embedded implicitly into Markdown by adding something like the following construct:
```markdown
[![session recording](/demos/asciicast/hello_asciicast_pic.png)](https://gitea.com/sillyguodong/asciicast_test/src/branch/main/hello_asciicast.cast)
[![session recording](/demos/asciicast/hello_asciicast_pic.png)](/src/branch/main/hello_asciicast.cast)
```
We highly recommend that you use Markdown and Asciicast on Gitea to build your work and study notes.
Just like what I did in the [`README`](https://gitea.com/sillyguodong/asciicast_test/src/branch/main/README.md) file of the [demo repository](https://gitea.com/sillyguodong/asciicast_test).
This is for example what's happening in the [`README`](https://gitea.com/sillyguodong/asciicast_test/src/branch/main/README.md) file of the [asciicast demo repository](https://gitea.com/sillyguodong/asciicast_test).
Not only is this more visual than code blocks, but the content is also replicable.
This is a pseudo embedding achieved by displaying an image of the recording that links to the recording when clicked on.