Skip to content

Commit 1a2eb1d

Browse files
committed
Add homepage
1 parent b704fa0 commit 1a2eb1d

File tree

3 files changed

+136
-4
lines changed

3 files changed

+136
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,12 @@ jobs:
5252
pip install mkdocs-open-in-new-tab==1.0.3
5353
pip install mike==2.1.3
5454
- name: Deploy Documentation with mike
55-
run: |
56-
git fetch origin gh-pages-pe || echo "Branch gh-pages-pe does not exist yet"
57-
55+
run: |
5856
# Deploy documentation using mike
5957
mike deploy --config-file en/developer-docs/mkdocs.yml Developer latest --branch gh-pages-pe --push
6058
mike deploy --config-file en/pe-docs/mkdocs.yml "Platform Engineer" --branch gh-pages-pe --push
6159
mike set-default --config-file en/developer-docs/mkdocs.yml Developer --branch gh-pages-pe --push
6260
63-
git push origin HEAD:gh-pages-pe --force
6461
env:
6562
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6663

en/landing/docs/index.html

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Welcome to Choreo Documentation</title>
7+
8+
<style>
9+
:root {
10+
--md-text-font-family: "Montserrat", sans-serif;
11+
}
12+
13+
body {
14+
display: flex;
15+
align-items: center;
16+
justify-content: center;
17+
height: 100vh;
18+
background-color: #f7f8fb;
19+
font-family: var(--md-text-font-family);
20+
}
21+
22+
.modal {
23+
background: white;
24+
padding: 2rem;
25+
border-radius: 12px;
26+
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
27+
text-align: center;
28+
max-width: 500px;
29+
width: 90%;
30+
}
31+
32+
.modal h1 {
33+
font-size: 1.5rem;
34+
font-weight: 600;
35+
color: #333;
36+
}
37+
38+
.modal p {
39+
font-size: 0.9rem;
40+
color: #666;
41+
margin-bottom: 1.5rem;
42+
}
43+
44+
.persona-card {
45+
display: flex;
46+
align-items: center;
47+
padding: 12px;
48+
border: 1px solid #d1d5db;
49+
border-radius: 8px;
50+
margin-bottom: 1rem;
51+
cursor: pointer;
52+
transition: background 0.2s ease-in-out;
53+
}
54+
55+
.persona-card:hover {
56+
background: #f0f4ff;
57+
}
58+
59+
.persona-card img {
60+
width: 40px;
61+
margin-right: 12px;
62+
}
63+
64+
.persona-card div {
65+
text-align: left;
66+
}
67+
68+
.persona-card p {
69+
margin: 0;
70+
}
71+
72+
.persona-title {
73+
font-weight: bold;
74+
color: #333;
75+
}
76+
77+
.persona-desc {
78+
font-size: 0.8rem;
79+
color: #555;
80+
}
81+
82+
.next-btn {
83+
background: #545cec;
84+
color: white;
85+
border: none;
86+
padding: 10px 20px;
87+
border-radius: 8px;
88+
cursor: pointer;
89+
font-size: 1rem;
90+
transition: background 0.2s ease-in-out;
91+
}
92+
93+
.next-btn:hover {
94+
background: #4242d6;
95+
}
96+
</style>
97+
98+
<script>
99+
function navigateToDocs(version) {
100+
window.location.href = `/${version}/`;
101+
}
102+
</script>
103+
</head>
104+
<body>
105+
<div class="modal">
106+
<h1>Get Started with Choreo Documentation</h1>
107+
<p>Select your persona to find the right documentation for you</p>
108+
109+
<div class="persona-card" onclick="navigateToDocs('Developer')">
110+
<div>
111+
<p class="persona-title">Developer / Architect</p>
112+
<p class="persona-desc">
113+
Building, testing, and deploying applications.
114+
</p>
115+
</div>
116+
</div>
117+
118+
<div class="persona-card" onclick="navigateToDocs('Platform Engineer')">
119+
<div>
120+
<p class="persona-title">Platform Engineer / SRE</p>
121+
<p class="persona-desc">
122+
Infrastructure, governance, service mesh, and monitoring.
123+
</p>
124+
</div>
125+
</div>
126+
</div>
127+
</body>
128+
</html>

en/landing/mkdocs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
site_name: "Docs Home"
2+
docs_dir: "docs"
3+
extra:
4+
version:
5+
provider: mike
6+
default: true
7+
alias: [] # Hides versions from the selector

0 commit comments

Comments
 (0)