Skip to content

Commit eddcead

Browse files
docs: use docus (#476)
Co-authored-by: Benjamin Canac <[email protected]>
1 parent 3ada7ef commit eddcead

33 files changed

+2341
-2086
lines changed

docs/.editorconfig

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/.env.example

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,24 @@ logs
1717
.DS_Store
1818
.fleet
1919
.idea
20+
.eslintcache
2021

2122
# Local env files
2223
.env
2324
.env.*
2425
!.env.example
26+
27+
# Template
28+
template/pnpm-lock.yaml
29+
30+
# npm pack
31+
*.tgz
32+
33+
# Temp files
34+
.tmp
35+
.profile
36+
*.0x
37+
38+
#VSC
39+
.history
40+
.wrangler

docs/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/README.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

docs/app.config.ts

Lines changed: 0 additions & 64 deletions
This file was deleted.

docs/app.vue

Lines changed: 0 additions & 51 deletions
This file was deleted.

docs/app/app.config.ts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
export default defineAppConfig({
2+
header: {
3+
title: 'Nuxt Strapi'
4+
},
5+
ui: {
6+
colors: {
7+
primary: 'indigo',
8+
neutral: 'slate'
9+
}
10+
},
11+
uiPro: {
12+
footer: {
13+
slots: {
14+
root: 'border-t border-default'
15+
}
16+
},
17+
contentNavigation: {
18+
defaultVariants: {
19+
variant: 'pill'
20+
}
21+
}
22+
},
23+
github: {
24+
rootDir: 'docs'
25+
},
26+
socials: {
27+
discord: 'https://discord.com/invite/ps2h6QT',
28+
x: 'https://x.com/nuxt_js'
29+
},
30+
toc: {
31+
title: 'Table of Contents',
32+
bottom: {
33+
title: 'Community',
34+
links: [{
35+
icon: 'i-simple-icons-nuxtdotjs',
36+
label: 'Nuxt docs',
37+
to: 'https://nuxt.com',
38+
target: '_blank'
39+
}, {
40+
icon: 'i-simple-icons-strapi',
41+
label: 'Strapi docs',
42+
to: 'https://docs.strapi.io/dev-docs/intro',
43+
target: '_blank'
44+
}]
45+
}
46+
}
47+
})

docs/app/assets/css/main.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@import "tailwindcss";
2+
@import "@nuxt/ui-pro";
3+
4+
@source "../../../content/**/*";
5+
@source "../../../node_modules/docus/app/**/*";
6+
7+
@theme static {
8+
--font-sans: 'Public Sans', sans-serif;
9+
}
10+
11+
@theme {
12+
--color-indigo-50: #ecf0ff;
13+
--color-indigo-100: #dde4ff;
14+
--color-indigo-200: #c2ccff;
15+
--color-indigo-300: #9caaff;
16+
--color-indigo-400: #757cff;
17+
--color-indigo-500: #4945ff;
18+
--color-indigo-600: #4936f5;
19+
--color-indigo-700: #3e2ad8;
20+
--color-indigo-800: #3325ae;
21+
--color-indigo-900: #2d2689;
22+
--color-indigo-950: #1c1650;
23+
}

docs/components/content/Logo.vue renamed to docs/app/components/AppHeaderLogo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
fill-rule="evenodd"
1111
clip-rule="evenodd"
1212
d="M893.037 200C882.739 200 873.861 197.896 866.039 194C858.348 190.104 851.604 183.143 847.041 176C843.269 169.921 840.865 163.773 840.021 156C839.775 153.739 841.767 151 844.041 151H865.04C865.691 158.662 868.085 166.455 873.039 171C877.993 175.416 883.955 177 892.037 177C899.598 177 905.604 175.987 910.036 173C914.598 169.883 918.035 163.844 918.035 158C918.035 154.104 916.512 151.468 914.036 149C911.559 146.532 907.947 144.299 904.036 143C900.256 141.571 895.686 140.688 889.038 139C879.652 136.662 871.036 133.468 865.04 131C859.173 128.403 854.343 124.455 850.041 119C845.869 113.545 844.041 106.221 844.041 97C844.041 89.5974 846.13 83.7143 850.041 78C854.082 72.1558 859.87 67.1169 867.039 64C874.209 60.7533 881.912 60 891.037 60C900.554 60 908.735 60.4935 916.035 64C923.466 67.3766 929.863 72.6364 934.034 79C937.612 84.2928 939.161 90.2698 940.034 97C940.327 99.2629 939.315 101 937.034 101H916.035C915.384 95.026 913.468 90.6365 909.036 87.0002C904.604 83.3638 898.207 81 891.037 81C884.259 81 878.95 83.1429 875.039 86C871.128 88.8571 869.039 92.1948 869.039 97C869.039 101.026 870.562 104.532 873.039 107C875.646 109.468 878.258 111.571 882.038 113C885.949 114.299 892.128 115.442 899.037 117C908.553 119.208 916.169 121.532 922.035 124C928.031 126.338 932.732 130.545 937.034 136C941.336 141.455 944.033 148.649 944.033 158C944.033 166.312 941.336 173.896 937.034 180C932.732 186.104 926.726 191.623 919.035 195C911.344 198.247 903.075 200 893.037 200ZM1084 119C1076.7 119 1070.52 122.286 1067 128C1063.61 133.584 1062 141.13 1062 151V200H1038.38L1038 99H1062V116C1064.48 109.766 1068.09 105.597 1072 103C1076.04 100.273 1081.61 99 1088 99H1099V119H1084ZM1214 99V237H1238V186C1240.74 189.766 1245.05 193.792 1250 196C1254.95 198.208 1260 200 1266 200C1275.52 200 1283.83 197.156 1291 193C1298.17 188.714 1304.09 182.662 1308 175C1311.91 167.338 1314 158 1314 148C1314 138 1311.78 129.662 1308 122C1304.35 114.338 1298.91 108.156 1292 104C1285.09 99.7143 1277.26 97 1268 97C1261.61 97 1255.21 98.5325 1250 101C1244.79 103.468 1241 106.714 1238 111V99H1214ZM1282.72 171C1277.89 176.455 1271.51 179.182 1263.56 179.182C1255.47 179.182 1248.95 176.455 1244 171C1239.18 165.546 1236.77 157.26 1236.77 148.169C1236.77 139.078 1239.18 131.805 1244 126.351C1248.95 120.896 1255.47 118.169 1263.56 118.169C1271.51 118.169 1277.89 120.896 1282.72 126.351C1287.54 131.805 1289.95 139.078 1289.95 148.169C1289.95 157.26 1287.54 165.546 1282.72 171ZM1331 88C1328.79 88 1327 86.2091 1327 84V60H1351C1353.21 60 1355 61.7909 1355 64V88H1331ZM1355 99.9999V200H1327V99.9999H1355ZM1151 98C1159.31 98 1166.41 99.8318 1173 103C1179.59 106.036 1184.31 110.324 1188 116C1191.82 121.544 1194 127.608 1194 135V200H1167V185C1165.29 189.62 1161.14 194.096 1156 197C1150.99 199.772 1145.85 200 1139 200C1132.67 200 1127.01 199.508 1122 197C1117.12 194.36 1112.77 190.488 1110 186C1107.23 181.38 1106 176.676 1106 171C1106 161.231 1109.41 153.544 1116 148C1122.72 142.324 1131.06 139 1142 139H1159C1161.37 139 1163.68 138.32 1165 137C1166.32 135.548 1167 134.112 1167 132C1167 127.776 1165.16 124.508 1162 122C1158.84 119.36 1154.54 118 1149 118C1143.33 118 1139.3 119.964 1136 123C1132.84 126.036 1130.26 129.512 1130 134H1106C1106.4 127.268 1108.31 121.412 1112 116C1115.69 110.456 1120.41 106.168 1127 103C1133.59 99.8318 1142.17 98 1151 98ZM1146 181C1152.59 181 1157.31 178.224 1161 174C1164.82 169.776 1167 164.6 1167 158V157H1147C1142.78 157 1138.64 157.624 1136 160C1133.36 162.376 1132 166.172 1132 170C1132 173.3 1133.5 175.888 1136 178C1138.5 179.98 1142.18 181 1146 181ZM970 70H997V98.9999H1024V122.001H997V162C997 171.454 1001.64 177 1011 177H1024V200H1008C996.405 200 986.852 196.303 980 190C973.28 183.697 970 175.424 970 164V122.001H951V98.9999H964C967.313 98.9999 970 96.3137 970 93V70Z"
13-
fill="currentColor"
13+
fill="var(--ui-primary)"
1414
/>
1515
<path
1616
d="M377 200C379.16 200 381 198.209 381 196V103C381 103 386 112 395 127L434 194C435.785 197.74 439.744 200 443 200H470V50H443C441.202 50 439 51.4941 439 54V148L421 116L385 55C383.248 51.8912 379.479 50 376 50H350V200H377Z"
@@ -30,7 +30,7 @@
3030
/>
3131
<path
3232
d="M168 200H279C282.542 200 285.932 198.756 289 197C292.068 195.244 295.23 193.041 297 190C298.77 186.959 300.002 183.51 300 179.999C299.998 176.488 298.773 173.04 297 170.001L222 41C220.23 37.96 218.067 35.7552 215 34C211.933 32.2448 207.542 31 204 31C200.458 31 197.067 32.2448 194 34C190.933 35.7552 188.77 37.96 187 41L168 74L130 9.99764C128.228 6.95784 126.068 3.75491 123 2C119.932 0.245087 116.542 0 113 0C109.458 0 106.068 0.245087 103 2C99.9323 3.75491 96.7717 6.95784 95 9.99764L2 170.001C0.226979 173.04 0.00154312 176.488 1.90993e-06 179.999C-0.0015393 183.51 0.229648 186.959 2 190C3.77035 193.04 6.93245 195.244 10 197C13.0675 198.756 16.4578 200 20 200H90C117.737 200 137.925 187.558 152 164L186 105L204 74L259 168H186L168 200ZM89 168H40L113 42L150 105L125.491 147.725C116.144 163.01 105.488 168 89 168Z"
33-
fill="currentColor"
33+
fill="var(--ui-primary)"
3434
/>
3535
</svg>
3636
</template>

0 commit comments

Comments
 (0)