Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(weave): Add TS to Cookbooks sidebar and scripts to convert TS files into MD files for render in docs #3370

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

ash0ts
Copy link
Contributor

@ash0ts ash0ts commented Jan 10, 2025

Changes:
Added TypeScript examples and documentation generation scripts.
Updated sidebars.ts to include TypeScript documentation.
Created scripts for generating TypeScript markdown docs from .ts files.
Added example TypeScript project configuration (tsconfig.json) and dependencies.

@ash0ts ash0ts requested a review from a team as a code owner January 10, 2025 16:09
@ash0ts ash0ts changed the title feats(docs): Add TS to Cookbooks sidebar and scripts to convert TS files into MD files for render in docs feat(docs): Add TS to Cookbooks sidebar and scripts to convert TS files into MD files for render in docs Jan 10, 2025
@circle-job-mirror
Copy link

circle-job-mirror bot commented Jan 10, 2025

@ash0ts ash0ts changed the title feat(docs): Add TS to Cookbooks sidebar and scripts to convert TS files into MD files for render in docs docs(weave): Add TS to Cookbooks sidebar and scripts to convert TS files into MD files for render in docs Jan 10, 2025
@J2-D2-3PO J2-D2-3PO self-requested a review January 10, 2025 22:18
@J2-D2-3PO J2-D2-3PO requested a review from a team as a code owner January 10, 2025 23:00
@J2-D2-3PO
Copy link
Contributor

@ash0ts looks like docs team can now approve changes, but it would probably be a good idea to get someone from @wandb/weave-team to take a look

```

```typescript
function stripUserInput(userInput: string): string {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is duplicating the code above?

expected: "I write well"
},
{
userInput: "GPT-4 is smartest AI model.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to consider changing this example to avoid the appearance of having favorites :-)

@@ -293,7 +390,7 @@ On a high-level the steps to create custom Scorer are quite simple:

</TabItem>
<TabItem value="typescript" label="TypeScript">
```plaintext
```typescript
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't change this until there is code here - it will cause unwanted syntax highlighting of keywords.

},
"keywords": [],
"author": "",
"license": "ISC",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right?

}
}

main();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should end files with trailing newline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants