@murshisoft/docus 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/routing.ts +3 -8
- package/package.json +1 -1
package/modules/routing.ts
CHANGED
|
@@ -22,14 +22,9 @@ export default defineNuxtModule({
|
|
|
22
22
|
extendPages((pages) => {
|
|
23
23
|
const landingTemplate = resolve('../app/templates/landing.vue')
|
|
24
24
|
|
|
25
|
-
if
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
path: '/:lang?',
|
|
29
|
-
file: landingTemplate,
|
|
30
|
-
})
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
25
|
+
// Only add custom routes if i18n is not enabled
|
|
26
|
+
// When i18n is enabled, it handles routing itself
|
|
27
|
+
if (!isI18nEnabled) {
|
|
33
28
|
pages.push({
|
|
34
29
|
name: 'index',
|
|
35
30
|
path: '/',
|