Skip to content

Commit fdfe7e8

Browse files
committed
Prepare GraalPy site for graalpy.org root hosting
1 parent adb460a commit fdfe7e8

6 files changed

Lines changed: 13 additions & 12 deletions

File tree

docs/site/01-python-developers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ audience_identifier: python
2929
<h4>Single-Binary Packaging</h4>
3030
</div>
3131
<div class="langpage__benefits-text">
32-
<h5>Package Python applications as a <a href="/python/python-developers/docs/#python-standalone-applications">single binary</a></h5>
32+
<h5>Package Python applications as a <a href="{{ '/python-developers/docs/#python-standalone-applications' | relative_url }}">single binary</a></h5>
3333
</div>
3434
</div>
3535
<div class="langbenefits__card">
@@ -74,8 +74,8 @@ audience_identifier: python
7474
<h3 class="langstarter__title">Install or Download</h3>
7575
<div>
7676
<h5 class="download-text">
77-
GraalPy is available for multiple platforms. Distributions based on Oracle GraalVM provide the best performance and advanced features and are released under the <a href="https://www.oracle.com/downloads/licenses/graal-free-license.html">GFTC license</a>. Distributions based on GraalVM Community Edition, released under the OSI-approved <a href="https://opensource.org/licenses/UPL">UPL license</a>, are available on <a href="https://github.com/oracle/graalpython/releases">GitHub</a>.
78-
See <a href="/python/python-developers/docs/#choosing-a-graalpy-distribution">Choosing a GraalPy Distribution</a> for guidance on available distributions.
77+
GraalPy is available for multiple platforms in two variants: <strong class="language-downloads__variant-native">Native</strong> (for a compact download size and smaller footprint) and <strong class="language-downloads__variant-jvm">JVM</strong> (for full Java interoperability). Distributions based on Oracle GraalVM provide the best performance and advanced features and are released under the <a href="https://www.oracle.com/downloads/licenses/graal-free-license.html">GFTC license</a>. Distributions based on GraalVM Community Edition, released under the OSI-approved <a href="https://opensource.org/licenses/UPL">UPL license</a>, are available on <a href="https://github.com/oracle/graalpython/releases">GitHub</a>.
78+
See <a href="{{ '/python-developers/docs/#choosing-a-graalpy-distribution' | relative_url }}">Choosing a GraalPy Distribution</a> for guidance on selecting the appropriate runtime.
7979
</h5>
8080
</div>
8181
<div class="languages__example-card">

docs/site/03-jvm-developers-compatibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ img.pylogo {
166166
});
167167
var module_testing_csv = new Promise(function (resolve, reject) {
168168
const xhr = new XMLHttpRequest();
169-
const url = `/python/module_results/python-module-testing-${graalpyVersion}.csv`;
169+
const url = `{{ '/module_results/' | relative_url }}python-module-testing-${graalpyVersion}.csv`;
170170
xhr.open('GET', url);
171171
xhr.overrideMimeType('text/plain');
172172
xhr.onload = function () {
@@ -183,7 +183,7 @@ img.pylogo {
183183
});
184184
var wheels_csv = new Promise(function (resolve, reject) {
185185
const xhr = new XMLHttpRequest();
186-
const url = `/python/wheels/${graalpyVersion}.csv`;
186+
const url = `{{ '/wheels/' | relative_url }}${graalpyVersion}.csv`;
187187
xhr.open('GET', url);
188188
xhr.overrideMimeType('text/plain');
189189
xhr.onload = function () {

docs/site/03-python-developers-compatibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ img.pylogo {
166166
});
167167
var module_testing_csv = new Promise(function (resolve, reject) {
168168
const xhr = new XMLHttpRequest();
169-
const url = `/python/module_results/python-module-testing-${graalpyVersion}.csv`;
169+
const url = `{{ '/module_results/' | relative_url }}python-module-testing-${graalpyVersion}.csv`;
170170
xhr.open('GET', url);
171171
xhr.overrideMimeType('text/plain');
172172
xhr.onload = function () {
@@ -183,7 +183,7 @@ img.pylogo {
183183
});
184184
var wheels_csv = new Promise(function (resolve, reject) {
185185
const xhr = new XMLHttpRequest();
186-
const url = `/python/wheels/${graalpyVersion}.csv`;
186+
const url = `{{ '/wheels/' | relative_url }}${graalpyVersion}.csv`;
187187
xhr.open('GET', url);
188188
xhr.overrideMimeType('text/plain');
189189
xhr.onload = function () {

docs/site/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
graalpy.org

docs/site/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
baseurl: "/python"
2-
url: "https://graalvm.org"
1+
baseurl: ""
2+
url: "https://graalpy.org"
33
github: "oracle/graalpython"
44
language_version: 25.0.2
55
python_version: 3.12

docs/site/docs-redirect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ redirect_to: jvm-developers/docs/
55
---
66

77
<script>
8-
window.location.replace('/python/jvm-developers/docs/');
8+
window.location.replace({{ '/jvm-developers/docs/' | relative_url | jsonify }});
99
</script>
1010

1111
<noscript>
12-
<meta http-equiv="refresh" content="0; url=/python/jvm-developers/docs/" />
12+
<meta http-equiv="refresh" content="0; url={{ '/jvm-developers/docs/' | relative_url }}" />
1313
</noscript>
1414

15-
<p>Redirecting to the documentation for <a href="/python/jvm-developers/docs/">JVM Developers</a>...</p>
15+
<p>Redirecting to the documentation for <a href="{{ '/jvm-developers/docs/' | relative_url }}">JVM Developers</a>...</p>

0 commit comments

Comments
 (0)