Skip to content

docs: remove overview iframe #363

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

Merged
merged 2 commits into from
Feb 7, 2025
Merged
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
28 changes: 3 additions & 25 deletions docs/introduction/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ iconType: "solid"

It provides a scriptable interface to a powerful, multi-lingual language server built on top of [Tree-sitter](https://tree-sitter.github.io/tree-sitter/).

export const metaCode = `from codegen import Codebase
```python
from codegen import Codebase

# Codegen builds a complete graph connecting
# functions, classes, imports and their relationships
Expand All @@ -24,30 +25,7 @@ for function in codebase.functions:

# Fast, in-memory code index
codebase.commit()
`

export const code = `def foo():
pass

def bar():
foo()

def baz():
pass
`

<iframe
width="100%"
height="370px"
scrolling="no"
src={`https://codegen.sh/embedded/codemod/?code=${encodeURIComponent(
metaCode
)}&input=${encodeURIComponent(code)}`}
style={{
backgroundColor: "#15141b",
}}
className="rounded-xl"
></iframe>
```


<Note>
Expand Down