Compare commits

...

2 Commits

Author SHA1 Message Date
kev 25a5e67907 update crawlee 2024-04-10 17:30:24 +08:00
kev bfe9d95e05 add mermaid-cli 2024-04-10 11:26:37 +08:00
3 changed files with 42 additions and 1 deletions

View File

@ -407,6 +407,7 @@ A collection of delicious docker recipes.
- [x] memgraph
- [x] memgraph-mage
- [x] memgraph-platform
- [x] minlag/mermaid-cli
- [x] metabase/metabase
- [x] metasploitframework/metasploit-framework :skull:
- [x] minio/minio

View File

@ -5,7 +5,7 @@ crawlee
scraping and browser automation library.
```bash
$ docker run --rm -it -v $PWD:/tmp apify/actor-node:16 sh
$ docker run --rm -it -v $PWD:/tmp apify/actor-node:20 sh
>>> export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
>>> export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
>>> npx crawlee create -t cheerio-js my-crawler

40
mermaid-cli/README.md Normal file
View File

@ -0,0 +1,40 @@
mermaid-cli
===========
[Mermaid][1] is a JavaScript-based diagramming and charting tool that uses
Markdown-inspired text definitions and a renderer to create and modify complex
diagrams. The main purpose of Mermaid is to help documentation catch up with
development.
## Tutorial
```
flowchart LR
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
```
```mermaid
flowchart LR
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
```
```bash
# Create an alias
$ alias mermaid-cli='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data minlag/mermaid-cli'
# Make config file
$ cat input.mmd
# Generate an SVG
$ mermaid-cli -i input.mmd -o output.svg -t dark -b transparent
```
[1]: https://github.com/mermaid-js/mermaid