Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args: ['--maxkb=600']
- id: fix-encoding-pragma

- repo: https://github.com/commitizen-tools/commitizen
Expand Down
Binary file added docs/public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon.ico
Binary file not shown.
Binary file modified docs/public/images/command.cycle-db-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/command.cycle-db-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
37 changes: 34 additions & 3 deletions docs/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import {DocsThemeConfig, useTheme} from 'nextra-theme-docs'
import { useConfig } from 'nextra-theme-docs'

const Logo = () => {
const {resolvedTheme} = useTheme();
const title = 'Laravel CycleORM Adapter';
Expand All @@ -13,7 +15,7 @@ const Logo = () => {
</style>
<g>
<path
d="M881.02,603.19V445.23h31.58v157.96H881.02z M912.61,634.77v-31.58h31.58v31.58H912.61z M944.19,603.19v-63.17h31.58v63.17 H944.19z M975.77,634.77v-31.58h31.58v31.58H975.77z M1007.36,603.19V445.23h31.62v157.96H1007.36z"></path>
d="M881.02,603.19V445.23h31.58v157.96H881.02z M912.61,634.77v-31.58h31.58v31.58H912.61z M944.19,603.19v-63.17h31.58v63.17 H944.19z M975.77,634.77v-31.58h31.58v31.58H975.77z M1007.36,603.19V445.23h31.62v157.96H1007.36z"></path>
<rect x="975.77" y="603.19" className="st2" width="31.58" height="31.58"></rect>
<rect x="944.19" y="540.02" className="st3" width="31.58" height="63.17"></rect>
<rect x="881.02" y="445.23" className="st1" width="31.58" height="157.96"></rect>
Expand All @@ -30,7 +32,7 @@ const Logo = () => {
</style>
<g>
<path className="st0"
d="M881.02,603.19V445.23h31.58v157.96H881.02z M912.61,634.77v-31.58h31.58v31.58H912.61z M944.19,603.19v-63.17 h31.58v63.17H944.19z M975.77,634.77v-31.58h31.58v31.58H975.77z M1007.36,603.19V445.23h31.62v157.96H1007.36z"></path>
d="M881.02,603.19V445.23h31.58v157.96H881.02z M912.61,634.77v-31.58h31.58v31.58H912.61z M944.19,603.19v-63.17 h31.58v63.17H944.19z M975.77,634.77v-31.58h31.58v31.58H975.77z M1007.36,603.19V445.23h31.62v157.96H1007.36z"></path>
<rect x="975.77" y="603.19" className="st2" width="31.58" height="31.58"></rect>
<rect x="944.19" y="540.02" className="st3" width="31.58" height="63.17"></rect>
<rect x="881.02" y="445.23" className="st1" width="31.58" height="157.96"></rect>
Expand Down Expand Up @@ -70,7 +72,36 @@ const config: DocsThemeConfig = {
sidebar: {
toggleButton: true,
defaultMenuCollapseLevel: 3,
}
},
head: function useHead() {
const { title } = useConfig()
const socialCard = 'https://laravel-cycle-orm-adapter.wayof.dev/og.png'

return (
<>
<meta name="msapplication-TileColor" content="#fff" />
<meta name="theme-color" content="#fff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta name="description" content="Laravel package that provides Cycle ORM integration."/>
<meta name="og:description" content="Laravel package that provides Cycle ORM integration."/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content={socialCard} />
<meta name="twitter:site:domain" content="laravel-cycle-orm-adapter.wayof.dev" />
<meta name="twitter:url" content="laravel-cycle-orm-adapter.wayof.dev" />
<meta
name="og:title"
content={title ? title + ' – Laravel-CycleORM-Adapter' : 'Laravel-CycleORM-Adapter'}
/>
<meta name="og:image" content={socialCard} />
<meta name="apple-mobile-web-app-title" content="W" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
</>
)
},
}

export default config