docs: add GitHub Pages repository README
Publish GitHub Pages output / publish (push) Successful in 47s

This commit is contained in:
2026-08-31 14:12:12 +09:00
parent bcd47d93e7
commit c01a3e534b
4 changed files with 48 additions and 3 deletions
+10 -1
View File
@@ -6,6 +6,7 @@ const htmlPath = path.join(output, 'index.html');
const scriptPath = path.join(output, 'assets', 'app.js');
const stylePath = path.join(output, 'assets', 'app.css');
const packageJson = JSON.parse(await readFile(path.resolve('package.json'), 'utf8'));
const isPagesBuild = path.basename(output) === 'pages-dist';
let html = await readFile(htmlPath, 'utf8');
html = html.replace(/<script type="module" crossorigin src=/g, '<script defer src=');
@@ -45,7 +46,15 @@ await writeFile(stylePath, style);
await rm(path.join(output, 'data'), { recursive: true, force: true });
await writeFile(path.join(output, 'VERSION.txt'), `${packageJson.version}\n`);
await writeFile(path.join(output, 'README.txt'), `홀로도리 계산기 ${packageJson.version}
await writeFile(path.join(output, 'README.txt'), isPagesBuild
? `홀로도리 계산기 ${packageJson.version}
서비스: https://doricalc-holo.live/
이 파일들은 GitHub Pages 배포용으로 자동 생성되었습니다.
계산과 사용자 데이터 저장은 사용자의 브라우저에서 처리됩니다.
`
: `홀로도리 계산기 ${packageJson.version}
1. 압축파일의 내용을 모두 한 폴더에 풀어 주세요.
2. index.html을 Chrome 또는 Edge로 열어 주세요.