Skip to content

Commit 120fbb9

Browse files
committed
Port website over to Astro
1 parent 18075b2 commit 120fbb9

40 files changed

Lines changed: 1237 additions & 322 deletions

‎.github/workflows/deploy.yml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout your repository using git
18+
uses: actions/checkout@v7
19+
- name: Install, build, and upload your site
20+
uses: withastro/action@v6
21+
22+
deploy:
23+
needs: build
24+
runs-on: ubuntu-latest
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
steps:
29+
- name: Deploy to GitHub Pages
30+
id: deployment
31+
uses: actions/deploy-pages@v5

‎.gitignore‎

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,41 @@
1-
# Jekyll
1+
# build output
2+
dist/
3+
4+
# generated types
5+
.astro/
6+
7+
# dependencies
8+
node_modules/
9+
10+
# build caches
11+
*.tsbuildinfo
12+
13+
# logs
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
pnpm-debug.log*
18+
19+
# environment variables
20+
.env
21+
.env.production
22+
23+
# macOS-specific files
24+
.DS_Store
25+
26+
# jetbrains setting folder
27+
.idea/
28+
29+
# VS Code
30+
.vscode/
31+
32+
# Jekyll (legacy)
233
_site/
334
.jekyll-cache
435
.jekyll-metadata
536
.sass-cache
6-
7-
# Ruby
837
.bundle/
9-
.byebug_history
10-
.ruby-gemset
1138
.ruby-version
39+
.ruby-gemset
1240
*.gem
13-
Gemfile.lock
14-
15-
# Files
16-
.analysis
17-
.DS_Store
18-
*.swp
19-
*~
20-
21-
# Folders
22-
/vendor
23-
bbin/
24-
bin/
25-
coverage
26-
gh-pages/
27-
pkg/
28-
test/dest
29-
tmp/*
30-
scraps/
31-
32-
# IDE droppings
33-
.idea/
41+
Gemfile.lock

‎Gemfile‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

‎README.md‎

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
# Jython Website
2-
This is the source repository for the Jython website.
2+
3+
This is the source repository for the Jython website, built with [Astro](https://astro.build).
34

45
## To develop the website
56

6-
A quick guide to developing the website locally
7+
A quick guide to developing the website locally:
8+
9+
1. Clone this repository.
10+
2. Install [Bun](https://bun.sh), then install the dependencies:
11+
`bun install`
12+
3. Run `bun run dev` and browse to the printed URL (usually http://localhost:4321).
13+
4. Make changes to the source in `src/`; the page will hot-reload.
14+
5. Run `bun run build` to produce a static site in `dist/`.
15+
6. Once you're happy with the changes create a pull request.
16+
17+
## Project structure
18+
19+
- `src/pages/*.md` — Markdown content pages (one file per page).
20+
- `src/layouts/BaseLayout.astro` — the page layout (header, navigation, footer).
21+
- `src/components/Navbar.astro` — the navigation bar.
22+
- `src/data/navbar.ts` — the navigation bar entries.
23+
- `public/` — static files copied as-is into the build (`CNAME`, `.well-known/`, assets, stylesheet).
24+
- `assets/` (top level) — the original source images, now mirrored under `public/assets/`.
725

8-
1. Clone this repository
9-
2. Run `bundle exec jekyll serve` in the repository. See [here](https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll) for more information on setting up Jekyll
10-
3. Browse to [http://127.0.0.1:4000](http://127.0.0.1:4000)
11-
4. View the website locally
12-
5. Make changes to the source
13-
6. Refresh the browser page and the changes should be visible
14-
7. Once you're happy with the changes create a pull request
26+
## Deployment
1527

28+
The site is published to GitHub Pages from `master` by the workflow in
29+
`.github/workflows/deploy.yml`, which builds with Bun and uploads `dist/`.

‎_config.yml‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎_data/book.yml‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎_data/navbar.yml‎

Lines changed: 0 additions & 47 deletions
This file was deleted.

‎_data/pydoc.yml‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎_includes/navigation.html‎

Lines changed: 0 additions & 94 deletions
This file was deleted.

‎_layouts/default.html‎

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)