Skip to content

Commit 6b5e494

Browse files
feat: save wiki section structure to server cache (#257)
* feat: save wiki section structure to server cache * Update api/api.py for backward compatibility Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent dabce48 commit 6b5e494

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

api/api.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ class RepoInfo(BaseModel):
6666
repoUrl: Optional[str] = None
6767

6868

69+
class WikiSection(BaseModel):
70+
"""
71+
Model for the wiki sections.
72+
"""
73+
id: str
74+
title: str
75+
pages: List[str]
76+
subsections: Optional[List[str]] = None
77+
78+
6979
class WikiStructureModel(BaseModel):
7080
"""
7181
Model for the overall wiki structure.
@@ -74,6 +84,8 @@ class WikiStructureModel(BaseModel):
7484
title: str
7585
description: str
7686
pages: List[WikiPage]
87+
sections: Optional[List[WikiSection]] = None
88+
rootSections: Optional[List[str]] = None
7789

7890
class WikiCacheData(BaseModel):
7991
"""

0 commit comments

Comments
 (0)