Skip to content

Conversation

@codyde
Copy link
Contributor

@codyde codyde commented Apr 19, 2025

DESCRIBE YOUR PR

Working on a feature that allows copying of the page content as markdown to use in LLMs. Similar to whats on Cloudflares docs

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • None: Not urgent, can wait up to 1 week+

Working preview link

CleanShot 2025-04-20 at 12  00 23@2x

codyde added 5 commits April 7, 2025 12:35
* 'master' of https://github.com/getsentry/sentry-docs: (131 commits)
  refactor: migrate Golang and related guides to inline product options syntax (#13413)
  refactor: migrate DotNet sdks to inline product options syntax (#13415)
  add note of the switch sdk (#13431)
  Update spelling in examples.mdx (#13378)
  ref(replay): clarify web & mobile distinction in product docs (#13447)
  fix(java): fix `RestTemplate` auto-instrumentation guide (#13236)
  refactor: migrate Python and related guides to inline product options syntax (#13412)
  Unreal: Document and add `SendDefaultPii = true` to onboarding docs (#13435)
  docs(tracing): Add docs for Previous and Next trace (#13406)
  docs(js): Create Svelte Quick Start guide (#13387)
  Update Profiling SDK version number for iOS/macOS (#13429)
  remove note that workflow notifications alert on new feedback (#13384)
  fix(dart): 404 link (#13430)
  feat(Godot): Update options screenshot on the landing page (#13428)
  add senddefaultpii to powershell (#13426)
  powershell senddefaultpii landing page (#13427)
  chore: update powershell min version requirement (#13425)
  docs(replays): add count_traces to searchable properties (#13422)
  docs(js): Add `sendDefaultPii: true` to all init calls (#13408)
  docs(dotnet): Add `SendDefaultPii = true` option (#13423)
  ...
@codyde codyde added the WIP label Apr 19, 2025
@codyde codyde requested a review from chargome April 19, 2025 06:40
@codyde codyde linked an issue Apr 19, 2025 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Apr 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 20, 2025 6:20am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 20, 2025 6:20am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Apr 20, 2025 6:20am

@codecov
Copy link

codecov bot commented Apr 19, 2025

Bundle Report

Changes will increase total bundle size by 30.12kB (0.14%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 11.16MB 22.36kB (0.2%) ⬆️
sentry-docs-client-array-push 9.48MB 7.76kB (0.08%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 868.7kB -0.0%
static/css/*.css -330 bytes 4.84kB -6.38%
static/css/*.css -1.76kB 10.95kB -13.84%
static/css/*.css -1.28kB 12.71kB -9.12%
static/css/*.css -530 bytes 961 bytes -35.55%
static/css/*.css 908 bytes 740.56kB 0.12%
static/css/*.css 3.9kB 22.6kB 20.83% ⚠️
static/chunks/8165-*.js -3 bytes 410.1kB -0.0%
server/app/_not-*.js 1.42kB 257.29kB 0.55%
server/app/[[...path]]/page_client-*.js 1.42kB 257.25kB 0.55%
server/app/platform-*.js 1.37kB 242.93kB 0.57%
static/chunks/app/[[...path]]/page-*.js 39 bytes 79.1kB 0.05%
static/chunks/7632-*.js (New) 46.03kB 46.03kB 100.0% 🚀
static/chunks/app/platform-*.js 40 bytes 12.98kB 0.31%
server/middleware-*.js -5.55kB 1.0kB -84.74%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
static/chunks/webpack-*.js -2 bytes 5.32kB -0.04%
app-*.json 2 bytes 4.19kB 0.05%
static/ZLqqiH4t3fuSlkRHi6UIX/_buildManifest.js (New) 578 bytes 578 bytes 100.0% 🚀
static/ZLqqiH4t3fuSlkRHi6UIX/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/chunks/404-*.js (Deleted) -43.44kB 0 bytes -100.0% 🗑️
static/74XefBnnVIqzFRaIERrJL/_buildManifest.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️
static/74XefBnnVIqzFRaIERrJL/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Files in static/chunks/7632-*.js:

  • ./src/components/markdownButton/client.tsx → Total Size: 6.52kB
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.75MB -0.0%
../instrumentation.js -3 bytes 1.08MB -0.0%
9523.js -3 bytes 1.05MB -0.0%
../app/[[...path]]/page.js 80 bytes 583.21kB 0.01%
../app/[[...path]]/page.js.nft.json 6.54kB 395.03kB 1.68%
../app/platform-redirect/page.js.nft.json 6.54kB 394.95kB 1.68%
4899.js (New) 91.89kB 91.89kB 100.0% 🚀
../app/platform-redirect/page.js 80 bytes 31.12kB 0.26%
9273.js (Deleted) -82.77kB 0 bytes -100.0% 🗑️

Files in 4899.js:

  • ./src/components/markdownButton/index.tsx → Total Size: 411 bytes

  • ./src/components/markdownButton/client.tsx → Total Size: 505 bytes

  • ./src/components/markdownButton/client.tsx → Total Size: 6.53kB

  • ./src/utils/getMarkdownContent.ts → Total Size: 21.81kB

  • ./src/components/docPage/index.tsx → Total Size: 10.09kB

App Routes Affected:

App Route Size Change Total Size Change (%)
/[[...path]] 80 bytes 3.13MB 0.0%
/platform-redirect 80 bytes 2.58MB 0.0%

Copy link
Member

@chargome chargome left a comment

Choose a reason for hiding this comment

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

Nice, I think it is a great feature to have!

Some thoughts on the implementation:

  • As discussed offline this will bump our build time quite a bit (adds about 3 minutes as of now and will grow with the amount of pages we have)
  • I'd think of moving the button somewhere else (and adapt it to light mode), feels a bit too busy wdyt?

@a-hariti we can look into optimizing this a bit and think of alternatives

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Copy Content option for pages

3 participants