-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor HEAD and add schema information (#648)
fixed #647 Signed-off-by: Jonas Helming <[email protected]>
- Loading branch information
1 parent
dc8171f
commit e7f5825
Showing
16 changed files
with
155 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react' | ||
import useSiteMetadata from '../hooks/use-site-metadata' | ||
import AppleTouchIcon from '../resources/apple-touch-icon.png' | ||
import Favicon from '../resources/theia-favicon.svg' | ||
import Favicon196 from '../resources/theia-favicon-196x196.png' | ||
|
||
const BaseHead = ({ canonical }) => { | ||
const { title, description } = useSiteMetadata() | ||
return ( | ||
<> | ||
<html lang="en" /> | ||
<title>{title}</title> | ||
<meta name="description" content={description} /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#FFFFFF" /> | ||
{canonical && <link rel="canonical" href={`https://theia-ide.org${canonical}`} />} | ||
<link rel="apple-touch-icon" type="image/png" href={AppleTouchIcon} sizes="180x180" /> | ||
<link rel="icon" type="image/png" href={Favicon196} sizes="196x196" /> | ||
<link rel="icon" type="image/svg+xml" href={Favicon} sizes="any" /> | ||
<link href="https://fonts.googleapis.com/css?family=Anonymous+Pro&display=swap" rel="stylesheet" /> | ||
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500&display=swap" rel="stylesheet" /> | ||
</> | ||
) | ||
} | ||
|
||
export default BaseHead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import React from 'react' | ||
import BaseHead from './basehead' | ||
|
||
const HeadWithSchema = ({ canonical }) => ( | ||
<> | ||
<BaseHead canonical={canonical} /> | ||
{/* JSON-LD for Theia IDE */} | ||
<script | ||
type="application/ld+json" | ||
dangerouslySetInnerHTML={{ | ||
__html: JSON.stringify({ | ||
"@context": "https://schema.org", | ||
"@type": "SoftwareApplication", | ||
"name": "Theia IDE", | ||
"url": "https://theia-ide.org/#theiaide", | ||
"image": "https://theia-ide.org/static/TheiaIDE.png", | ||
"description": "Theia IDE is a modern, open-source, and flexible development environment (IDE) for developers on desktop and browser, featuring advanced AI-powered capabilities with full control over AI interactions.", | ||
"operatingSystem": "Linux, macOS, Windows", | ||
"applicationCategory": "DeveloperApplication", | ||
"applicationSubCategory": "IntegratedDevelopmentEnvironment", | ||
"softwareVersion": "1.55.0", | ||
"softwareRequirements": "Compatible with VS Code extensions", | ||
"author": { | ||
"@type": "Organization", | ||
"name": "Eclipse Foundation", | ||
"url": "https://www.eclipse.org/" | ||
}, | ||
"publisher": { | ||
"@type": "Organization", | ||
"name": "Eclipse Foundation", | ||
"url": "https://www.eclipse.org/" | ||
}, | ||
"releaseNotes": "https://eclipsesource.com/blogs/2024/11/07/eclipse-theia-1-54-release-news-and-noteworthy/", | ||
"keywords": [ | ||
"open-source IDE", | ||
"development environment", | ||
"AI-powered IDE", | ||
"VS Code extensions", | ||
"VS Code alternative" | ||
], | ||
"license": "Eclipse Public License 2.0", | ||
"featureList": [ | ||
"AI-powered", | ||
"Open-source", | ||
"Compatible with VS Code extensions", | ||
"Cross-platform support", | ||
"Runs in browser and desktop environments" | ||
] | ||
}) | ||
}} | ||
/> | ||
{/* JSON-LD for Theia Platform */} | ||
<script | ||
type="application/ld+json" | ||
dangerouslySetInnerHTML={{ | ||
__html: JSON.stringify({ | ||
"@context": "https://schema.org", | ||
"@type": "SoftwareApplication", | ||
"name": "Theia Platform", | ||
"url": "https://theia-ide.org/", | ||
"image": "https://theia-ide.org/static/TheiaPlatform.png", | ||
"description": "Theia Platform is an extensible open-source framework for building customizable integrated development environments (IDEs) for desktop and web.", | ||
"applicationCategory": "DeveloperApplication", | ||
"applicationSubCategory": "FrameworkApplication", | ||
"softwareRequirements": "Compatible with VS Code extensions", | ||
"operatingSystem": "Linux, macOS, Windows", | ||
"author": { | ||
"@type": "Organization", | ||
"name": "Eclipse Foundation", | ||
"url": "https://www.eclipse.org/" | ||
}, | ||
"publisher": { | ||
"@type": "Organization", | ||
"name": "Eclipse Foundation", | ||
"url": "https://www.eclipse.org/" | ||
}, | ||
"keywords": [ | ||
"custom IDE", "build custom IDE", "custom IDE Framework", | ||
"alternative VS Code", "alternative Code OSS", "build custom tool", | ||
"custom tool framework" | ||
], | ||
"license": "Eclipse Public License 2.0", | ||
"featureList": [ | ||
"AI-powered", "Open-source", "Build tailored IDEs and Tools", | ||
"Cross-platform support", "VS Code extension compatibility", | ||
"Desktop, browser and cloud support" | ||
] | ||
}) | ||
}} | ||
/> | ||
</> | ||
) | ||
|
||
export default HeadWithSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.