diff --git a/content/repositories/creating-and-managing-repositories/about-repositories.md b/content/repositories/creating-and-managing-repositories/about-repositories.md index f655b7088f..d67ff1d08e 100644 --- a/content/repositories/creating-and-managing-repositories/about-repositories.md +++ b/content/repositories/creating-and-managing-repositories/about-repositories.md @@ -120,9 +120,7 @@ Most of the limits below affect both {% data variables.product.product_name %} a ### Text limits -Text files over **512 KB** are always displayed as plain text. Code is not syntax highlighted, and prose files are not converted to HTML (such as Markdown, AsciiDoc, _etc._). - -Text files over **5 MB** are only available through their raw URLs, which are served through `{% data variables.product.raw_github_com %}`; for example, `https://{% data variables.product.raw_github_com %}/octocat/Spoon-Knife/master/index.html`. Click the **Raw** button to get the raw URL for a file. +{% data variables.product.prodname_dotcom %} displays formatted previews of some files, such as Markdown and Mermaid diagrams. {% data variables.product.prodname_dotcom %} always attempts to render these previews if the files are small (generally less than 2 MB), but more complex files may time out and either fall back to plain text or not be displayed at all. These files are always available in their raw formats, which are served through `{% data variables.product.raw_github_com %}`; for example, `https://{% data variables.product.raw_github_com %}/octocat/Spoon-Knife/master/index.html`. Click the **Raw** button to get the raw URL for a file. ### Diff limits diff --git a/src/graphql/components/Table.tsx b/src/graphql/components/Table.tsx index 794a0ff47e..231ea65653 100644 --- a/src/graphql/components/Table.tsx +++ b/src/graphql/components/Table.tsx @@ -31,7 +31,11 @@ export function Table({ fields }: Props) {
{field.name} (
-
+
{field.type}
diff --git a/src/landings/components/SidebarProduct.tsx b/src/landings/components/SidebarProduct.tsx
index 479e1677e6..d49903130a 100644
--- a/src/landings/components/SidebarProduct.tsx
+++ b/src/landings/components/SidebarProduct.tsx
@@ -4,7 +4,6 @@ import { TreeView } from '@primer/react'
import cx from 'classnames'
import { useMainContext } from 'components/context/MainContext'
-import { useTranslation } from 'components/hooks/useTranslation'
import { Link } from 'components/Link'
import { RestCollapsibleSection } from 'src/rest/components/RestCollapsibleSection'
import { ProductCollapsibleSection } from 'components/sidebar/ProductCollapsibleSection'
@@ -19,7 +18,6 @@ export const SidebarProduct = () => {
// more "compressed" tree that is as light as possible.
sidebarTree,
} = useMainContext()
- const { t } = useTranslation(['products'])
const isRestPage = currentProduct && currentProduct.id === 'rest'
useEffect(() => {
@@ -164,17 +162,9 @@ export const SidebarProduct = () => {
})}
-