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

[TOOL-3562] Portal: Add llms.txt and llms-full.txt generation script #6372

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented Feb 28, 2025

PR-Codex overview

This PR primarily focuses on enhancing the layout components and the extraction process for search data, including the addition of new files for LLM content and adjustments to the indexing strategy.

Detailed summary

  • Added public/llms.txt and public/llms-full.txt to .gitignore.
  • Removed data-noindex attribute from various layout components.
  • Added noLLM prop to DocLayout.
  • Modified extractSearchData to return LLM content.
  • Updated extractContent function to handle new LLM data.
  • Enhanced handling of data-noindex and data-no-llm attributes in content extraction.
  • Refactored ArticleCard and Code components to support new features.
  • Updated dependencies in package.json and pnpm-lock.yaml.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

linear bot commented Feb 28, 2025

Copy link

changeset-bot bot commented Feb 28, 2025

⚠️ No Changeset found

Latest commit: 8887e46

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Feb 28, 2025

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 7:20pm
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 7:20pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 7:20pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 7:20pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 7:20pm

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Feb 28, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@MananTank MananTank marked this pull request as ready for review February 28, 2025 14:57
@MananTank MananTank requested review from jnsdls, joaquim-verges and a team as code owners February 28, 2025 14:57
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.60%. Comparing base (56301bc) to head (8887e46).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6372      +/-   ##
==========================================
- Coverage   54.60%   54.60%   -0.01%     
==========================================
  Files         874      874              
  Lines       54525    54525              
  Branches     3682     3680       -2     
==========================================
- Hits        29774    29772       -2     
- Misses      24656    24658       +2     
  Partials       95       95              
Flag Coverage Δ
packages 54.60% <ø> (-0.01%) ⬇️

see 1 file with indirect coverage changes

Copy link
Contributor

github-actions bot commented Feb 28, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.87 KB (0%) 938 ms (0%) 210 ms (+198.31% 🔺) 1.2 s
thirdweb (cjs) 127.15 KB (0%) 2.6 s (0%) 286 ms (+83.98% 🔺) 2.9 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 112 ms (0%) 127 ms (+2308.79% 🔺) 238 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 45 ms (+2745.5% 🔺) 55 ms
thirdweb/react (minimal + tree-shaking) 19.38 KB (0%) 388 ms (0%) 137 ms (+761.97% 🔺) 525 ms

@MananTank MananTank force-pushed the 02-28-_tool-3562_portal_add_llms.txt_and_llms-full.txt_generation_script branch 4 times, most recently from 1f5a10b to f8417b2 Compare February 28, 2025 15:44
@MananTank MananTank force-pushed the 02-28-_tool-3562_portal_add_llms.txt_and_llms-full.txt_generation_script branch from f8417b2 to 02fadf7 Compare February 28, 2025 18:55
Copy link

graphite-app bot commented Feb 28, 2025

Merge activity

…6372)

<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on enhancing the layout components and search data extraction in the application. It introduces new files for LLM content and modifies existing components to include additional properties for better indexing and rendering.

### Detailed summary
- Added `public/llms.txt` and `public/llms-full.txt` files.
- Removed `data-noindex` from `<div>` in multiple layout files.
- Added `noLLM` property to `DocLayout` in various components.
- Updated `extractSearchData` to return LLM content.
- Modified `extractContent` to handle new LLM data.
- Adjusted `ArticleCard` and `Code` components to include `data-noindex`.
- Updated dependencies in `package.json` and `pnpm-lock.yaml`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Portal Involves changes to the Portal (docs) codebase.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants