Skip to content

Conversation

@sfc-gh-tteixeira
Copy link
Contributor

@sfc-gh-tteixeira sfc-gh-tteixeira commented Aug 15, 2025

📚 Context

docs.streamlit.io/llms-full.txt needs to be rebuilt every time the site is modified. Today that's done with make export. But it turns out that Netlify doesn't run make export, and instead it just calls npm run export directly. So this PR addresses that.

🧠 Description of Changes

Make Netlify call make export when building the site. This is being done in netlify.toml rather than in the Netlify GUI because the GUI was complaining. See video below.

Screen.Recording.2025-08-15.at.15.16.02.mov

💥 Impact

Size:

  • Small
  • Not small

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

netlify.toml Outdated
@@ -1,14 +1,18 @@
[build]
command = "npm export"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this supposed to be npm run export?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ooops, it's make export. Fixed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The whole fix in this PR is that Netlify now calls make export instead of npm run export. And make export depends on make llms, which builds llms-full.txt

@sfc-gh-dmatthews
Copy link
Contributor

Can we delete both llm context files in this PR so they don't clutter up the repo? (llm-full.txt and content_catalog.json)

@sfc-gh-dmatthews
Copy link
Contributor

sfc-gh-dmatthews commented Aug 15, 2025

Since we have to get uv into the environment to fix the build errors, should we try bumping the runtime while we're at it? It's still on Python 3.8. https://github.com/streamlit/docs/blob/main/runtime.txt

Copy link
Contributor

@sfc-gh-dmatthews sfc-gh-dmatthews left a comment

Choose a reason for hiding this comment

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

I added the uv dependency and checked that the llms_full file is available in the preview.

@sfc-gh-dmatthews sfc-gh-dmatthews merged commit 8bd7e44 into main Aug 16, 2025
4 checks passed
@sfc-gh-dmatthews sfc-gh-dmatthews deleted the llms-autogen branch August 16, 2025 18:47
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.

3 participants