Skip to content

Commit b5088da

Browse files
(docs) Initial empty version
1 parent 0116514 commit b5088da

30 files changed

+2995
-875
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 50 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,70 @@
1-
# GitHub Actions workflow to deploy the website to GitHub Pages
2-
3-
name: Deploy to GitHub Pages
1+
name: Documentation
42

53
on:
6-
# Runs on pushes targeting the default branch
74
push:
85
branches: ["master"]
96
paths:
107
- 'docs/**'
118
- '.github/workflows/deploy-pages.yml'
12-
13-
# Allows you to run this workflow manually from the Actions tab
149
workflow_dispatch:
1510

16-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1711
permissions:
1812
contents: read
1913
pages: write
2014
id-token: write
2115

22-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
24-
concurrency:
25-
group: "pages"
26-
cancel-in-progress: false
27-
2816
jobs:
29-
# Build job
30-
build:
17+
docs:
3118
runs-on: ubuntu-latest
32-
steps:
33-
- name: Checkout
34-
uses: actions/checkout@v4
35-
36-
- name: Setup Pages
37-
uses: actions/configure-pages@v4
38-
39-
- name: Upload artifact
40-
uses: actions/upload-pages-artifact@v3
41-
with:
42-
# Upload the docs folder
43-
path: './docs'
44-
45-
# Deployment job
46-
deploy:
4719
environment:
4820
name: github-pages
4921
url: ${{ steps.deployment.outputs.page_url }}
50-
runs-on: ubuntu-latest
51-
needs: build
22+
5223
steps:
53-
- name: Deploy to GitHub Pages
54-
id: deployment
55-
uses: actions/deploy-pages@v4
24+
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 2
27+
28+
- name: Setup Python
29+
if: steps.check-docs.outputs.has_changes == 'true'
30+
uses: actions/setup-python@v4
31+
with:
32+
python-version: 3.x
33+
34+
- name: Install MkDocs
35+
if: steps.check-docs.outputs.has_changes == 'true'
36+
run: |
37+
pip install mkdocs-material
38+
pip install mkdocs-git-revision-date-plugin
39+
40+
- name: Build documentation
41+
if: steps.check-docs.outputs.has_changes == 'true'
42+
run: |
43+
cd docs
44+
mkdocs build
45+
cd ..
46+
mv docs/site .
47+
cp docs/.nojekyll site/
48+
cp docs/CNAME site/CNAME
49+
50+
- name: Setup Pages
51+
if: steps.check-docs.outputs.has_changes == 'true'
52+
uses: actions/configure-pages@v4
53+
with:
54+
enablement: true
55+
token: ${{ secrets.GITHUB_TOKEN }}
56+
57+
- name: Upload artifact
58+
if: steps.check-docs.outputs.has_changes == 'true'
59+
uses: actions/upload-pages-artifact@v3
60+
with:
61+
path: ./site
62+
63+
- name: Deploy to GitHub Pages
64+
if: steps.check-docs.outputs.has_changes == 'true'
65+
id: deployment
66+
uses: actions/deploy-pages@v4
67+
with:
68+
token: ${{ secrets.GITHUB_TOKEN }}
69+
branch: gh-pages
70+
folder: site

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ out/
66
.rayhist.dat
77
test.rfl
88
test.rf
9+
10+
docs/site/

docs/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vscode.rayforcedb.com

docs/docs/assets/cursor.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/docs/assets/github.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/docs/assets/license.png

9.74 KB
Loading

docs/docs/assets/logo_dark.svg

Lines changed: 267 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)