getRelativeEntryPath() — astro Function Reference
Architecture documentation for the getRelativeEntryPath() function in utils.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 37024835_7752_ff66_8c2b_7bd53013a0a9["getRelativeEntryPath()"] 7a09e708_c090_71c0_8138_7343699b1865["utils.ts"] 37024835_7752_ff66_8c2b_7bd53013a0a9 -->|defined in| 7a09e708_c090_71c0_8138_7343699b1865 90d02dad_e410_0ee4_8314_e758fde35b04["getDataEntryId()"] 90d02dad_e410_0ee4_8314_e758fde35b04 -->|calls| 37024835_7752_ff66_8c2b_7bd53013a0a9 f61711fc_04d4_ab3a_9fb1_968dd83addc6["getContentEntryIdAndSlug()"] f61711fc_04d4_ab3a_9fb1_968dd83addc6 -->|calls| 37024835_7752_ff66_8c2b_7bd53013a0a9 style 37024835_7752_ff66_8c2b_7bd53013a0a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/utils.ts lines 385–389
function getRelativeEntryPath(entry: URL, collection: string, contentDir: URL) {
const relativeToContent = path.relative(fileURLToPath(contentDir), fileURLToPath(entry));
const relativeToCollection = path.relative(collection, relativeToContent);
return relativeToCollection;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getRelativeEntryPath() do?
getRelativeEntryPath() is a function in the astro codebase, defined in packages/astro/src/content/utils.ts.
Where is getRelativeEntryPath() defined?
getRelativeEntryPath() is defined in packages/astro/src/content/utils.ts at line 385.
What calls getRelativeEntryPath()?
getRelativeEntryPath() is called by 2 function(s): getContentEntryIdAndSlug, getDataEntryId.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free