Lines Matching refs:path
7 path: string,
10 if (isReferencePath(path)) {
13 return navigation[getPageSection(path)] as NavigationRoute[];
17 export const isArchivePath = (path: string) => {
18 return Utilities.pathStartsWith('archive', path);
21 export const isVersionedPath = (path: string) => {
22 return Utilities.pathStartsWith('versions', path);
25 export const isReferencePath = (path: string) => {
26 return navigation.referenceDirectories.some(name => Utilities.pathStartsWith(name, path));
29 export const isHomePath = (path: string) => {
30 return navigation.homeDirectories.some(name => Utilities.pathStartsWith(name, path));
33 export const isGeneralPath = (path: string) => {
34 return navigation.generalDirectories.some(name => Utilities.pathStartsWith(name, path));
37 export const isFeaturePreviewPath = (path: string) => {
38 return navigation.featurePreview.some(name => Utilities.pathStartsWith(name, path));
41 export const isPreviewPath = (path: string) => {
42 return navigation.previewDirectories.some(name => Utilities.pathStartsWith(name, path));
45 export const isLearnPath = (path: string) => {
46 return navigation.learnDirectories.some(name => Utilities.pathStartsWith(name, path));
49 export const getPageSection = (path: string) => {
50 if (isReferencePath(path)) {
52 } else if (isGeneralPath(path)) {
54 } else if (isFeaturePreviewPath(path)) {
56 } else if (isPreviewPath(path)) {
58 } else if (isArchivePath(path)) {
60 } else if (isLearnPath(path)) {
62 } else if (isHomePath(path)) {