diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index aed033fa..7c888389 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -3,6 +3,9 @@ on: pull_request: workflow_dispatch: +env: + NUXT_SITE_ENV: staging # used for NuxtSEO to disable things like indexing on staging + permissions: checks: write contents: read diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 19ef57fa..9303be1c 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -3,6 +3,9 @@ on: push: branches: [staging] +env: + NUXT_SITE_ENV: staging # used for NuxtSEO to disable things like indexing on staging + jobs: build_and_deploy: env: diff --git a/app.vue b/app.vue index 6a1cbbdf..2865946e 100644 --- a/app.vue +++ b/app.vue @@ -40,7 +40,9 @@ useSeoMeta({ twitterImageAlt: 'zkSync — Accelerating the mass adoption of crypto for personal sovereignty.', }); -defineOgImage({ component: 'OgImageCommunityCode' }); +defineOgImage({ + component: 'OgImageZK', +}); provide('navigation', navigation); @@ -49,7 +51,7 @@ provide('navigation', navigation);
- + diff --git a/components/IconOrbit.vue b/components/IconOrbit.vue new file mode 100644 index 00000000..b27d17b9 --- /dev/null +++ b/components/IconOrbit.vue @@ -0,0 +1,321 @@ + + + + + diff --git a/layouts/tutorials.vue b/layouts/tutorials.vue index 6b07fb20..b28db037 100644 --- a/layouts/tutorials.vue +++ b/layouts/tutorials.vue @@ -4,10 +4,8 @@ const route = useRoute(); if (!route.path) { throw new Error('Route path is not defined'); } -console.log('PATH', route); const { data: info } = await useAsyncData(`${route.path}-info`, () => { - console.log('ROUTE', route.fullPath); return queryContent(`${route.fullPath}/_info`).findOne(); }); @@ -21,25 +19,6 @@ const { data: navigation } = await useAsyncData(`${route.path}-sidenav`, () => { return fetchContentNavigation(query); }); -// const links = computed(() => { -// const pageLinks = navigation.value; -// return [ -// { -// label: 'Tutorials', -// icon: 'i-heroicons-arrow-left-circle', -// to: '/tutorials', -// }, -// { -// label: info.value?.title || 'Guide', -// collapsible: false, -// children: pageLinks[0].children[0].children.map((item) => ({ -// label: item.title, -// to: item._path, -// })), -// }, -// ]; -// }); -console.log('WHY INFO', info.value); const links = [ { label: 'Tutorials', diff --git a/nuxt.config.ts b/nuxt.config.ts index f1223188..b7fd030e 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -2,4 +2,9 @@ export default defineNuxtConfig({ extends: [['github:matter-labs/docs-nuxt-template', { install: true }]], modules: ['@nuxt/content', '@nuxt/ui', '@nuxt/eslint'], + runtimeConfig: { + public: { + app: 'code', + }, + }, }); diff --git a/pages/index.vue b/pages/index.vue index 148af5f5..0734a5c7 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -16,10 +16,29 @@ useSeoMeta({