Files
rfc.vac.dev/docusaurus-utils/sidebar/helpers.js
Filip Pajic 32f0947064 chore: Routing Refactor (#3)
* scrape with 1:1 mapping to origin repo

* exclude .md extension from file path in URLs inside MDs

* removed legacy static files

* remove image path manipulation

* move scrapper to new folder

* sidebar custom ordering implemented
2024-04-25 09:29:22 +02:00

15 lines
330 B
JavaScript

function isIndexDocument(documentId, parentDirectory) {
if (!documentId) {
return false
}
return (
documentId.toUpperCase() === "README" ||
documentId.toUpperCase() === "INDEX" ||
(!!parentDirectory && documentId.toUpperCase() === parentDirectory.toUpperCase())
)
}
module.exports = {
isIndexDocument
}