forked from ballerina-platform/ballerina-dev-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next-sitemap.config.js
130 lines (122 loc) · 5.97 KB
/
next-sitemap.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/** @type {import('next-sitemap').IConfig} */
const config = {
siteUrl: 'https://ballerina.io/',
generateRobotsTxt: false, // (optional)
sitemapSize: 5000,
generateIndexSitemap: false,
additionalPaths: async (config) => {
const result = []
// using transformation from the current configuration
// result.push(await config.transform(config, '/additional-page-3'))
const additionalUrls=['/1.2/learn/generating-ballerina-code-for-protocol-buffer-definitions/',
'/1.2/learn/keeping-ballerina-up-to-date/',
'/1.2/learn/calling-java-code-from-ballerina/',
'/1.2/learn/structuring-ballerina-code/',
'/1.2/learn/observing-ballerina-code/',
'/1.2/learn/quick-tour/',
'/1.2/learn/setting-up-visual-studio-code/run-and-debug/',
'/1.2/learn/setting-up-visual-studio-code/graphical-editor/',
'/1.2/learn/setting-up-visual-studio-code/language-intelligence/',
'/1.2/learn/setting-up-visual-studio-code/',
'/1.2/learn/deployment/azure-functions/',
'/1.2/learn/deployment/aws-lambda/',
'/1.2/learn/using-the-openapi-tools/',
'/1.2/learn/testing-ballerina-code/testing-quick-start/',
'/1.2/learn/testing-ballerina-code/mocking/',
'/1.2/learn/testing-ballerina-code/executing-tests/',
'/1.2/learn/testing-ballerina-code/writing-tests/',
'/1.2/learn/installing-ballerina/',
'/1.2/learn/documenting-ballerina-code/',
'/1.2/learn/using-the-cli-tools/',
'/1.2/learn/coding-conventions/expressions/',
'/1.2/learn/coding-conventions/annotations_documentation_and_comments/',
'/1.2/learn/coding-conventions/top-level-definitions/',
'/1.2/learn/coding-conventions/operators_keywords_and_types/',
'/1.2/learn/coding-conventions/statements/',
'/1.2/learn/coding-conventions/',
'/1.2/learn/bal-command/grpc/',
'/1.2/learn/bal-command/grpc',
'/1.2/learn/bal-command/update-tool/',
'/1.2/learn/bal-command/update-tool',
'/1.2/learn/calling-java-code-from-ballerina-and-vice-versa/',
'/1.2/learn/calling-java-code-from-ballerina-and-vice-versa',
'/1.2/learn/organizing-ballerina-code/package-layout/',
'/1.2/learn/organizing-ballerina-code/package-layout',
'/1.2/learn/organizing-ballerina-code/modules/',
'/1.2/learn/organizing-ballerina-code/modules',
'/1.2/learn/observing-ballerina-programs/observing-your-application-with-prometheus-grafana-and-jaeger/',
'/1.2/learn/observing-ballerina-programs/observing-your-application-with-prometheus-grafana-and-jaeger',
'/1.2/learn/hello-world/writing-your-first-ballerina-program/',
'/1.2/learn/hello-world/writing-your-first-ballerina-program',
'/1.2/learn/hello-world/creating-your-first-ballerina-package/',
'/1.2/learn/hello-world/creating-your-first-ballerina-package',
'/1.2/learn/visual-studio-code-extension/debugging/',
'/1.2/learn/visual-studio-code-extension/debugging',
'/1.2/learn/visual-studio-code-extension/diagram-editor/',
'/1.2/learn/visual-studio-code-extension/diagram-editor',
'/1.2/learn/visual-studio-code-extension/language-support/',
'/1.2/learn/visual-studio-code-extension/language-support',
'/1.2/learn/visual-studio-code-extension/vs-code-quick-start/',
'/1.2/learn/visual-studio-code-extension/vs-code-quick-start',
'/1.2/learn/deployment/azure-functions/',
'/1.2/learn/deployment/azure-functions',
'/1.2/learn/deployment/aws-lambda/',
'/1.2/learn/deployment/aws-lambda',
'/1.2/learn/bal-command/openapi/',
'/1.2/learn/bal-command/openapi',
'/1.2/learn/testing-ballerina-code/quick-start-on-testing/',
'/1.2/learn/testing-ballerina-code/quick-start-on-testing',
'/1.2/learn/testing-ballerina-code/mocking/',
'/1.2/learn/testing-ballerina-code/mocking',
'/1.2/learn/visual-studio-code-extension/executing-tests/',
'/1.2/learn/visual-studio-code-extension/executing-tests',
'/1.2/learn/testing-ballerina-code/writing-tests/',
'/1.2/learn/testing-ballerina-code/writing-tests',
'/1.2/learn/installing-ballerina/setting-up-ballerina/',
'/1.2/learn/installing-ballerina/setting-up-ballerina',
'/1.2/learn/installing-ballerina/installation-options/',
'/1.2/learn/installing-ballerina/installation-options',
'/1.2/learn/installing-ballerina/building-from-source/',
'/1.2/learn/installing-ballerina/building-from-source',
'/1.2/learn/generating-code-documentation/',
'/1.2/learn/generating-code-documentation',
'/1.2/learn/bal-command/cli-commands/ment/azure-functions/',
'/1.2/learn/bal-command/cli-commands',
'/1.2/learn/style-guide/expressions/',
'/1.2/learn/style-guide/expressions',
'/1.2/learn/style-guide/annotations-documentation-and-comments/',
'/1.2/learn/style-guide/annotations-documentation-and-comments',
'/1.2/learn/style-guide/top-level-definitions/',
'/1.2/learn/style-guide/top-level-definitions/',
'/1.2/learn/style-guide/operators-keywords-and-types/',
'/1.2/learn/style-guide/operators-keywords-and-types',
'/1.2/learn/style-guide/statements/',
'/1.2/learn/style-guide/statements',
'/1.2/learn/style-guide/coding-conventions/',
'/1.2/learn/style-guide/coding-conventions',
'/spec/lang/2019R2/',
'/spec/lang/draft/',
'/spec/lang/master/',
'/spec/lang/2019R1/',
'/spec/lang/2020R1/',
'/spec/lang/2019R3/',
'/spec/lang/draft/latest/',
'/spec/lang/2019R3/experimental.html',
'/spec/lang/2021R1/',
'/spec/lang/2022R1/',
'/spec/lang/2022R2/',
'/spec/lang/2022R3/',
'/spec/lang/2022R4/',
]
async function asyncCall(element) {
result.push(await config.transform(config, element))
}
additionalUrls.forEach(element => {
asyncCall(element);
});
return result
}
// ...other options
}
// export default config
module.exports = config;