Skip to content

Commit e4e8b47

Browse files
author
stlc-bot
committed
docs(openapi): unify regex wording and shorten sourcePreference descriptions (#2051)
Stainless-Generated-From: dd255ae9cb6e681fc7ebaadde53848bc2d9ea4e9
1 parent 885cf48 commit e4e8b47

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/charmbracelet/bubbletea v1.3.6
88
github.com/charmbracelet/lipgloss v1.1.0
99
github.com/charmbracelet/x/term v0.2.1
10-
github.com/context-dot-dev/context-go-sdk/v2 v2.32.0
10+
github.com/context-dot-dev/context-go-sdk/v2 v2.33.0
1111
github.com/goccy/go-yaml v1.18.0
1212
github.com/itchyny/json2yaml v0.1.4
1313
github.com/muesli/reflow v0.3.0

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ github.com/charmbracelet/x/exp/golden v0.0.0-20241011142426-46044092ad91 h1:payR
1818
github.com/charmbracelet/x/exp/golden v0.0.0-20241011142426-46044092ad91/go.mod h1:wDlXFlCrmJ8J+swcL/MnGUuYnqgQdW9rhSD61oNMb6U=
1919
github.com/charmbracelet/x/term v0.2.1 h1:AQeHeLZ1OqSXhrAWpYUtZyX1T3zVxfpZuEQMIQaGIAQ=
2020
github.com/charmbracelet/x/term v0.2.1/go.mod h1:oQ4enTYFV7QN4m0i9mzHrViD7TQKvNEEkHUMCmsxdUg=
21-
github.com/context-dot-dev/context-go-sdk/v2 v2.32.0 h1:rF7kVjfdI4QsHyRuZySwllnUpdrlWqMgvk6bdR1vk0k=
22-
github.com/context-dot-dev/context-go-sdk/v2 v2.32.0/go.mod h1:CvRANWLP0FHj5XyUwzEVX79ujdwr/2Jy375UVzKNQm8=
21+
github.com/context-dot-dev/context-go-sdk/v2 v2.33.0 h1:0Fz+wHuApoHkIVEqdRV1HRx1R1783JjG2w3h/UFL/6g=
22+
github.com/context-dot-dev/context-go-sdk/v2 v2.33.0/go.mod h1:CvRANWLP0FHj5XyUwzEVX79ujdwr/2Jy375UVzKNQm8=
2323
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
2424
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
2525
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=

‎pkg/cmd/web.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ var webWebCrawlMd = requestflag.WithInnerFlags(cli.Command{
485485
},
486486
&requestflag.Flag[string]{
487487
Name: "exclude-url-regex",
488-
Usage: "RE2 regex pattern. URLs matching this pattern are never followed or scraped, even when they match urlRegex. The starting URL is always scraped.",
488+
Usage: "Regex pattern. URLs matching this pattern are never followed or scraped, even when they match urlRegex. The starting URL is always scraped.",
489489
BodyPath: "excludeUrlRegex",
490490
},
491491
&requestflag.Flag[bool]{
@@ -502,13 +502,13 @@ var webWebCrawlMd = requestflag.WithInnerFlags(cli.Command{
502502
},
503503
&requestflag.Flag[bool]{
504504
Name: "include-images",
505-
Usage: "Include image references in the Markdown output Only applies to `html-conversion` extractions.",
505+
Usage: "Include image references in the Markdown output (`html-conversion` only).",
506506
Default: false,
507507
BodyPath: "includeImages",
508508
},
509509
&requestflag.Flag[bool]{
510510
Name: "include-links",
511-
Usage: "Preserve hyperlinks in the Markdown output Only applies to `html-conversion` extractions.",
511+
Usage: "Preserve hyperlinks in the Markdown output (`html-conversion` only).",
512512
Default: true,
513513
BodyPath: "includeLinks",
514514
},
@@ -548,13 +548,13 @@ var webWebCrawlMd = requestflag.WithInnerFlags(cli.Command{
548548
},
549549
&requestflag.Flag[bool]{
550550
Name: "shorten-base64-images",
551-
Usage: "Truncate base64-encoded image data in the Markdown output Only applies to `html-conversion` extractions.",
551+
Usage: "Truncate base64-encoded image data in the Markdown output (`html-conversion` only).",
552552
Default: true,
553553
BodyPath: "shortenBase64Images",
554554
},
555555
&requestflag.Flag[[]string]{
556556
Name: "source-preference",
557-
Usage: "Where the Markdown should come from, in order of preference; the first usable source wins. `html-conversion` converts the page HTML, and counts as unusable when the conversion has almost no content (under 200 characters). `markdown-direct` uses the official Markdown version the page publishes through, returned as the site serves it. Defaults to `[\"html-conversion\", \"markdown-direct\"]`. With only `markdown-direct`, a page that publishes no Markdown fails with `NO_PUBLISHED_MARKDOWN` and is not billed. Requests with include or exclude selectors never use `markdown-direct`, so they must include `html-conversion`.",
557+
Usage: "Markdown sources in order of preference: `html-conversion` converts the page HTML, `markdown-direct` uses Markdown the site publishes.",
558558
Default: []string{"html-conversion", "markdown-direct"},
559559
BodyPath: "sourcePreference",
560560
},

0 commit comments

Comments
 (0)