Skip to content

Commit bb57e74

Browse files
author
codegen-bot
committed
color updates
1 parent 5f5cafe commit bb57e74

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

docs/introduction/getting-started.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This will:
5757

5858
## Initializing a Codebase
5959

60-
Instantiating a [`Codebase`](/api-reference/core/Codebase) will automatically parse a codebase and make it available for manipulation.
60+
Instantiating a [Codebase](/api-reference/core/Codebase) will automatically parse a codebase and make it available for manipulation.
6161

6262
```python
6363
from codegen import Codebase
@@ -83,10 +83,10 @@ Let's explore the codebase we just initialized.
8383

8484
Here are some common patterns for code navigation in Codegen:
8585

86-
- Iterate over all [`Functions`](/api-reference/core/Function) with [`Codebase.functions`](/api-reference/core/Codebase#functions)
87-
- View class inheritance with [`Class.superclasses`](/api-reference/core/Class#superclasses)
88-
- View function call-sites with [`Function.call_sites`](/api-reference/core/Function#call-sites)
89-
- View function usages with [`Function.usages`](/api-reference/core/Function#usages)
86+
- Iterate over all [Functions](/api-reference/core/Function) with [Codebase.functions](/api-reference/core/Codebase#functions)
87+
- View class inheritance with [Class.superclasses](/api-reference/core/Class#superclasses)
88+
- View function call-sites with [Function.call_sites](/api-reference/core/Function#call-sites)
89+
- View function usages with [Function.usages](/api-reference/core/Function#usages)
9090

9191
```python
9292
# Print overall stats
@@ -175,8 +175,8 @@ codebase.commit()
175175

176176
<Warning>
177177
In order to commit changes to your filesystem, you must call
178-
[`Codebase.commit()`](/api-reference/core/Codebase#commit). Learn more about
179-
[Commit and Reset](/building-with-codegen/commit-and-reset).
178+
[codebase.commit()](/api-reference/core/Codebase#commit). Learn more about
179+
[commit() and reset()](/building-with-codegen/commit-and-reset).
180180
</Warning>
181181

182182
### Finding Specific Content

docs/snippets/Attribute.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const Attribute = ({ type, description }) => (
2-
<div className="py-6 first:pt-3 dark:border-gray-300/[0.06] text-sm font-normal">
2+
<div className="pl-4 py-6 first:pt-3 dark:border-zinc-300/[0.06] text-sm font-normal">
33
<div className="inline-grid grid-cols-[auto_auto] gap-1 font-mono py-2">
44
{type}
55
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const HorizontalDivider = ({light=false}) => (
22
<div className="divide-y">
3-
<div className={`divide-y ${light ? "dark:border-gray-300/[0.06]" : "border-gray-600"}`}></div>
4-
<div className={`divide-y ${light ? "dark:border-gray-300/[0.06]" : "border-gray-600"}`}></div>
3+
<div className={`divide-y ${light ? "dark:border-zinc-300/[0.06]" : "border-zinc-600"}`}></div>
4+
<div className={`divide-y ${light ? "dark:border-zinc-300/[0.06]" : "border-zinc-600"}`}></div>
55
</div>
66
)

docs/snippets/Parameter.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const Parameter = ({name, type, description, defaultValue}) => (
2-
<div className="py-6 first:pt-3 dark:border-gray-300/[0.06] text-sm font-normal">
2+
<div className="py-6 first:pt-3 dark:border-zinc-300/[0.06] text-sm font-normal">
33
<div className="flex justify-between items-start font-mono">
44
<div className="flex gap-4 items-start">
55
<div className="flex gap-1 items-center text-sm text-primary mt-2">
@@ -13,7 +13,7 @@ export const Parameter = ({name, type, description, defaultValue}) => (
1313
<div className="flex-shrink-0 mt-2">
1414
{defaultValue ? (
1515
<div className="flex gap-1 items-center text-sm border border-purple-500 px-2 py-0.5 rounded">
16-
<span className="text-gray-500">default:</span>
16+
<span className="text-zinc-500">default:</span>
1717
<span className="text-purple-500">{defaultValue}</span>
1818
</div>
1919
) : (

docs/snippets/ParameterWrapper.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const ParameterWrapper = ({ children }) => (
22
<div className="pl-6 divide-y">
33
<h4 className="font-bold">Parameters</h4>
4-
<div className="divide-y dark:border-gray-300/[0.06]">
4+
<div className="divide-y dark:border-zinc-300/[0.06]">
55
{children}
66
</div>
77
</div>

docs/snippets/Return.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const Return = ({return_type, description}) => (
22
<div className="pl-6 divide-y">
33
<h4 className="font-bold">Returns</h4>
4-
<div className="dark:border-gray-300/[0.06] ">
4+
<div className="dark:border-zinc-300/[0.06] ">
55
<div className="py-6 first:pt-3 text-sm font-normal">
66
<div className="flex gap-4 items-center">
77
<div className="inline-grid grid-cols-[auto_auto] gap-1 font-mono py-2">

0 commit comments

Comments
 (0)