-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update gems and examples, add Makefile
Update the dependencies and the examples after updating the dependencies.
- Loading branch information
Showing
26 changed files
with
76 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "github-pages", "~> 219", group: :jekyll_plugins | ||
gem "github-pages", group: :jekyll_plugins | ||
|
||
# kramdown v2 ships without the gfm parser by default. If you're using | ||
# kramdown v1, comment out this line. | ||
gem "kramdown-parser-gfm" | ||
gem "webrick" |
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,17 @@ | ||
DOCKER_IMAGE := bretfisher/jekyll-serve | ||
SHELL:=/bin/bash | ||
|
||
update_generated_assets: ## Copy the assets generated in tests to the docs | ||
# IMPORTANT: run the ExamplesGenerator in src/tests first! | ||
cp `find ../build/generated -type f '!' -name '*.png' '!' -name '*.svg'` _includes/generated | ||
cp `find ../build/generated -type f -name '*.png' -o -name '*.svg'` assets/generated | ||
|
||
serve: ## start serving the docs locally | ||
@echo "Serving docs on http://localhost:4000/docker-compose-viz-mermaid/" | ||
docker run --rm --name dcvm-docs -v $(PWD):/site -p 4000:4000 $(DOCKER_IMAGE) | ||
|
||
update_local_gem: ## remove the local Gemfile.lock | ||
rm Gemfile.lock | ||
|
||
|
||
|
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 |
---|---|---|
@@ -1,32 +1,41 @@ | ||
Usage: cli [OPTIONS] [docker-compose-path] | ||
Usage: cli [<options>] [<docker-compose-path>] | ||
|
||
Visualize a docker-compose, by converting it to a Mermaid graph. | ||
|
||
Supported outputs (`-f`): | ||
|
||
* 'text' (default) outputs the mermaid graph (use -o to output to a file instead of stdout); | ||
* 'markdown' is same as text, but wraps the graph text in '```mermaid```' | ||
* 'png' or 'svg' generates the image and saves it 'image.[png|svg]' (use -o to change the destination); | ||
* 'editor' // 'preview' generates a link to the mermaid online editor, and print it to the console. | ||
|
||
Supported outputs (-f): | ||
╭───────────────────────────────────────────────────────────────────────────╮ | ||
│* 'text' (default) outputs the mermaid graph (use -o to output to a file │ | ||
│instead of stdout); │ | ||
│* 'markdown' is same as text, but wraps the graph text in '```mermaid```' │ | ||
│* 'png' or 'svg' generates the image and saves it 'image.[png|svg]' (use -o│ | ||
│to change the destination); │ | ||
│* 'editor' // 'preview' generates a link to the mermaid online editor, and │ | ||
│print it to the console. │ | ||
╰───────────────────────────────────────────────────────────────────────────╯ | ||
You can further customize the result using the options below. | ||
|
||
Processing options: | ||
-p, --ports / -P, --no-ports Extract and display ports | ||
-v, --volumes / -V, --no-volumes Extract and display volumes | ||
-n, --networks / -N, --no-networks Extract and display networks | ||
-l, --ilinks / -L, --no-ilinks Try to find implicit links between services by looking at the | ||
environment variables | ||
-p, --ports / -P, --no-ports Extract and display ports | ||
-v, --volumes / -V, --no-volumes | ||
Extract and display volumes | ||
-n, --networks / -N, --no-networks | ||
Extract and display networks | ||
-l, --ilinks / -L, --no-ilinks | ||
Try to find implicit links between services by | ||
looking at the environment variables | ||
|
||
Output options: | ||
-f, --format [TEXT|MARKDOWN|EDITOR|PREVIEW|PNG|SVG] | ||
Output type (case insensitive) (default: TEXT) | ||
-o, --out PATH Write output to a specific file | ||
-b, --with-bg Force background color | ||
-d, --dir [LR|RL|TB|BT] Graph orientation (default: TB) | ||
-t, --theme [DEFAULT|DARK] Graph theme (default: DEFAULT) | ||
-c, --classes / -C, --no-classes Add CSS classes to mermaid to make the output nicer | ||
-f, --format=(TEXT|MARKDOWN|EDITOR|PREVIEW|PNG|SVG) | ||
Output type (case insensitive) (default: TEXT) | ||
-o, --out=<path> Write output to a specific file | ||
-b, --with-bg Force background color | ||
-d, --dir=(LR|RL|TB|BT) Graph orientation (default: TB) | ||
-t, --theme=(DEFAULT|DARK) Graph theme (default: DEFAULT) | ||
-c, --classes / -C, --no-classes | ||
Add CSS classes to mermaid to make the output | ||
nicer | ||
|
||
Options: | ||
--version Show the version and exit | ||
--debug Be verbose | ||
-h, --help Show this message and exit |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.