Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions docusaurus.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const config = {
stagingEnv: process.env.REACT_APP_STAGING,
nodeEnv: process.env.NODE_ENV,
},
title: 't1',
tagline: 'Documentation and Guides',
title: 't1 Docs',
tagline: 'Documentation for t1, the permissionless credit protocol for DeFi.',
url: 'https://docs.t1protocol.com',
baseUrl: '/',
onBrokenLinks: 'warn',
Expand All @@ -30,6 +30,16 @@ const config = {
},
},
image: 'img/t1-rollup.png',
metadata: [
{ name: 'twitter:site', content: '@t1protocol' },
{ name: 'twitter:creator', content: '@t1protocol' },
{ property: 'og:type', content: 'website' },
{ property: 'og:site_name', content: 't1' },
{ property: 'og:image:alt', content: 't1' },
{ name: 'twitter:image:alt', content: 't1' },
{ property: 'og:image:width', content: '3200' },
{ property: 'og:image:height', content: '1772' },
],
prism: {
additionalLanguages: ['solidity'],
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@t1/docs",
"description": "t1 Protocol Documentation",
"description": "t1 Documentation",
"license": "MIT",
"scripts": {
"docusaurus": "docusaurus",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
const XIcon = X as ComponentType<SVGProps<SVGSVGElement>>

// Type assertion for SafeLink component to resolve React type conflicts
const SafeLink = Link as any

Check warning on line 20 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Unexpected any. Specify a different type

export const actions = [
{
title: 'Learn More',
icon: Info,
to: '/intro/protocol/introduction',
text: `Get familiar with the core concepts of the t1 Protocol.`,
text: `Get familiar with the core concepts of t1.`,
},
{
title: 'Programmable Custody',
Expand Down Expand Up @@ -299,7 +299,7 @@

export default function Home() {
return (
<Layout title={`t1 Docs`} description="Documentation for t1, the permissionless credit protocol for DeFi.">
<Layout description="Documentation for t1, the permissionless credit protocol for DeFi.">
<StyledTitleImage
sources={{
light: useBaseUrl('/img/t1-cover-no-text.png'),
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocVersionSuggestions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import React from 'react'

// Type assertions for React type compatibility
const SafeLink = Link as any

Check warning on line 15 in src/theme/DocVersionSuggestions/index.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Unexpected any. Specify a different type
const SafeTranslate = Translate as any

Check warning on line 16 in src/theme/DocVersionSuggestions/index.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Unexpected any. Specify a different type

type VersionLabelProps = {
siteTitle?: string
Expand All @@ -32,7 +32,7 @@
versionLabel: <strong>{versionLabel}</strong>,
}}
>
{'This is unreleased documentation for the t1 Protocol.'}
{'This is unreleased documentation for t1.'}
</SafeTranslate>
)
}
Expand Down Expand Up @@ -80,7 +80,7 @@
)
}

const getVersionMainDoc = (version: any) => version.docs.find((doc: any) => doc.id === version.mainDocId)

Check warning on line 83 in src/theme/DocVersionSuggestions/index.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Unexpected any. Specify a different type

Check warning on line 83 in src/theme/DocVersionSuggestions/index.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Unexpected any. Specify a different type

function DocVersionSuggestions() {
const {
Expand All @@ -89,7 +89,7 @@
const { pluginId } = useActivePlugin({
failfast: true,
})
const docsPreferred = useDocsPreferredVersion(pluginId) as any

Check warning on line 92 in src/theme/DocVersionSuggestions/index.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Unexpected any. Specify a different type
const savePreferredVersionName =
docsPreferred?.savePreferredVersionName ||
(() => {
Expand Down
Loading