Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions docs/site/01-python-developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ audience_identifier: python
<h4>Single-Binary Packaging</h4>
</div>
<div class="langpage__benefits-text">
<h5>Package Python applications as a <a href="/python/python-developers/docs/#python-standalone-applications">single binary</a></h5>
<h5>Package Python applications as a <a href="{{ '/python-developers/docs/#python-standalone-applications' | relative_url }}">single binary</a></h5>
</div>
</div>
<div class="langbenefits__card">
Expand Down Expand Up @@ -75,7 +75,7 @@ audience_identifier: python
<div>
<h5 class="download-text">
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>.
See <a href="/python/python-developers/docs/#choosing-a-graalpy-distribution">Choosing a GraalPy Distribution</a> for guidance on selecting the appropriate runtime.
See <a href="{{ '/python-developers/docs/#choosing-a-graalpy-distribution' | relative_url }}">Choosing a GraalPy Distribution</a> for guidance on selecting the appropriate runtime.
</h5>
</div>
<div class="languages__example-card">
Expand Down
4 changes: 2 additions & 2 deletions docs/site/03-jvm-developers-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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 () {
Expand Down
4 changes: 2 additions & 2 deletions docs/site/03-python-developers-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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 () {
Expand Down
1 change: 1 addition & 0 deletions docs/site/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
graalpy.org
4 changes: 2 additions & 2 deletions docs/site/_config.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/site/docs-redirect.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ redirect_to: jvm-developers/docs/
---

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

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

<p>Redirecting to the documentation for <a href="/python/jvm-developers/docs/">JVM Developers</a>...</p>
<p>Redirecting to the documentation for <a href="{{ '/jvm-developers/docs/' | relative_url }}">JVM Developers</a>...</p>
2 changes: 1 addition & 1 deletion docs/user/Python-Standalone-Applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
Loading