Skip to content

Commit a6927f9

Browse files
committed
ADD config
1 parent 1e499ac commit a6927f9

File tree

4 files changed

+49
-11
lines changed

4 files changed

+49
-11
lines changed

.github/.workflow/deploy.yml

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,50 @@
1-
name: Test
1+
name: Deploy Jupyter Book to GitHub Pages
22

33
on:
44
push:
5+
branches: [ master ]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: pages
14+
cancel-in-progress: false
515

616
jobs:
7-
test:
17+
deploy:
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
821
runs-on: ubuntu-latest
22+
923
steps:
10-
- run: echo "Hello"
24+
- uses: actions/checkout@v4
25+
26+
- name: Setup Pages
27+
uses: actions/configure-pages@v5
28+
29+
- name: Setup Python
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: '3.11'
33+
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install 'jupyter-book<2.0'
38+
pip install sphinx-book-theme
39+
40+
- name: Build Jupyter Book
41+
run: jupyter-book build .
42+
43+
- name: Upload artifact
44+
uses: actions/upload-pages-artifact@v3
45+
with:
46+
path: _build/html
47+
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

_config.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# Book settings https://jupyterbook.org/customize/config.html
1+
# Book settings - https://jupyterbook.org/customize/config.html
22
title: OpenLambda
3-
author: OpenLambda Contributors
4-
logo: ""
3+
author: OpenLambda
54

65
# Force re-execution of notebooks on each build
76
execute:
@@ -20,10 +19,10 @@ html:
2019
# Repository info (used for issue/edit buttons)
2120
repository:
2221
url: https://github.com/open-lambda/open-lambda.github.io
23-
branch: main
22+
branch: master
2423
path_to_book: "."
2524

26-
# MyST extensions
25+
# MyST extensions - single parse block (duplicate was causing only the first to be read)
2726
parse:
2827
myst_enable_extensions:
2928
- colon_fence

index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
myst:
33
html_meta:
4-
description: "OpenLambda Apache-licensed serverless computing built on Linux containers"
4+
description: "OpenLambda - Apache-licensed serverless computing built on Linux containers"
55
keywords: "serverless, OpenLambda, Go, Linux containers, cloud computing"
66
---
77

@@ -61,5 +61,5 @@ manually deploy workers yourself and put an HTTP load balancer in front of them.
6161

6262
## License
6363

64-
This project is licensed under the **Apache License** see the
64+
This project is licensed under the **Apache License** - see the
6565
[LICENSE.md](https://github.com/open-lambda/open-lambda/blob/main/LICENSE) file for details.

0 commit comments

Comments
 (0)