Skip to content

Commit c04100c

Browse files
committed
Fix: Update .htaccess and documentation links for coverage and JSDoc to include index.html
1 parent 7932104 commit c04100c

3 files changed

Lines changed: 17 additions & 53 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -46,58 +46,24 @@ jobs:
4646
cp -r coverage/portfolio deploy/coverage
4747
cp -r docs deploy/jsdoc
4848
49-
# Create .htaccess for coverage and jsdoc to prevent Angular routing
50-
cat > deploy/coverage/.htaccess << 'EOF'
51-
# Disable parent rewrite rules
52-
RewriteEngine Off
53-
DirectoryIndex index.html
54-
EOF
55-
56-
cat > deploy/jsdoc/.htaccess << 'EOF'
57-
# Disable parent rewrite rules
58-
RewriteEngine Off
59-
DirectoryIndex index.html
60-
EOF
61-
62-
# Create .htaccess for deployment
49+
# Create simple .htaccess for deployment
6350
cat > deploy/.htaccess << 'EOF'
64-
# ------------------------------------------------------
65-
# 🔁 Apache Configuration for Angular SPA
66-
# ------------------------------------------------------
6751
RewriteEngine On
6852
RewriteBase /portfolio/
6953
DirectoryIndex index.html
7054
71-
# ------------------------------------------------------
72-
# 🔒 Force HTTPS
73-
# ------------------------------------------------------
55+
# Force HTTPS
7456
RewriteCond %{HTTPS} off
7557
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
7658
77-
# ------------------------------------------------------
78-
# 📚 JSDOC & Coverage Protection - Don't redirect to index.html
79-
# ------------------------------------------------------
80-
RewriteCond %{REQUEST_URI} ^/portfolio/(jsdoc|coverage)/
81-
RewriteRule . - [L]
82-
83-
# ------------------------------------------------------
84-
# 🛡️ API Routes Protection - Don't redirect to index.html
85-
# ------------------------------------------------------
59+
# API Routes Protection - Don't redirect to index.html
8660
RewriteCond %{REQUEST_URI} ^/portfolio/api/
8761
RewriteRule . - [L]
8862
89-
# ------------------------------------------------------
90-
# ⚙️ SPA Routing - Angular Router Fallback
91-
# ------------------------------------------------------
92-
# If file exists, serve it
63+
# Angular SPA Routing
9364
RewriteCond %{REQUEST_FILENAME} !-f
94-
# If directory exists, let Apache handle it (DirectoryIndex)
9565
RewriteCond %{REQUEST_FILENAME} !-d
96-
# Not an API call
9766
RewriteCond %{REQUEST_URI} !^/portfolio/api/
98-
# Not JSDOC or Coverage
99-
RewriteCond %{REQUEST_URI} !^/portfolio/(jsdoc|coverage)/
100-
# Redirect to index.html
10167
RewriteRule . index.html [L]
10268
10369
# ------------------------------------------------------
@@ -146,8 +112,8 @@ jobs:
146112
run: |
147113
echo "🎉 Deployment successful!"
148114
echo "🌐 App: https://portfolio.dev2k.org"
149-
echo "📊 Coverage: https://portfolio.dev2k.org/coverage/"
150-
echo "📚 Docs: https://portfolio.dev2k.org/jsdoc/"
115+
echo "📊 Coverage: https://portfolio.dev2k.org/coverage/index.html"
116+
echo "📚 Docs: https://portfolio.dev2k.org/jsdoc/index.html"
151117
152118
- name: 💬 Comment on PR
153119
if: github.event_name == 'pull_request'

DEPLOYMENT-GUIDE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ After deployment, the following structure is created:
5353
**URLs:**
5454

5555
- 🌐 App: `https://portfolio.dev2k.org`
56-
- 📊 Coverage: `https://portfolio.dev2k.org/coverage/`
57-
- 📚 Docs: `https://portfolio.dev2k.org/jsdoc/`
56+
- 📊 Coverage: `https://portfolio.dev2k.org/coverage/index.html`
57+
- 📚 Docs: `https://portfolio.dev2k.org/jsdoc/index.html`
5858

5959
---
6060

