Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 0 additions & 4 deletions frontend/src/lib/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ class DocumentCache {
* @param path The path of the asset to fetch
*/
public async get(path: string): Promise<CacheEntry | null> {
// Stupid hack fix because I don't want to do a real fix
if (path.startsWith('docs')) {
path = path.replace('docs', '');
}
const hasKey = this.values.has(path);
let entry: CacheEntry;
// Re-insert to mark it as most recently accessed
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/components/sidebar/FileNavigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ last_modified_date: ${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}
children={child.children}
siblings={children}
indent={indent + 1.5}
path={path + child.name}
path={path === 'docs' ? child.name : path + child.name}
{fileSelectHandler}
/>
{:else}
Expand All @@ -243,7 +243,7 @@ last_modified_date: ${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}
children={child.children}
siblings={children}
indent={indent + 1}
path={path + child.name + '/'}
path={path === 'docs' ? child.name + '/' : path + child.name + '/'}
{fileSelectHandler}
/>
{/if}
Expand Down