From 9681674a09b12b0a674fd31fb47ffec929ba2e08 Mon Sep 17 00:00:00 2001 From: Olya Gupalo Date: Thu, 2 Apr 2026 18:25:00 +0300 Subject: [PATCH 1/3] Prepare GraalPy site for graalpy.org root hosting --- docs/site/01-python-developers.md | 4 ++-- docs/site/03-jvm-developers-compatibility.md | 4 ++-- docs/site/03-python-developers-compatibility.md | 4 ++-- docs/site/CNAME | 1 + docs/site/_config.yml | 4 ++-- docs/site/docs-redirect.md | 6 +++--- 6 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 docs/site/CNAME diff --git a/docs/site/01-python-developers.md b/docs/site/01-python-developers.md index 37707202ed..9ad6752ea0 100644 --- a/docs/site/01-python-developers.md +++ b/docs/site/01-python-developers.md @@ -29,7 +29,7 @@ audience_identifier: python

Single-Binary Packaging

-
Package Python applications as a single binary
+
Package Python applications as a single binary
@@ -75,7 +75,7 @@ audience_identifier: python
GraalPy is available for multiple platforms in two variants: Native (for a compact download size and smaller footprint) and JVM (for full Java interoperability). Distributions based on Oracle GraalVM provide the best performance and advanced features and are released under the GFTC license. Distributions based on GraalVM Community Edition, released under the OSI-approved UPL license, are available on GitHub. - See Choosing a GraalPy Distribution for guidance on selecting the appropriate runtime. + See Choosing a GraalPy Distribution for guidance on selecting the appropriate runtime.
diff --git a/docs/site/03-jvm-developers-compatibility.md b/docs/site/03-jvm-developers-compatibility.md index f89ef77e0f..5c4267791b 100644 --- a/docs/site/03-jvm-developers-compatibility.md +++ b/docs/site/03-jvm-developers-compatibility.md @@ -166,7 +166,7 @@ img.pylogo { }); var module_testing_csv = new Promise(function (resolve, reject) { const xhr = new XMLHttpRequest(); - const url = `/python/module_results/python-module-testing-${graalpyVersion}.csv`; + const url = `{{ '/module_results/' | relative_url }}python-module-testing-${graalpyVersion}.csv`; xhr.open('GET', url); xhr.overrideMimeType('text/plain'); xhr.onload = function () { @@ -183,7 +183,7 @@ img.pylogo { }); var wheels_csv = new Promise(function (resolve, reject) { const xhr = new XMLHttpRequest(); - const url = `/python/wheels/${graalpyVersion}.csv`; + const url = `{{ '/wheels/' | relative_url }}${graalpyVersion}.csv`; xhr.open('GET', url); xhr.overrideMimeType('text/plain'); xhr.onload = function () { diff --git a/docs/site/03-python-developers-compatibility.md b/docs/site/03-python-developers-compatibility.md index 63e917cd1e..0ba5cc70e4 100644 --- a/docs/site/03-python-developers-compatibility.md +++ b/docs/site/03-python-developers-compatibility.md @@ -166,7 +166,7 @@ img.pylogo { }); var module_testing_csv = new Promise(function (resolve, reject) { const xhr = new XMLHttpRequest(); - const url = `/python/module_results/python-module-testing-${graalpyVersion}.csv`; + const url = `{{ '/module_results/' | relative_url }}python-module-testing-${graalpyVersion}.csv`; xhr.open('GET', url); xhr.overrideMimeType('text/plain'); xhr.onload = function () { @@ -183,7 +183,7 @@ img.pylogo { }); var wheels_csv = new Promise(function (resolve, reject) { const xhr = new XMLHttpRequest(); - const url = `/python/wheels/${graalpyVersion}.csv`; + const url = `{{ '/wheels/' | relative_url }}${graalpyVersion}.csv`; xhr.open('GET', url); xhr.overrideMimeType('text/plain'); xhr.onload = function () { diff --git a/docs/site/CNAME b/docs/site/CNAME new file mode 100644 index 0000000000..4cfdd3e7eb --- /dev/null +++ b/docs/site/CNAME @@ -0,0 +1 @@ +graalpy.org diff --git a/docs/site/_config.yml b/docs/site/_config.yml index 25b27925de..b57bf78a5b 100644 --- a/docs/site/_config.yml +++ b/docs/site/_config.yml @@ -1,5 +1,5 @@ -baseurl: "/python" -url: "https://graalvm.org" +baseurl: "" +url: "https://graalpy.org" github: "oracle/graalpython" language_version: 25.0.2 name: GraalPy diff --git a/docs/site/docs-redirect.md b/docs/site/docs-redirect.md index a1b04337d0..efb05173c2 100644 --- a/docs/site/docs-redirect.md +++ b/docs/site/docs-redirect.md @@ -5,11 +5,11 @@ redirect_to: jvm-developers/docs/ --- -

Redirecting to the documentation for JVM Developers...

\ No newline at end of file +

Redirecting to the documentation for JVM Developers...

From e8ac45f92b0de754bb86e74faafea1d23bdccfd5 Mon Sep 17 00:00:00 2001 From: Olya Gupalo Date: Thu, 9 Apr 2026 22:09:18 +0300 Subject: [PATCH 2/3] Add GitHub Pages workflow for GraalPy site. --- .github/workflows/build-site.yml | 62 +++++++++++++++++++++ docs/user/Python-Standalone-Applications.md | 2 +- 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-site.yml diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml new file mode 100644 index 0000000000..4dabd41891 --- /dev/null +++ b/.github/workflows/build-site.yml @@ -0,0 +1,62 @@ +name: Build and deploy website + +on: + pull_request: + paths: + - 'docs/site/**' + - '.github/workflows/build-site.yml' + push: + branches: + - master + paths: + - 'docs/site/**' + - '.github/workflows/build-site.yml' + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: graalpy-site + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v6 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + + - name: Install site dependencies + working-directory: docs/site + run: bundle install + + - name: Build site + working-directory: docs/site + env: + JEKYLL_ENV: production + run: bundle exec jekyll build + + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: docs/site/_site + + deploy: + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/docs/user/Python-Standalone-Applications.md b/docs/user/Python-Standalone-Applications.md index 70c0f85ca9..3025ce734f 100644 --- a/docs/user/Python-Standalone-Applications.md +++ b/docs/user/Python-Standalone-Applications.md @@ -13,7 +13,7 @@ The module bundles all your application's resources into a single file. ## Running Python Standalone Applications -To create an native executable from a Python file with its dependencies, use this command: +To create a native executable from a Python file with its dependencies, use this command: ```bash graalpy -m standalone native \ From 5924f10bdbfe11efeae5a1ca17a626d3ef4cc13a Mon Sep 17 00:00:00 2001 From: Olya Gupalo Date: Thu, 16 Apr 2026 11:58:11 +0300 Subject: [PATCH 3/3] Update actions/upload-pages-artifact to v5 --- .github/workflows/build-site.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml index 4dabd41891..68c5ead455 100644 --- a/.github/workflows/build-site.yml +++ b/.github/workflows/build-site.yml @@ -1,4 +1,4 @@ -name: Build and deploy website +name: Publish Website on: pull_request: @@ -45,7 +45,7 @@ jobs: run: bundle exec jekyll build - name: Upload GitHub Pages artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v5 with: path: docs/site/_site