Skip to content

Commit

Permalink
feat: switch to use docs layer theme
Browse files Browse the repository at this point in the history
  • Loading branch information
itsacoyote committed May 8, 2024
1 parent 58a48fa commit a29166e
Show file tree
Hide file tree
Showing 29 changed files with 40 additions and 584 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

12 changes: 0 additions & 12 deletions .eslintrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"files.eol": "\n",
"[markdown]": {
"editor.wordWrap": "on"
}
},
"eslint.experimental.useFlatConfig": true
}
100 changes: 5 additions & 95 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,120 +4,30 @@
* globally available `useAppConfig()`.
*/
export default defineAppConfig({
ui: {
// potential config options: https://github.com/nuxt/ui/tree/dev/src/runtime/ui.config
variables: {
light: {
background: '255 252 255',
// foreground: '147 68 68',
},
dark: {
background: '17 20 43',
// foreground: 'var(--color-gray-200)',
},
// header: {
// height: '1rem',
// },
},
primary: 'zkPurple',
gray: 'zkSlate',
footer: {
bottom: {
left: 'text-sm text-gray-500 dark:text-gray-400',
wrapper: 'border-t border-gray-200 dark:border-gray-800',
},
},
content: {
prose: {
code: {
icon: {
go: 'vscode-icons:file-type-go',
},
},
},
},
'navigation-accordion': {
button: {
label: 'text-sm/6 font-semibold text-left text-pretty',
},
},
},
seo: {
siteName: 'zkSync Docs',
siteName: 'ZKsync SDK Docs',
},
header: {
logo: {
alt: '',
light: '/logos/zksync_logo_black.svg',
dark: '/logos/zksync_logo.svg',
},
search: true,
colorMode: true,
links: [
{
icon: 'i-simple-icons-github',
to: 'https://github.com/matter-labs/zksync-docs',
target: '_blank',
'aria-label': 'zkSync Docs on GitHub',
title: 'zkSync Docs on GitHub',
},
],
},
footer: {
credits: 'Made with ❤️ by Matter Labs & Community',
colorMode: false,
links: [
{
icon: 'i-zksync-matterlabs-logo',
to: 'https://matter-labs.io',
target: '_blank',
'aria-label': 'MatterLabs Website',
},
{
icon: 'i-simple-icons-x',
to: 'https://x.com/zksync',
target: '_blank',
'aria-label': 'zkSync on X',
},
{
icon: 'i-simple-icons-github',
to: 'https://github.com/matter-labs',
target: '_blank',
'aria-label': 'zkSync on GitHub',
},
{
icon: 'i-simple-icons-discord',
to: 'https://join.zksync.dev/',
to: 'https://github.com/zksync-sdk/sdk-docs',
target: '_blank',
'aria-label': 'zkSync on Discord',
'aria-label': 'ZKsync SDK Docs on GitHub',
title: 'ZKsync SDK Docs on GitHub',
},
],
},
toc: {
title: 'Table of Contents',
bottom: {
title: 'Community',
edit: 'https://github.com/matter-labs/zksync-docs/edit/main/content',
links: [
// {
// icon: 'i-heroicons-star',
// label: 'Star on GitHub',
// to: 'https://github.com/nuxt/ui',
// target: '_blank',
// },
// {
// icon: 'i-heroicons-book-open',
// label: 'Nuxt UI Pro docs',
// to: 'https://ui.nuxt.com/pro/guide',
// target: '_blank',
// },
// {
// icon: 'i-simple-icons-nuxtdotjs',
// label: 'Purchase a license',
// to: 'https://ui.nuxt.com/pro/purchase',
// target: '_blank',
// },
],
edit: 'https://github.com/zksync-sdk/sdk-docs/edit/staging/content',
},
},
});
4 changes: 1 addition & 3 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script setup lang="ts">
import type { ParsedContent } from '@nuxt/content/dist/runtime/types';
import FooterComponent from './components/FooterComponent.vue';
import HeaderComponent from './components/HeaderComponent.vue';
const { seo } = useAppConfig();
Expand Down Expand Up @@ -54,7 +52,7 @@ provide('navigation', navigation);
<div>
<NuxtLoadingIndicator />

<HeaderComponent />
<HeaderComponent :links="[]" />

<UMain>
<NuxtLayout>
Expand Down
16 changes: 0 additions & 16 deletions assets/zksync-icons.ts

This file was deleted.

Binary file modified bun.lockb
Binary file not shown.
23 changes: 0 additions & 23 deletions components/FooterComponent.vue

This file was deleted.

54 changes: 0 additions & 54 deletions components/HeaderComponent.vue

This file was deleted.

29 changes: 0 additions & 29 deletions components/OgImage/OgImageDocs.vue

This file was deleted.

37 changes: 0 additions & 37 deletions components/content/ContentSwitcher.vue

This file was deleted.

16 changes: 0 additions & 16 deletions components/content/DisplayPartial.vue

This file was deleted.

30 changes: 0 additions & 30 deletions components/content/ExternalLink.vue

This file was deleted.

2 changes: 1 addition & 1 deletion content/sdk/11.go/00.getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and provides a starting point for those newer to zkSync Era.

In order to install SDK for zkSync Era, run the command below in your terminal.

```console
```shell
go get github.com/zksync-sdk/zksync2-go
```

Expand Down
Loading

0 comments on commit a29166e

Please sign in to comment.