Skip to content

Commit b52ea2f

Browse files
committed
Add 1.x Engine docs
1 parent e6b19ee commit b52ea2f

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

index.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,10 +619,20 @@
619619
text-decoration: none;
620620
border-radius: 4px;
621621
transition: background-color 0.2s;
622+
margin-right: 8px;
623+
width: 140px;
624+
text-align: center;
625+
margin-bottom: 8px;
626+
}
627+
628+
.module-link.legacy {
629+
background-color: rgba(77, 166, 255, 0.3);
630+
color: rgba(255, 255, 255, 0.8);
622631
}
623632

624-
html[data-theme="light"] .module-link {
625-
background-color: var(--light-color-link);
633+
html[data-theme="light"] .module-link.legacy {
634+
background-color: rgba(0, 102, 204, 0.3);
635+
color: rgba(0, 0, 0, 0.6);
626636
}
627637

628638
.module-link:hover {
@@ -773,7 +783,8 @@ <h2>Available API References</h2>
773783
<li class="module-item" data-name="engine">
774784
<h3>📖 Engine</h3>
775785
<p>The core PlayCanvas engine featuring rendering, physics, animation, sound, and more.</p>
776-
<a href="./engine/" class="module-link">View API Reference</a>
786+
<a href="./engine/" class="module-link">v2.x API (current)</a>
787+
<a href="./engine-v1/" class="module-link legacy">v1.x API (legacy)</a>
777788
</li>
778789
<li class="module-item" data-name="web-components">
779790
<h3>📖 Web Components</h3>

repos-config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"url": "https://github.com/playcanvas/engine.git",
66
"branch": "release-2.6"
77
},
8+
{
9+
"name": "engine-v1",
10+
"url": "https://github.com/playcanvas/engine.git",
11+
"branch": "release-1.77"
12+
},
813
{
914
"name": "pcui",
1015
"url": "https://github.com/playcanvas/pcui.git",

0 commit comments

Comments
 (0)