Skip to content

fix: backtick http-proxy example URL to prevent broken doc links#857

Merged
dangrondahl merged 1 commit intomainfrom
fix/escape-http-proxy-example-url
May 4, 2026
Merged

fix: backtick http-proxy example URL to prevent broken doc links#857
dangrondahl merged 1 commit intomainfrom
fix/escape-http-proxy-example-url

Conversation

@dangrondahl
Copy link
Copy Markdown
Contributor

@dangrondahl dangrondahl commented May 4, 2026

Summary

  • Wraps the example URL http://proxy-server-ip:proxy-port in the --http-proxy flag description with backticks instead of single quotes, so Mintlify renders it as inline code rather than a clickable (broken) link.
  • Fixes 79 broken-link reports across client_reference/ pages.

Closes kosli-dev/docs#105

Test plan

  • Verify kosli <any-command> --help still shows the example URL correctly
  • Regenerate docs and confirm the URL renders as inline code, not a link

The example URL `http://proxy-server-ip:proxy-port` in the --http-proxy
flag description was being rendered as a clickable link by Mintlify,
causing 79 broken-link reports across client_reference/ pages.

Wrapping in backticks makes it render as inline code instead.

Closes kosli-dev/docs#105
@claude
Copy link
Copy Markdown
Contributor

claude Bot commented May 4, 2026

Claude finished @dangrondahl's task in 1m 44s —— View job


PR Review: fix backtick http-proxy example URL

  • Run static analysis checks
  • Review code change
  • Post review feedback

Static Analysis

All checks pass:

  • go build ./... — clean
  • go vet ./... — clean
  • go mod tidy — no drift

Review

LGTM. This is a clean, minimal fix. Changing from single quotes to backticks around the placeholder URL http://proxy-server-ip:proxy-port is the right approach — backticks render as inline code in Mintlify, preventing the renderer from turning the placeholder into a broken clickable link.

The change is consistent with how Go backtick-delimited strings are already used elsewhere in this file (e.g., the ^…^ syntax in the long descriptions above).

One minor observation (non-blocking): Line 120 has a similar pattern — e.g. 'https://kosli.atlassian.net' — using single quotes around a URL. That one is a real URL so it may be fine as a link, but worth checking whether Mintlify also renders it and whether it should get the same backtick treatment for consistency. Not something that needs to block this PR.

What's good: Targeted fix, no unnecessary changes, clear PR description that explains the why (79 broken-link reports). Nice work.

Comment thread cmd/kosli/root.go
orgFlag = "The Kosli organization."
hostFlag = "[defaulted] The Kosli endpoint."
httpProxyFlag = "[optional] The HTTP proxy URL including protocol and port number. e.g. 'http://proxy-server-ip:proxy-port'"
httpProxyFlag = "[optional] The HTTP proxy URL including protocol and port number. e.g. `http://proxy-server-ip:proxy-port`"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other URL's not using backtics either..is that a problem and how does it work in console?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mbevc1
Cobra just strips backticks, so

./kosli fingerprint --help 2>&1 | grep "http-proxy"
      --http-proxy http://proxy-server-ip:proxy-port   [optional] The HTTP proxy URL including protocol and port number. e.g. http://proxy-server-ip:proxy-port

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was just focused on this particular URL as this shows up in mint broken-links

@dangrondahl dangrondahl merged commit 5215a94 into main May 4, 2026
20 checks passed
@dangrondahl dangrondahl deleted the fix/escape-http-proxy-example-url branch May 4, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: broken proxy-server-ip:proxy-port example links in CLI reference docs

2 participants