Skip to content

Commit 7c37594

Browse files
committed
docs: Add links to codegen in more places
1 parent a36e137 commit 7c37594

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

docs/core/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,5 +668,11 @@ groupId="Demos"
668668
</Tabs>
669669

670670
<p style={{textAlign: 'center'}}>
671-
<Link className="button button--secondary" to="/demos">More Demos</Link>
671+
<Link className="button button--secondary" to="/demos">More Demos</Link>&nbsp;
672+
<Link className="button button--secondary" to="https://chatgpt.com/g/g-682609591fe48191a6850901521b4e4b-typescript-rest-codegen"><img src="/img/gpt.svg" alt="Codegen GPT" style={{
673+
height: '1em', // Match font size
674+
verticalAlign: '-0.125em', // Fine-tune: try -0.125em or 'middle'
675+
display: 'inline', // Inline with text
676+
}}
677+
/> Codegen</Link>
672678
</p>

docs/rest/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Tabs from '@theme/Tabs';
1111
import TabItem from '@theme/TabItem';
1212
import PkgTabs from '@site/src/components/PkgTabs';
1313
import TypeScriptEditor from '@site/src/components/TypeScriptEditor';
14+
import Link from '@docusaurus/Link';
1415

1516
<PkgTabs pkgs="@data-client/rest" />
1617

@@ -336,3 +337,21 @@ additional requests.
336337
When using TypeScript (optional), version 4.0 or above is required.
337338

338339
:::
340+
341+
342+
<p>
343+
<center>
344+
<Link className="button button--secondary button--sm" to="https://chatgpt.com/g/g-682609591fe48191a6850901521b4e4b-typescript-rest-codegen"><img src="/img/gpt.svg" alt="Codegen GPT" style={{
345+
height: '1em', // Match font size
346+
verticalAlign: '-0.125em', // Fine-tune: try -0.125em or 'middle'
347+
display: 'inline', // Inline with text
348+
}}
349+
/> Codegen</Link>&nbsp;
350+
<Link className="button button--secondary button--sm" to="https://github.com/reactive/data-client/blob/master/.github/instructions/rest.instructions.md"><img src="/img/copilot.svg" alt="Github Copilot" style={{
351+
height: '1em', // Match font size
352+
verticalAlign: '-0.125em', // Fine-tune: try -0.125em or 'middle'
353+
display: 'inline', // Inline with text
354+
}}
355+
/> Instructions</Link>
356+
</center>
357+
</p>

website/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ const config: Config = {
570570
to: 'https://www.npmjs.com/package/@data-client/react',
571571
},
572572
{
573-
label: 'Codgen REST APIs',
573+
label: 'REST Codegen',
574574
to: 'https://chatgpt.com/g/g-682609591fe48191a6850901521b4e4b-typescript-rest-codegen',
575575
},
576576
/*{

website/src/pages/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,21 @@ function HomepageEnder() {
6969
<section className={'hero'}>
7070
<div className="container">
7171
<div className={styles.buttons}>
72+
<Link
73+
className="button button--secondary"
74+
to="https://chatgpt.com/g/g-682609591fe48191a6850901521b4e4b-typescript-rest-codegen"
75+
>
76+
<img
77+
src="/img/gpt.svg"
78+
alt="Codegen GPT"
79+
style={{
80+
height: '1em', // Match font size
81+
verticalAlign: '-0.125em', // Fine-tune: try -0.125em or 'middle'
82+
display: 'inline', // Inline with text
83+
}}
84+
/>{' '}
85+
Codegen
86+
</Link>
7287
<Link
7388
className="button button--primary"
7489
to="/docs/getting-started/installation"

0 commit comments

Comments
 (0)