Skip to content

Commit 83c4aac

Browse files
emikhasyak-oktasusanharper-okta
authored andcommitted
Adds landing page for Journeys
1 parent efbf187 commit 83c4aac

File tree

5 files changed

+45
-5
lines changed

5 files changed

+45
-5
lines changed

packages/@okta/vuepress-site/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ module.exports = ctx => ({
226226
primary_doc_nav: [
227227
{ text: 'Guides', link: '/docs/guides/' },
228228
{ text: 'Concepts', link: '/docs/concepts/' },
229+
{ text: 'Journeys', link: '/docs/journeys/' },
229230
{ text: 'Reference', link: '/docs/reference/' },
230231
{ text: 'Languages & SDKs', link: '/code/' },
231232
{ text: 'Release Notes', link: '/docs/release-notes/' },

packages/@okta/vuepress-site/.vuepress/scripts/build-overview-pages.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function getNavbarConstPages() {
1010
let cleared = splitted[i]
1111
.replace('export const concepts = ', '')
1212
.replace('export const guides = ', '')
13+
.replace('export const journeys = ', '')
1314
.replace('export const languagesSdk = ', '')
1415
.replace('export const reference = ', '')
1516
.replace('export const releaseNotes = ', '');
@@ -43,7 +44,7 @@ function generatedLinks(arr, parent = null) {
4344
const splittedPath = parent.path.split('/');
4445
if (parent.path.indexOf(parentTitle) >= 0) {
4546
path = parent.path.replace(parentTitle, sanitizeTitle(el));
46-
} else if (parent.path == '/code/') {
47+
} else if (parent.path == '/code/') {
4748
path = `/${splittedPath[1]}/${sanitizeTitle(el)}/`;
4849
} else {
4950
path = `/${splittedPath[1]}/${splittedPath[2]}/${sanitizeTitle(el)}/`;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
layout: Landing
3+
title: Concepts
4+
---
5+
6+
# Journeys
7+
8+
TODO:
9+
10+
## Featured journeys
11+
12+
TODO:

packages/@okta/vuepress-theme-prose/const/navbar.const.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,30 @@ export const guides = [
985985
}
986986
];
987987

988+
export const journeys = [
989+
{
990+
title: "Journeys",
991+
path: "/docs/journeys/",
992+
subLinks: [
993+
{
994+
title: "Okta Customer Identity (OCI)",
995+
path: "/docs/journeys/1",
996+
subLinks: [
997+
{ title: "Get Started with OCI", path: "/docs/journeys/2" },
998+
{ title: "Web Sign-in", path: "/docs/journeys/3" },
999+
{ title: "Mobile Sign-in", path: "/docs/journeys/4" },
1000+
]
1001+
},
1002+
{
1003+
title: "ISV Ecosystem",
1004+
path: "/docs/journeys/6",
1005+
subLinks: [
1006+
]
1007+
}
1008+
],
1009+
}
1010+
];
1011+
9881012
export const languagesSdk = [
9891013
{
9901014
title: "SDKs",
@@ -1025,7 +1049,7 @@ export const reference = [
10251049
path: "/docs/reference/okta-expression-language-in-identity-engine/",
10261050
}, {
10271051
title: "Rate Limits",
1028-
path: "/docs/reference/rate-limits/",
1052+
path: "/docs/reference/rate-limits/",
10291053
subLinks: [
10301054
{
10311055
title: "Rate limit dashboard",

packages/@okta/vuepress-theme-prose/mixins/SidebarItems.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import { getGuidesInfo, guideFromPath } from "../util/guides";
44
import {
55
concepts,
66
guides,
7+
journeys,
78
languagesSdk,
89
reference,
910
releaseNotes
1011
} from "../const/navbar.const";
11-
12+
1213
export default {
1314
data() {
1415
return {
@@ -23,6 +24,7 @@ export default {
2324
homeLink,
2425
...this.getGuides(),
2526
..._.cloneDeep(concepts),
27+
..._.cloneDeep(journeys),
2628
{
2729
title: "API Docs",
2830
path: "https://developer.okta.com/docs/api",
@@ -35,7 +37,7 @@ export default {
3537
},
3638
getNavigationData() {
3739
this.navigation = this.getNavigation().map(nav => {
38-
this.addStatesToLink(nav);
40+
this.addStatesToLink(nav);
3941
return nav;
4042
});
4143
return this.navigation;
@@ -60,7 +62,7 @@ export default {
6062
const splittedPath = parent.path.split('/')
6163
if (parent.path.indexOf(parentTitle) >= 0) {
6264
path = parent.path.replace(parentTitle, this.sanitizeTitle(link));
63-
} else if (parent.path == '/code/') {
65+
} else if (parent.path == '/code/') {
6466
path = `/${splittedPath[1]}/${this.sanitizeTitle(link)}/`;
6567
} else {
6668
path = `/${splittedPath[1]}/${splittedPath[2]}/${this.sanitizeTitle(link)}/`;

0 commit comments

Comments
 (0)