Skip to content

Commit a2e5060

Browse files
committed
env example added, repo name update
1 parent cd761c6 commit a2e5060

6 files changed

Lines changed: 114 additions & 112 deletions

File tree

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NUXT_APP_BASE_URL=/
2+
PRESET='static' #'github-pages'

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
# This step runs your "generate" script: "nuxt prepare && nuxt generate www"
3636
# This command is responsible for generating files into 'www/.output/public'
3737
env:
38-
NUXT_APP_BASE_URL: /comforthrmdocsnuxt/ # Setting the BASE_URL environment variable for Nuxt
38+
NUXT_APP_BASE_URL: /comforthrmdocs/ # Setting the BASE_URL environment variable for Nuxt
3939
run: pnpm run generate
4040

4141
- name: Deploy to GitHub Pages

nuxt.config.ts

Lines changed: 104 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,120 @@
1-
import {dirname, join} from 'node:path';
2-
import {fileURLToPath} from 'node:url';
1+
import { dirname, join } from 'node:path';
2+
import { fileURLToPath } from 'node:url';
33
import tailwindcss from '@tailwindcss/vite';
44

55
const currentDir = dirname(fileURLToPath(import.meta.url));
66

77
export default defineNuxtConfig({
8-
nitro: {
9-
//preset: 'github-pages',
10-
preset: process.env.PRESET,
8+
nitro: {
9+
// preset: 'github-pages',
10+
preset: process.env.PRESET,
11+
},
12+
app: {
13+
// baseURL: process.env.BASE_URL || '/comforthrmdocs/',
14+
baseURL: process.env.NUXT_APP_BASE_URL ?? '/',
15+
head: {
16+
link: [
17+
{ rel: 'icon', type: 'image/svg', href: '/logo_icon_brand_512.png' },
18+
],
1119
},
12-
app: {
13-
//baseURL: process.env.BASE_URL || '/comforthrmdocsnuxt/',
14-
baseURL: process.env.NUXT_APP_BASE_URL ?? '/',
15-
head: {
16-
link: [
17-
{ rel: 'icon', type: 'image/svg', href: '/logo_icon_brand_512.png' },
18-
],
19-
}
20-
},
21-
ssr: true,
22-
devtools: {enabled: true},
23-
modules: [
24-
'shadcn-nuxt',
25-
'@vueuse/nuxt',
26-
'@ztl-uwu/nuxt-content',
27-
'@nuxt/image',
28-
'@nuxt/icon',
29-
'@nuxtjs/color-mode',
30-
'nuxt-og-image',
31-
'@nuxt/scripts',
32-
'@nuxtjs/i18n',
33-
'@nuxt/fonts',
20+
},
21+
ssr: true,
22+
devtools: { enabled: true },
23+
modules: [
24+
'shadcn-nuxt',
25+
'@vueuse/nuxt',
26+
'@ztl-uwu/nuxt-content',
27+
'@nuxt/image',
28+
'@nuxt/icon',
29+
'@nuxtjs/color-mode',
30+
'nuxt-og-image',
31+
'@nuxt/scripts',
32+
'@nuxtjs/i18n',
33+
'@nuxt/fonts',
34+
],
35+
shadcn: {
36+
prefix: 'Ui',
37+
componentDir: join(currentDir, './components/ui'),
38+
},
39+
components: {
40+
dirs: [
41+
{
42+
path: './components',
43+
ignore: ['**/*.ts'],
44+
},
3445
],
35-
shadcn: {
36-
prefix: 'Ui',
37-
componentDir: join(currentDir, './components/ui'),
38-
},
39-
components: {
40-
dirs: [
41-
{
42-
path: './components',
43-
ignore: ['**/*.ts'],
44-
},
45-
],
46+
},
47+
i18n: {
48+
bundle: {
49+
optimizeTranslationDirective: false,
4650
},
47-
i18n: {
48-
bundle: {
49-
optimizeTranslationDirective: false,
50-
},
51-
strategy: 'prefix_except_default',
51+
strategy: 'prefix_except_default',
52+
},
53+
colorMode: {
54+
classSuffix: '',
55+
disableTransition: true,
56+
},
57+
css: [
58+
join(currentDir, './assets/css/themes.css'),
59+
// '~/assets/css/tailwind.css',
60+
join(currentDir, './www/assets/css/tailwind.css'),
61+
join(currentDir, './assets/css/custom.css'),
62+
],
63+
content: {
64+
documentDriven: true,
65+
highlight: {
66+
theme: {
67+
default: 'github-light',
68+
dark: 'github-dark',
69+
},
70+
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'mdc', 'yaml', 'bash', 'ini', 'dotenv'],
5271
},
53-
colorMode: {
54-
classSuffix: '',
55-
disableTransition: true,
72+
navigation: {
73+
fields: [
74+
'icon',
75+
'navBadges',
76+
'navTruncate',
77+
'badges',
78+
'toc',
79+
'sidebar',
80+
'collapse',
81+
'editLink',
82+
'prevNext',
83+
'breadcrumb',
84+
'fullpage',
85+
],
5686
},
57-
css: [
58-
join(currentDir, './assets/css/themes.css'),
59-
//'~/assets/css/tailwind.css',
60-
join(currentDir, './www/assets/css/tailwind.css'),
61-
join(currentDir, './assets/css/custom.css'),
62-
],
63-
content: {
64-
documentDriven: true,
65-
highlight: {
66-
theme: {
67-
default: 'github-light',
68-
dark: 'github-dark',
69-
},
70-
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'mdc', 'yaml', 'bash', 'ini', 'dotenv'],
71-
},
72-
navigation: {
73-
fields: [
74-
'icon',
75-
'navBadges',
76-
'navTruncate',
77-
'badges',
78-
'toc',
79-
'sidebar',
80-
'collapse',
81-
'editLink',
82-
'prevNext',
83-
'breadcrumb',
84-
'fullpage',
85-
],
86-
},
87-
experimental: {
88-
search: {
89-
indexed: true,
90-
},
91-
},
87+
experimental: {
88+
search: {
89+
indexed: true,
90+
},
9291
},
93-
icon: {
94-
clientBundle: {
95-
scan: true,
96-
sizeLimitKb: 512,
97-
},
92+
},
93+
icon: {
94+
clientBundle: {
95+
scan: true,
96+
sizeLimitKb: 512,
9897
},
99-
fonts: {
100-
defaults: {
101-
weights: ['300 800'],
102-
},
98+
},
99+
fonts: {
100+
defaults: {
101+
weights: ['300 800'],
103102
},
104-
typescript: {
105-
tsConfig: {
106-
compilerOptions: {
107-
baseUrl: '.',
108-
},
109-
},
103+
},
104+
typescript: {
105+
tsConfig: {
106+
compilerOptions: {
107+
baseUrl: '.',
108+
},
110109
},
111-
vite: {
112-
plugins: [
113-
tailwindcss(),
114-
],
115-
optimizeDeps: {
116-
include: ['debug'],
117-
},
110+
},
111+
vite: {
112+
plugins: [
113+
tailwindcss(),
114+
],
115+
optimizeDeps: {
116+
include: ['debug'],
118117
},
119-
compatibilityDate: '2025-05-13',
118+
},
119+
compatibilityDate: '2025-05-13',
120120
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"dev": "nuxt prepare && nuxt dev www",
4141
"generate": "nuxt prepare && nuxt generate www",
4242
"generate2": "nuxt prepare && nuxt generate www",
43-
"generate3": "nuxt prepare && NUXT_APP_BASE_URL=/comforthrmdocsnuxt/ nuxt generate --preset github_pages || echo 'Ignoring prerender errors'",
43+
"generate3": "nuxt prepare && NUXT_APP_BASE_URL=/comforthrmdocs/ nuxt generate --preset github_pages || echo 'Ignoring prerender errors'",
4444
"preview": "nuxt prepare && nuxt preview www",
4545
"typecheck": "nuxt prepare && nuxt typecheck",
4646
"lint": "eslint .",

workflow_back/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# Set the environment variable and run the generate script
2626
- name: Build and Generate Static Files
2727
# **IMPORTANT:** Replace 'repository-name' with your actual repository name
28-
run: NUXT_APP_BASE_URL=/comforthrmdocsnuxt/ npm run generate
28+
run: NUXT_APP_BASE_URL=/comforthrmdocs/ npm run generate
2929

3030
- name: Deploy to GitHub Pages
3131
uses: peaceiris/actions-gh-pages@v3

www/app.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default defineAppConfig({
6262
links: [
6363
{
6464
icon: 'lucide:github',
65-
to: 'https://github.com/codeboxrcodehub/comforthrmdocsnuxt',
65+
to: 'https://github.com/codeboxrcodehub/comforthrmdocs',
6666
target: '_blank',
6767
},
6868
],
@@ -287,7 +287,7 @@ export default defineAppConfig({
287287
}, */
288288
{
289289
icon: 'lucide:github',
290-
to: 'https://github.com/codeboxrcodehub/comforthrmdocsnuxt',
290+
to: 'https://github.com/codeboxrcodehub/comforthrmdocs',
291291
target: '_blank',
292292
},
293293
],
@@ -301,14 +301,14 @@ export default defineAppConfig({
301301
{
302302
title: 'Star on GitHub',
303303
icon: 'lucide:star',
304-
to: 'https://github.com/codeboxrcodehub/comforthrmdocsnuxt',
304+
to: 'https://github.com/codeboxrcodehub/comforthrmdocs',
305305
target: '_blank',
306306
showLinkIcon: true,
307307
},
308308
{
309309
title: 'Create Issues',
310310
icon: 'lucide:circle-dot',
311-
to: 'https://github.com/codeboxrcodehub/comforthrmdocsnuxt',
311+
to: 'https://github.com/codeboxrcodehub/comforthrmdocs',
312312
target: '_blank',
313313
showLinkIcon: true,
314314
},
@@ -331,7 +331,7 @@ export default defineAppConfig({
331331
},
332332
{
333333
icon: 'lucide:github',
334-
to: 'https://github.com/codeboxrcodehub/comforthrmdocsnuxt',
334+
to: 'https://github.com/codeboxrcodehub/comforthrmdocs',
335335
target: '_blank',
336336
},
337337
],

0 commit comments

Comments
 (0)