Skip to content

Conversation

@sfc-gh-dmatthews
Copy link
Contributor

📚 Context

Docs for release 1.53.0 + JS bugfix for codeblocks

🧠 Description of Changes

JavaScript/Codeblocks

With the recent changes to codeblocks to allow language and filename headers, non-Python codeblocks were not displaying correctly. The correct syntax highlighting is now used. Additionally, a custom RST directive was added so that a filename could be passed to the frontend via a class. This allows setting a filename in the docstring for prettier and more consistent display of codeblocks.

Docs

  • Update docstrings
  • Update intermediate state of widget identity changes
  • Update TypeScript template and CCV2 with new names (plus menu, page titles, and redirects)
  • Update generate.py with new CCV2 classes/functions
  • Release notes
  • What's new
  • Cheat sheet version
  • Bump embedded apps to latest

Contribution License Agreement

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

@sfc-gh-dmatthews
Copy link
Contributor Author

sfc-gh-dmatthews commented Jan 16, 2026

@kmcgrady I had to do a little bugfix on the codeblocks that I need reviewed. That non-Python blocks weren't coming through correctly, so I centralized the language dict and syntax highlighting imports to share between the <Code> component and the manual rendering that happens in <Autofunction>. While I was at it, I added support for filename, though it's a little hacky because it's passed in b64 in a class. But it makes it pretty:

image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR prepares documentation for the Streamlit 1.53.0 release and includes a JavaScript bugfix for code block rendering. The release includes major features like ASGI/Starlette support, caller's rights connections for Snowflake, and OIDC token access.

Changes:

  • Updated Streamlit version from 1.52.0 to 1.53.0 across all requirements.txt files
  • Added custom RST directive for filename display in code blocks with proper syntax highlighting
  • Renamed custom component v2 TypeScript types for better semantic clarity (Component → FrontendRenderer, ComponentState → FrontendState, etc.)

Reviewed changes

Copilot reviewed 52 out of 53 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
python/directives/stcode.py New custom RST directive to encode filenames in CSS classes for code blocks
lib/languageDisplayNames.js Centralized language mapping for syntax highlighting across components
components/blocks/code.js Refactored to use centralized language mappings and support filename display
components/blocks/autofunction.js Enhanced to support multiple languages and filename display with async Prism imports
python/generate.py Updated to register new directive and renamed CCV2 types
python/custom_components.json Renamed custom component v2 types (Component → FrontendRenderer, etc.)
content/develop/api-reference/ Updated documentation pages for renamed custom component types
content/develop/quick-references/release-notes/ Added 1.53.0 release notes
content/menu.md Updated menu with renamed component types and new 2026 release notes section
public/_redirects Added redirects for renamed custom component URLs
python/api-examples-source/components.tailwind.py Moved isolate_styles to component definition
Multiple requirements.txt files Updated Streamlit version requirement to 1.53.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

sfc-gh-dmatthews and others added 2 commits January 16, 2026 09:02
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Copy link

@sfc-gh-kmcgrady sfc-gh-kmcgrady left a comment

Choose a reason for hiding this comment

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

One comment to update


## **Version 1.53.0**

_Release date: January 14, 2025_

Choose a reason for hiding this comment

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

Should be 2026.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😅

@sfc-gh-dmatthews sfc-gh-dmatthews merged commit 0b6ac55 into main Jan 16, 2026
@sfc-gh-dmatthews sfc-gh-dmatthews deleted the release branch January 16, 2026 17:07
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