Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable using polr shortener instead tinyurl #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ new Command()
'-t, --turn-off-link-shortening',
"Use the full puml server link instead of the tiny url, if your diagrams are too big this won't work",
)
.addOption(new Option(
'-l, --polr-url <url>',
"Use polr shortener instead tinyurl - optionally specify polr api key in POLR_APIKEY env var",
mzagar marked this conversation as resolved.
Show resolved Hide resolved
)
)
.action(opts => {
const useDefaultGitignorePath = !opts.gitignorePath

Expand All @@ -81,6 +86,11 @@ new Command()
opts.respectGitignore = !opts.ignoreGitignore
opts.imageFormats = opts.imageFormats === 'both' ? ['png', 'svg'] : [opts.imageFormats]

if (opts.shouldShortenLinks == false && opts.polrUrl != null) {
console.error("Specifying polr shortener url but disabling shortening not allowed - please specify only one of these two options")
return
}

// If a gitignore path wasn't specified, don't try and parse it
if (useDefaultGitignorePath && !fs.existsSync(opts.gitignorePath)) {
opts.respectGitignore = false
Expand Down
Binary file modified dist_puml/puml/level_1_system_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,019 changes: 2,019 additions & 0 deletions dist_puml/puml/level_1_system_view.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist_puml/puml/level_2_container_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
624 changes: 498 additions & 126 deletions dist_puml/puml/level_2_container_view.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist_puml/puml/level_3_component_view_label_retrieval_job.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,219 changes: 2,219 additions & 0 deletions dist_puml/puml/level_3_component_view_label_retrieval_job.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist_puml/puml/level_3_component_view_pipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,269 changes: 2,269 additions & 0 deletions dist_puml/puml/level_3_component_view_pipeline.svg
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