Skip to content

Commit d7b03c2

Browse files
author
antoine
committed
Update vitepress
1 parent d2f6b51 commit d7b03c2

File tree

6 files changed

+2258
-2384
lines changed

6 files changed

+2258
-2384
lines changed

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {type DefaultTheme, defineConfig, loadEnv} from 'vitepress'
1+
import { type DefaultTheme, defineConfig, loadEnv } from 'vitepress'
22
import * as path from "path";
33
import { sidebar } from "./sidebar";
44
import { transformContent } from "./transform-content";

docs/.vitepress/theme/home.css

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,48 +5,13 @@
55

66
--vp-home-hero-image-background-image: linear-gradient(-100deg, hsla(211deg, 100%, 30%, 1), hsla(211deg, 100%, 50%, 1)) url(https://grainy-gradients.vercel.app/noise.svg);
77

8-
.content {
9-
max-width: var(--vp-layout-max-width);
10-
margin: 0 auto;
11-
padding: 0 24px;
12-
@media (min-width: 640px) {
13-
padding: 0 48px;
14-
}
15-
16-
@media (min-width: 960px) {
17-
padding: 0 64px;
18-
}
19-
20-
@media (min-width: 1440px) {
21-
padding: 0 172px;
22-
}
23-
}
24-
25-
.VPHero {
26-
@media (min-width: 1440px) {
27-
padding-left: 172px;
28-
padding-right: 92px;
29-
max-width: var(--vp-layout-max-width);
30-
margin: 0 auto;
31-
}
32-
}
33-
348
.main, .main .text {
359
@media (min-width: 960px) {
3610
max-width: 700px!important;
3711
}
3812
}
3913

40-
.VPHero .container {
41-
max-width: 1172px;
42-
}
43-
44-
.content-container {
45-
margin: 0 auto;
46-
max-width: 1172px;
47-
}
48-
49-
.vp-doc {
14+
.content {
5015
display: grid;
5116
grid-template-columns: minmax(0,688px) 1fr;
5217
max-width: 962px;

docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
setup() {
1313
const route = useRoute();
1414
const initZoom = () => {
15-
new mediumZoom('.content img', { background: 'var(--vp-c-bg)' });
15+
mediumZoom('.content img', { background: 'var(--vp-c-bg)' });
1616
};
1717
onMounted(() => {
1818
initZoom();

docs/index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ hero:
1616
---
1717

1818
<div class="content">
19-
<div class="content-container">
20-
<div class="vp-doc">
2119

2220
Sharp is a content management framework built for Laravel, a toolset which provides help to build a CMS section in a website, with some rules in mind:
2321
- the public website **should not have any knowledge of the CMS** — the CMS is a part of the system, not the center of it. In fact, removing the CMS should not have any effect on the project.
@@ -92,5 +90,3 @@ A Sharp instance for a demo project is available online here: **[sharp.code16.fr
9290
(Data of this demo is reset each hour)
9391

9492
</div>
95-
</div>
96-
</div>

0 commit comments

Comments
 (0)