@@ -144,7 +144,7 @@ In the workflow log you'll see:
144144
```
145145
✅ Deployment successful!
146146
🌐 App: https://portfolio.dev2k.org
147-
📊 Coverage: https://portfolio.dev2k.org/coverage/
147+
📊 Coverage: https://portfolio.dev2k.org/coverage/index.html
148148
📚 Docs: https://portfolio.dev2k.org/jsdoc/
149149
```
150150

@@ -289,8 +289,8 @@ After the first push to `main`:
289289
**Check:**
290290

291291
- ✅ `https://portfolio.dev2k.org`
292-
- ✅ `https://portfolio.dev2k.org/coverage/`
293-
- ✅ `https://portfolio.dev2k.org/jsdoc/`
292+
- ✅ `https://portfolio.dev2k.org/coverage/index.html`
293+
- ✅ `https://portfolio.dev2k.org/jsdoc/index.html`
294294

295295
---
296296

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
[![Angular](https://img.shields.io/badge/Angular-21.0-DD0031?style=for-the-badge&logo=angular&logoColor=white)](https://angular.io/)
44
[![TypeScript](https://img.shields.io/badge/TypeScript-5.7-3178C6?style=for-the-badge&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
55
[![SCSS](https://img.shields.io/badge/SCSS-CC6699?style=for-the-badge&logo=sass&logoColor=white)](https://sass-lang.com/)
6-
[![Test Coverage](https://img.shields.io/badge/coverage-96.4%25-brightgreen?style=for-the-badge)](https://portfolio.dev2k.org/coverage/)
6+
[![Test Coverage](https://img.shields.io/badge/coverage-96.4%25-brightgreen?style=for-the-badge)](https://portfolio.dev2k.org/coverage/index.html)
77
[![Tests](https://img.shields.io/badge/tests-823%20passing-success?style=for-the-badge)](./TESTING-REPORT.md)
88
[![License](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](LICENSE)
99

1010
A fully responsive, modern portfolio website built as a Single Page Application (SPA) to showcase my skills, projects, and professional experience. Designed with a mobile-first approach and optimized for recruiters and hiring managers.
1111

12-
[🌐 Live Demo](https://portfolio.dev2k.org) | [📊 Coverage Report](https://portfolio.dev2k.org/coverage/) | [📚 API Docs](https://portfolio.dev2k.org/jsdoc/) | [📖 Testing Guide](./TESTING-REPORT.md)
12+
[🌐 Live Demo](https://portfolio.dev2k.org) | [📊 Coverage Report](https://portfolio.dev2k.org/coverage/index.html) | [📚 API Docs](https://portfolio.dev2k.org/jsdoc/index.html) | [📖 Testing Guide](./TESTING-REPORT.md)
1313

1414
---
1515

@@ -149,16 +149,16 @@ portfolio.dev2k.org/
149149
├── *.js, *.css # Compiled bundles
150150
├── .htaccess # Apache config (routing + security)
151151
├── coverage/ # 📊 Test Coverage Report
152-
│ └── index.html # https://portfolio.dev2k.org/coverage/
152+
│ └── index.html # https://portfolio.dev2k.org/coverage/index.html
153153
└── jsdoc/ # 📚 API Documentation
154-
└── index.html # https://portfolio.dev2k.org/jsdoc/
154+
└── index.html # https://portfolio.dev2k.org/jsdoc/index.html
155155
```
156156

157157
**Live URLs:**
158158

159159
- 🌐 App: [portfolio.dev2k.org](https://portfolio.dev2k.org)
160-
- 📊 Coverage: [portfolio.dev2k.org/coverage](https://portfolio.dev2k.org/coverage/)
161-
- 📚 API Docs: [portfolio.dev2k.org/jsdoc](https://portfolio.dev2k.org/jsdoc/)
160+
- 📊 Coverage: [portfolio.dev2k.org/coverage](https://portfolio.dev2k.org/coverage/index.html)
161+
- 📚 API Docs: [portfolio.dev2k.org/jsdoc](https://portfolio.dev2k.org/jsdoc/index.html)
162162

163163
---
164164

@@ -181,5 +181,3 @@ portfolio.dev2k.org/
181181
- 📧 Email: konstantin.aksenov@dev2k.org
182182

183183
---
184-
185-

0 commit comments

Comments
 (0)