Skip to content

Commit aba2356

Browse files
authored
docs: remove overview iframe (#363)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent 0367ab7 commit aba2356

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

docs/introduction/overview.mdx

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ iconType: "solid"
99

1010
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/).
1111

12-
export const metaCode = `from codegen import Codebase
12+
```python
13+
from codegen import Codebase
1314

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

2526
# Fast, in-memory code index
2627
codebase.commit()
27-
`
28-
29-
export const code = `def foo():
30-
pass
31-
32-
def bar():
33-
foo()
34-
35-
def baz():
36-
pass
37-
`
38-
39-
<iframe
40-
width="100%"
41-
height="370px"
42-
scrolling="no"
43-
src={`https://codegen.sh/embedded/codemod/?code=${encodeURIComponent(
44-
metaCode
45-
)}&input=${encodeURIComponent(code)}`}
46-
style={{
47-
backgroundColor: "#15141b",
48-
}}
49-
className="rounded-xl"
50-
></iframe>
28+
```
5129

5230

5331
<Note>

0 commit comments

Comments
 (0)