Skip to content

Commit 7cbad78

Browse files
committed
hotfix: noticed error fixed
1 parent 1ab17f7 commit 7cbad78

10 files changed

Lines changed: 151 additions & 78 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy terminal portfolio to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["main", "master"]
6+
workflow_dispatch: {}
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Pages
28+
uses: actions/configure-pages@v5
29+
30+
- name: Upload site artifact
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: .
34+
35+
- name: Deploy to GitHub Pages
36+
id: deployment
37+
uses: actions/deploy-pages@v4
38+

.github/workflows/jekyll-gh-pages.yml

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

README.de.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,21 @@ Benutzerdefinierte Links aus `links.others` werden zu Befehlen (z.B. `Twitter|ht
161161
- Lokal testen: `index.html` öffnen oder Ordner mit statischem Server bereitstellen.
162162
- GitHub Pages funktioniert sofort.
163163

164-
### Beispiel-Pages-Einrichtung (GitHub Pages)
164+
## GitHub Pages Deployment (über Actions)
165165

166-
1. `template-config.json` zum GitHub-Repository hinzufügen.
167-
2. Die bestehende `.github/workflows/jekyll-gh-pages.yml` löschen.
168-
3. Beispiel-Pages direkt unter **repositories > Settings > Pages** erstellen und einrichten.
166+
Diese Vorlage enthält einen einsatzbereiten GitHub-Actions-Workflow unter `.github/workflows/deploy-pages.yml`.
167+
168+
1. Erstellen Sie ein neues Repository aus dieser Vorlage (oder forken/klonen Sie sie in Ihr eigenes Konto).
169+
2. Pushen Sie Ihre Änderungen auf den Standard-Branch (`main` oder `master`).
170+
3. Gehen Sie in Ihrem Repository zu **Settings → Pages** und setzen Sie **Source** auf **GitHub Actions**.
171+
172+
Nach dem ersten erfolgreichen Lauf des Workflows **Deploy terminal portfolio to GitHub Pages** ist Ihre Seite hier erreichbar:
173+
174+
- `https://<Ihr-GitHub-Benutzername>.github.io/<Ihr-Repository-Name>/`
175+
176+
Für dieses Vorlagen-Repository selbst ist die Demo unter folgender URL veröffentlicht:
177+
178+
- `https://pythontogo.github.io/terminal-portfolio-template`
169179

170180
## Mitwirken
171181

README.ko.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,21 @@ generator는 `window.TERMINAL_CONFIG`를 생성합니다:
161161
- 로컬 테스트: `index.html` 열기 또는 정적 서버로 폴더 서빙.
162162
- GitHub Pages 바로 사용 가능.
163163

164-
### Pages 예시 설정 (GitHub Pages)
164+
## GitHub Pages 배포 (GitHub Actions 사용)
165165

166-
1. `template-config.json`을 GitHub 레포지토리에 추가합니다.
167-
2. 기존 `.github/workflows/jekyll-gh-pages.yml`을 삭제합니다.
168-
3. **repositories > Settings > Pages**에서 직접 예시 페이지를 생성/설정합니다.
166+
이 템플릿에는 `.github/workflows/deploy-pages.yml` 라는 GitHub Actions 워크플로가 포함되어 있습니다.
167+
168+
1. 이 레포지토리를 템플릿으로 사용하거나 포크/클론하여 **본인 GitHub 계정의 레포지토리**로 만듭니다.
169+
2. 기본 브랜치 (`main` 또는 `master`) 에 변경 사항을 푸시합니다.
170+
3. 해당 레포지토리에서 **Settings → Pages** 로 이동하여 **Source****GitHub Actions** 로 설정합니다.
171+
172+
**Deploy terminal portfolio to GitHub Pages** 워크플로가 처음 성공적으로 실행되면, 사이트는 다음 주소에서 열립니다:
173+
174+
- `https://<본인-GitHub-사용자이름>.github.io/<레포지토리-이름>/`
175+
176+
이 템플릿 원본 레포지토리의 데모는 다음 주소에 배포되어 있습니다:
177+
178+
- `https://pythontogo.github.io/terminal-portfolio-template`
169179

170180
## 기여
171181

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,21 @@ Custom links from `links.others` become commands (e.g. `Twitter|https://...` →
161161
- Test locally by opening `index.html` or serving the folder.
162162
- GitHub Pages works out of the box.
163163

164-
### Example Pages setup (GitHub Pages)
164+
## GitHub Pages deployment (via Actions)
165165

166-
1. Add `template-config.json` to the GitHub repository.
167-
2. Delete the existing `.github/workflows/jekyll-gh-pages.yml`.
168-
3. Create and configure example pages directly in **repositories > Settings > Pages**.
166+
This template includes a ready-to-use GitHub Actions workflow at `.github/workflows/deploy-pages.yml`.
167+
168+
1. Create a new repository from this template (or fork/clone it into your own account).
169+
2. Push your changes to the default branch (`main` or `master`).
170+
3. In your repository, go to **Settings → Pages** and set **Source** to **GitHub Actions**.
171+
172+
After the first successful run of the **Deploy terminal portfolio to GitHub Pages** workflow, your site will be available at:
173+
174+
- `https://<your-github-username>.github.io/<your-repo-name>/`
175+
176+
For this template repository itself, the demo is published at:
177+
178+
- `https://pythontogo.github.io/terminal-portfolio-template`
169179

170180
## Contributing
171181

README.tr.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,21 @@ Generator `window.TERMINAL_CONFIG` oluşturur:
161161
- Yerel test: `index.html` açın veya klasörü statik sunucu ile sunun.
162162
- GitHub Pages hazır çalışır.
163163

164-
### Örnek Pages kurulumu (GitHub Pages)
164+
## GitHub Pages dağıtımı (Actions ile)
165165

166-
1. `template-config.json` dosyasını GitHub deposuna ekleyin.
167-
2. Mevcut `.github/workflows/jekyll-gh-pages.yml` dosyasını silin.
168-
3. **repositories > Settings > Pages** bölümünden doğrudan örnek sayfaları oluşturun ve yapılandırın.
166+
Bu şablon, `.github/workflows/deploy-pages.yml` konumunda kullanıma hazır bir GitHub Actions iş akışı içerir.
167+
168+
1. Bu depoyu şablon olarak kullanarak yeni bir depo oluşturun veya kendi hesabınıza fork/clone edin.
169+
2. Değişikliklerinizi varsayılan dala (`main` veya `master`) push edin.
170+
3. Depoda **Settings → Pages** bölümüne gidin ve **Source** alanını **GitHub Actions** olarak ayarlayın.
171+
172+
**Deploy terminal portfolio to GitHub Pages** iş akışı ilk kez başarıyla çalıştıktan sonra siteniz şu adresten erişilebilir olur:
173+
174+
- `https://<GitHub-kullanıcı-adınız>.github.io/<depo-adınız>/`
175+
176+
Bu şablonun kendi demo sürümü şu adreste yayınlanmaktadır:
177+
178+
- `https://pythontogo.github.io/terminal-portfolio-template`
169179

170180
## Katkıda bulunma
171181

README.zh-CN.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,21 @@ generator 生成 `window.TERMINAL_CONFIG`:
161161
- 本地测试:打开 `index.html` 或用静态服务器托管文件夹。
162162
- GitHub Pages 开箱即用。
163163

164-
### Pages 示例设置(GitHub Pages
164+
## GitHub Pages 部署(使用 Actions
165165

166-
1.`template-config.json` 添加到 GitHub 仓库。
167-
2. 删除现有的 `.github/workflows/jekyll-gh-pages.yml`
168-
3.**repositories > Settings > Pages** 中直接创建并配置示例页面。
166+
此模板已经自带一个可直接使用的 GitHub Actions 工作流:`.github/workflows/deploy-pages.yml`
167+
168+
1. 使用此仓库作为模板创建新仓库,或 fork/clone 到**你自己的 GitHub 账户**下。
169+
2. 将更改推送到默认分支(`main``master`)。
170+
3. 在该仓库中打开 **Settings → Pages**,将 **Source** 设置为 **GitHub Actions**
171+
172+
第一次成功运行 **Deploy terminal portfolio to GitHub Pages** 工作流后,你的网站将可以通过如下地址访问:
173+
174+
- `https://<你的-GitHub-用户名>.github.io/<你的-仓库名>/`
175+
176+
本模板原始仓库的演示站点部署在:
177+
178+
- `https://pythontogo.github.io/terminal-portfolio-template`
169179

170180
## 贡献
171181

generator/main.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,34 @@ function applyThemePreview(themeId) {
9191
return;
9292
}
9393

94+
// Build banner preview rule separately so we can avoid overriding
95+
// the rainbow gradient background when the rainbow theme is selected.
96+
var bannerPreviewRule =
97+
".banner-preview { " +
98+
(themeId === "rainbow" ? "" : "background: " + colors.inputBg + "; ") +
99+
"color: " + colors.mutedColor + "; border-color: " + colors.cardBorder + "; } ";
100+
94101
styleEl.textContent =
95102
"body { background: " + colors.bodyBg + "; color: " + colors.bodyColor + "; } " +
96103
".page-header, .page-header h1, .page-header p { color: " + colors.headerColor + " !important; } " +
97104
".card { background: " + colors.cardBg + "; border-color: " + colors.cardBorder + "; } " +
98105
".card h2, .card p, .card li { color: " + colors.bodyColor + " !important; } " +
99106
".field-row label { color: " + colors.mutedColor + " !important; } " +
100107
".field-row input, .field-row textarea, .field-row select { background: " + colors.inputBg + "; color: " + colors.bodyColor + "; border-color: " + colors.cardBorder + "; } " +
101-
".banner-preview { background: " + colors.inputBg + "; color: " + colors.mutedColor + "; border-color: " + colors.cardBorder + "; } " +
108+
bannerPreviewRule +
102109
".output { background: " + colors.inputBg + "; color: " + colors.bodyColor + "; border-color: " + colors.cardBorder + "; } " +
103110
"code { background: " + colors.cardBg + "; } " +
104111
"#downloadBtn { color: " + colors.bodyColor + "; border-color: " + colors.cardBorder + "; }";
112+
113+
// Apply rainbow text style to banner preview when rainbow theme is selected
114+
var bannerPreview = document.getElementById("bannerPreview");
115+
if (bannerPreview) {
116+
if (themeId === "rainbow") {
117+
bannerPreview.classList.add("rainbow-text");
118+
} else {
119+
bannerPreview.classList.remove("rainbow-text");
120+
}
121+
}
105122
}
106123

107124
function getValue(id, fallback) {

generator/style.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,20 @@ body {
121121
color: #94a3b8;
122122
margin: 0;
123123
overflow-x: auto;
124+
white-space: pre;
125+
}
126+
127+
/* Rainbow text style */
128+
.rainbow-text {
129+
background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6, #ec4899);
130+
-webkit-background-clip: text;
131+
-webkit-text-fill-color: transparent;
132+
background-clip: text;
133+
}
134+
135+
.banner-preview.rainbow-text {
136+
font-weight: bolder;
137+
font-size: min(20px, calc(1vw));
124138
}
125139

126140
.actions {

js/commands.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,21 @@ var about = (function () {
2929
for (var i = 0; i < TERMINAL_CONFIG.content.aboutLines.length; i++) {
3030
lines.push(TERMINAL_CONFIG.content.aboutLines[i]);
3131
}
32-
lines.push("This terminal template was made by PythonToGo.");
3332
lines.push("<br>");
3433
return lines;
3534
}
36-
var fullName = (TERMINAL_CONFIG.profile && TERMINAL_CONFIG.profile.name) || "Your Name";
37-
return [
35+
var fullName = (TERMINAL_CONFIG.profile && TERMINAL_CONFIG.profile.name) || "Taey";
36+
var lines = [
3837
"<br>",
39-
"Hi there, 👋🏽",
38+
"Hi there, 👋🏻",
4039
"I am " + fullName,
41-
"<br>",
4240
];
41+
if (fullName === "Taey") {
42+
lines.push("a Korean Dream Explorer based in Germany.");
43+
lines.push("I'm driven by the challenge of building intelligent systems that learn, adapt, and scale, passionate about applying deep learning and machine learning to real-world problems and managing the entire machine learning lifecycle through MLOps practices.");
44+
}
45+
lines.push("<br>");
46+
return lines;
4347
})();
4448

4549
links = (function () {
@@ -66,7 +70,7 @@ projects = [
6670
`<div id="repo-box"></div>`,
6771
];
6872

69-
var profileFullName = (TERMINAL_CONFIG.profile && TERMINAL_CONFIG.profile.name) || "Your Name";
73+
var profileFullName = (TERMINAL_CONFIG.profile && TERMINAL_CONFIG.profile.name) || "Taey";
7074
help = [
7175
"<br>",
7276
'Use these commands to navigate my web-terminal:',
@@ -100,6 +104,7 @@ banner = createAsciiBanner(bannerText, bannerFontStyle);
100104
welcomeMsg = [
101105
'<span class="color2 terminal-welcome-msg">Welcome to my personal terminal-like website!</span>',
102106
"<span class=\"color2 terminal-welcome-msg\">Type </span> <span class=\"command terminal-welcome-msg\">'help'</span><span class=\"color2 terminal-welcome-msg\"> to see a list of available commands!</span>",
107+
'<span class="terminal-welcome-msg" style="font-size: 0.8em;">This terminal template was made by <a class="command" href="https://github.com/PythonToGo" target="_blank">PythonToGo</a>.</span>',
103108
"<br>",
104109
];
105110

0 commit comments

Comments
 (0)