Skip to content

Commit

Permalink
Fixed links to point to /TypeGPU instead of /typegpu
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza committed Sep 9, 2024
1 parent bc66b3e commit 0c6ff52
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 31 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![TypeGPU (light mode)](./apps/typegpu-docs/public/typegpu-logo-light.svg#gh-light-mode-only)
![TypeGPU (dark mode)](./apps/typegpu-docs/public/typegpu-logo-dark.svg#gh-dark-mode-only)

[Website](https://docs.swmansion.com/typegpu)[Live Examples](https://docs.swmansion.com/typegpu/examples)[Documentation](https://docs.swmansion.com/typegpu/guides/getting-started)
[Website](https://docs.swmansion.com/TypeGPU)[Live Examples](https://docs.swmansion.com/TypeGPU/examples)[Documentation](https://docs.swmansion.com/TypeGPU/guides/getting-started)

</div>

Expand Down
4 changes: 2 additions & 2 deletions apps/typegpu-docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import importRawRedirectPlugin from './vite-import-raw-redirect-plugin';
// https://astro.build/config
export default defineConfig({
site: 'https://docs.swmansion.com',
base: 'typegpu',
base: 'TypeGPU',
vite: {
plugins: [
importRawRedirectPlugin({
Expand All @@ -36,7 +36,7 @@ export default defineConfig({
Head: './src/components/starlight/Head.astro',
},
social: {
github: 'https://github.com/software-mansion/typegpu',
github: 'https://github.com/software-mansion/TypeGPU',
},
sidebar: [
// {
Expand Down
6 changes: 3 additions & 3 deletions apps/typegpu-docs/src/components/ExampleLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ function SideMenu() {
<aside className="flex flex-col bg-white rounded-2xl w-[18.75rem] p-5 gap-5">
<header className="grid gap-5">
<div className="grid place-items-center">
<a href="/typegpu" className="block cursor-pointer">
<a href="/TypeGPU" className="block cursor-pointer">
<img
className="my-4 w-40"
src="/typegpu/typegpu-logo-light.svg"
src="/TypeGPU/typegpu-logo-light.svg"
alt="TypeGPU Logo"
/>
</a>
Expand All @@ -39,7 +39,7 @@ function SideMenu() {
TypeGPU.
</p>
<a
href="/typegpu/guides/getting-started"
href="/TypeGPU/guides/getting-started"
className="underline text-sm bg-gradient-to-r from-gradient-purple-dark to-gradient-blue-dark bg-clip-text text-transparent"
>
Learn more about TypeGPU here
Expand Down
2 changes: 1 addition & 1 deletion apps/typegpu-docs/src/components/FeatureCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const content = await Astro.slots.render('default');
]}>
<div
class="self-start p-3 border-2 border-special-stroke lg:rounded-3xl md:rounded-2xl rounded-xl">
<img class="w-8 md:w-12" src={`/typegpu/assets/${image}.svg`} alt={image} />
<img class="w-8 md:w-12" src={`/TypeGPU/assets/${image}.svg`} alt={image} />
</div>
<div>
<h3 class="pb-3 font-normal md:pb-4 text-grayscale-100">
Expand Down
2 changes: 1 addition & 1 deletion apps/typegpu-docs/src/components/GetStartedButton.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a class="w-full sm:w-auto" href="/typegpu/guides/getting-started">
<a class="w-full sm:w-auto" href="/TypeGPU/guides/getting-started">
<button
class="flex justify-center items-center gap-3 py-4 px-6 md:py-5 md:px-7 lg:px-8 lg:py-6 rounded-[6.25rem] bg-gradient-to-br from-gradient-purple to-gradient-blue text-grayscale-0 w-full">
<p>Get started</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ without mutating it in place.

<!-- TODO: Link to an implementation of Conway's Game of Life in TypeGPU -->
:::note
Examples of cellular automata include [Conway's Game of Life](https://playgameoflife.com/), our [Fluid Simulation](/typegpu/examples#example=simulation--fluid-double-buffering)
Examples of cellular automata include [Conway's Game of Life](https://playgameoflife.com/), our [Fluid Simulation](/TypeGPU/examples#example=simulation--fluid-double-buffering)
example and many more.
:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,4 +433,4 @@ const colorToInit = vec3f(0.2, 0.5, 1.0);
-});
```

If you want a more in-depth look at how to create your own data types, check out the [Data Types](/typegpu/guides/defining-data-types) guide.
If you want a more in-depth look at how to create your own data types, check out the [Data Types](/TypeGPU/guides/defining-data-types) guide.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const sampler = wgsl.sampler({
minFilter: 'linear',
});

const response = await fetch('/typegpu/plums.jpg');
const response = await fetch('/TypeGPU/plums.jpg');
const imageBitmap = await createImageBitmap(await response.blob());

const inParams: SampledTextureParams = {
Expand Down
8 changes: 4 additions & 4 deletions apps/typegpu-docs/src/layouts/PageLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ const { title } = Astro.props;
<title>{title ? `${title} |` : ''} TypeGPU</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/typegpu/favicon.svg" />
<link rel="sitemap" href="/typegpu/sitemap-index.xml" />
<link rel="icon" href="/TypeGPU/favicon.svg" />
<link rel="sitemap" href="/TypeGPU/sitemap-index.xml" />
<style is:global>
@font-face {
font-family: 'Aeonik';
src: url('/typegpu/fonts/Aeonik-Regular.woff') format('woff');
src: url('/TypeGPU/fonts/Aeonik-Regular.woff') format('woff');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Aeonik';
src: url('/typegpu/fonts/Aeonik-Medium.otf') format('opentype');
src: url('/TypeGPU/fonts/Aeonik-Medium.otf') format('opentype');
font-weight: 500;
font-style: normal;
font-display: swap;
Expand Down
15 changes: 8 additions & 7 deletions apps/typegpu-docs/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import SwmLogoSvg from '../assets/swm-logo.svg';
{/* Blurred background */}
</div>
<img
src="/typegpu/typegpu-logo-light.svg"
src="/TypeGPU/typegpu-logo-light.svg"
alt="TypeGPU Logo"
class="w-[14.5rem] md:w-[20rem] lg:w-[24rem]"
/>
Expand All @@ -69,7 +69,7 @@ import SwmLogoSvg from '../assets/swm-logo.svg';
class="flex flex-col items-center justify-center w-full gap-4 lg:gap-10 sm:flex-row">
<GetStartedButton />
{
// <a class="w-full sm:w-auto" href="/typegpu/examples"
// <a class="w-full sm:w-auto" href="/TypeGPU/examples"
// ><button
// class="py-4 px-6 md:py-5 md:px-7 lg:py-6 lg:px-8 rounded-[6.25rem] bg-gradient-to-br bg-white text-grayscale-100 w-full"
// >Explore live examples</button
Expand All @@ -82,12 +82,13 @@ import SwmLogoSvg from '../assets/swm-logo.svg';
<div
class="md:absolute overflow-hidden bg-grayscale-0 lg:max-w-[85rem] md:max-w-[58.5rem] lg:p-14 md:p-10 p-6 md:rounded-[3.75rem] lg:rounded-[5rem] rounded-[2rem] relative md:top-[100%] md:-translate-y-[50%] max-w-[34.5rem] sm:mb-[2.5rem]">
<video
src="/typegpu/assets/migration.mp4"
src="/TypeGPU/assets/migration.mp4"
autoplay="true"
loop="true"
muted="true"
controls="true"
class="lg:rounded-[2.5rem] md:rounded-[1.875rem] rounded-2xl shadow-tameplum-800/50 shadow-lg"></video>
class="lg:rounded-[2.5rem] md:rounded-[1.875rem] rounded-2xl shadow-tameplum-800/50 shadow-lg"
></video>
</div>
</section>

Expand Down Expand Up @@ -146,7 +147,7 @@ import SwmLogoSvg from '../assets/swm-logo.svg';

<img
class="hidden md:block lg:w-[56rem] w-[38.5rem]"
src="/typegpu/assets/illustration.svg"
src="/TypeGPU/assets/illustration.svg"
alt=""
/>
</section>
Expand All @@ -161,7 +162,7 @@ import SwmLogoSvg from '../assets/swm-logo.svg';
class="flex flex-col items-center lg:gap-20 gap-10 lg:max-w-[85rem] md:max-w-[58.5rem] w-full max-w-[34.5rem]">
<div class="w-full">
<img
src="/typegpu/typegpu-logomark-monolight.svg"
src="/TypeGPU/typegpu-logomark-monolight.svg"
alt="logo"
class="w-8 pb-6"
/>
Expand Down Expand Up @@ -207,7 +208,7 @@ import SwmLogoSvg from '../assets/swm-logo.svg';
</div>
<img
class="col-start-1 row-start-1"
src="/typegpu/assets/giant-typegpu.svg"
src="/TypeGPU/assets/giant-typegpu.svg"
/>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/software-mansion/typegpu.git"
"url": "git+https://github.com/software-mansion/TypeGPU.git"
},
"keywords": ["webgpu", "wgpu", "wgsl"],
"bugs": {
"url": "https://github.com/software-mansion/typegpu/issues"
"url": "https://github.com/software-mansion/TypeGPU/issues"
},
"homepage": "https://docs.swmansion.com/typegpu",
"homepage": "https://docs.swmansion.com/TypeGPU",
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@types/node": "^20.11.13",
Expand Down
6 changes: 3 additions & 3 deletions packages/typegpu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
![TypeGPU (light mode)](/apps/typegpu-docs/public/typegpu-logo-light.svg#gh-light-mode-only)
![TypeGPU (dark mode)](/apps/typegpu-docs/public/typegpu-logo-dark.svg#gh-dark-mode-only)

[Website](https://docs.swmansion.com/typegpu)[Live Examples](https://docs.swmansion.com/typegpu/examples)[Documentation](https://docs.swmansion.com/typegpu/guides/getting-started)
[Website](https://docs.swmansion.com/TypeGPU)[Live Examples](https://docs.swmansion.com/TypeGPU/examples)[Documentation](https://docs.swmansion.com/TypeGPU/guides/getting-started)

</div>

TypeScript library simplifying the WebGPU API and WGSL with zero-cost abstractions, type-safe data transfer and dependency injection.

## Documentation

We created a set of guides and tutorials to get you up and running fast. Check out our [Official Docs](https://docs.swmansion.com/typegpu/guides/getting-started)!
We created a set of guides and tutorials to get you up and running fast. Check out our [Official Docs](https://docs.swmansion.com/TypeGPU/guides/getting-started)!

## Live Examples

To show the flexibility and simplicity of **TypeGPU**, we provide the [Live Examples](https://docs.swmansion.com/typegpu/examples) platform. It allows you to change the example
To show the flexibility and simplicity of **TypeGPU**, we provide the [Live Examples](https://docs.swmansion.com/TypeGPU/examples) platform. It allows you to change the example
code in real-time!

## What's next?
Expand Down
6 changes: 3 additions & 3 deletions packages/typegpu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/software-mansion/typegpu.git"
"url": "git+https://github.com/software-mansion/TypeGPU.git"
},
"keywords": [
"webgpu",
Expand All @@ -66,9 +66,9 @@
"gpgpu"
],
"bugs": {
"url": "https://github.com/software-mansion/typegpu/issues"
"url": "https://github.com/software-mansion/TypeGPU/issues"
},
"homepage": "https://docs.swmansion.com/typegpu",
"homepage": "https://docs.swmansion.com/TypeGPU",
"devDependencies": {
"@webgpu/types": "^0.1.43",
"typescript": "^5.3.3",
Expand Down

0 comments on commit 0c6ff52

Please sign in to comment.