diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml new file mode 100644 index 0000000000..68c5ead455 --- /dev/null +++ b/.github/workflows/build-site.yml @@ -0,0 +1,62 @@ +name: Publish 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@v5 + 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/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...

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 \