Skip to content

Commit 303abde

Browse files
committed
updated files to make user choose between NGDocs and CG Docs, will hit NG-Docs after 10 seconds time. April 5 update
1 parent d20138a commit 303abde

3 files changed

Lines changed: 147 additions & 2 deletions

File tree

docs/index.html

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>APIsec Documentation</title>
6+
7+
<style>
8+
9+
body{
10+
font-family: Arial, sans-serif;
11+
background:#f6f8fb;
12+
display:flex;
13+
justify-content:center;
14+
align-items:center;
15+
height:100vh;
16+
margin:0;
17+
}
18+
19+
.container{
20+
background:white;
21+
padding:40px;
22+
border-radius:12px;
23+
box-shadow:0 10px 30px rgba(0,0,0,0.08);
24+
text-align:center;
25+
width:480px;
26+
}
27+
28+
h1{
29+
margin-bottom:10px;
30+
color:#1a1a1a;
31+
}
32+
33+
p{
34+
color:#555;
35+
margin-bottom:25px;
36+
}
37+
38+
.button{
39+
display:block;
40+
padding:14px;
41+
margin:12px 0;
42+
border-radius:6px;
43+
text-decoration:none;
44+
font-weight:600;
45+
}
46+
47+
.primary{
48+
background:#2563eb;
49+
color:white;
50+
}
51+
52+
.secondary{
53+
background:#e5e7eb;
54+
color:#333;
55+
}
56+
57+
.timer{
58+
margin-top:15px;
59+
font-size:14px;
60+
color:#666;
61+
}
62+
63+
.progress-container{
64+
width:100%;
65+
height:6px;
66+
background:#e5e7eb;
67+
border-radius:10px;
68+
margin-top:15px;
69+
overflow:hidden;
70+
}
71+
72+
.progress{
73+
height:100%;
74+
background:#2563eb;
75+
width:100%;
76+
animation:progress 10s linear forwards;
77+
}
78+
79+
@keyframes progress{
80+
from {width:100%;}
81+
to {width:0%;}
82+
}
83+
84+
</style>
85+
86+
</head>
87+
88+
<body>
89+
90+
<div class="container">
91+
92+
<h1>APIsec Documentation</h1>
93+
94+
<p>
95+
Looking for <strong>Next-Gen platform documentation</strong>?
96+
</p>
97+
98+
<a class="button primary" href="https://docs.apisecapps.com">
99+
Go to Next-Gen Documentation
100+
</a>
101+
102+
<a class="button secondary" href="https://docs.apisec.ai/overview/">
103+
Continue to Current-Gen Documentation
104+
</a>
105+
106+
<div class="timer">
107+
Redirecting to Next-Gen documentation in
108+
<strong><span id="count">10</span></strong> seconds
109+
</div>
110+
111+
<div class="progress-container">
112+
<div class="progress"></div>
113+
</div>
114+
115+
<p style="font-size:13px;color:#888;margin-top:20px;">
116+
Current-Gen platform will be decommissioned soon.
117+
</p>
118+
119+
</div>
120+
121+
<script>
122+
123+
let seconds = 10;
124+
125+
let countdown = setInterval(function(){
126+
127+
seconds--;
128+
129+
document.getElementById("count").innerText = seconds;
130+
131+
if(seconds <= 0){
132+
133+
clearInterval(countdown);
134+
135+
window.location.replace("https://docs.apisecapps.com");
136+
137+
}
138+
139+
},1000);
140+
141+
</script>
142+
143+
</body>
144+
145+
</html>

docs/index.md renamed to docs/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Let’s <a href="https://docs.apisec.ai/GettingStarted/">get started</a>! Btw,
1919

2020

2121
<div class="container" id="iframeContainer" style="position: fixed; bottom: 20px; right: 20px; overflow: hidden;">
22-
<iframe id="iFrame1" src="Chatbot/index.html" style="border: none; width: 100%; height: 100%;"></iframe>
22+
<iframe id="iFrame1" src="../Chatbot/index.html" style="border: none; width: 100%; height: 100%;"></iframe>
2323
</div>
2424

2525
<script>

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
site_name: Documentation
22
site_url: https://apisec-inc.github.io/documentation/
33
nav:
4-
- APIsec Overview: index.md
4+
- APIsec Overview: overview.md
55
- Getting Started: GettingStarted.md
66
- 1. Register an API:
77
- Register API: RegisterAPI.md

0 commit comments

Comments
 (0)