Skip to content

Commit

Permalink
correct module parsing for code-interpreter and deskop
Browse files Browse the repository at this point in the history
  • Loading branch information
0div committed Nov 27, 2024
1 parent aba91c8 commit e24e530
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 731 deletions.
17 changes: 8 additions & 9 deletions apps/web/prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ function getSubModules(pkg, href, dirPath) {
for (let i = 0; i < lines.length; i++) {
const line = lines[i]
if (
['js-sdk', 'code-interpreter-js-sdk', 'desktop-js-sdk'].includes(pkg)
[
'js-sdk',
'code-interpreter-js-sdk',
'code-interpreter-python-sdk',
'desktop-js-sdk',
'desktop-python-sdk',
].includes(pkg)
) {
if (line.startsWith('### ')) {
let title = line.slice(3).trim()
Expand All @@ -80,14 +86,7 @@ function getSubModules(pkg, href, dirPath) {
})
}
}
} else if (
[
'python-sdk',
'cli',
'code-interpreter-python-sdk',
'desktop-python-sdk',
].includes(pkg)
) {
} else if (['python-sdk', 'cli'].includes(pkg)) {
if (line.startsWith('## ')) {
const title = line.slice(2).trim()
if (title) {
Expand Down
Loading

0 comments on commit e24e530

Please sign in to comment.