Skip to content

Commit d5b822f

Browse files
authored
Merge pull request #56 from kiliczeliha/my-feature
Update github pages docs deploy workflow
2 parents d77291e + c46cdd7 commit d5b822f

144 files changed

Lines changed: 77 additions & 10493 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Deploy Documentation to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [testing]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.11"
28+
29+
- name: Install dependencies
30+
run: pip install -r docs/requirements.txt
31+
32+
- name: Build documentation
33+
run: sphinx-build -b html docs docs/_build/html
34+
35+
- name: Disable Jekyll
36+
run: touch docs/_build/html/.nojekyll
37+
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v4
40+
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: docs/_build/html
45+
46+
deploy:
47+
needs: build
48+
runs-on: ubuntu-latest
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ arxiv/
1515

1616
.mat
1717

18+
docs/_build
19+
deployments/
20+

docs/README.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,20 @@ Adding a new sidebar entry (a new documentation page)
132132
Do not edit import_docx.py for hand-written pages; import_docx only overwrites
133133
the section files it knows about. Keep standalone guides as separate .rst
134134
files and list them only in index.rst.
135+
136+
137+
Publishing on GitHub Pages
138+
---------------------------------------
139+
Live preview (after workflow + Pages are enabled on the branch):
140+
https://kiliczeliha.github.io/SPARTAN/
141+
142+
Sources live in this docs/ folder. HTML under docs/_build/ is generated locally
143+
and in CI; do not commit docs/_build/ (see repo .gitignore).
144+
145+
Updates: push to branch my-feature on your fork; Actions rebuilds the site.
146+
Manual rebuild: GitHub → Actions → "Deploy Documentation to GitHub Pages" → Run workflow.
147+
148+
Unpublish or freeze:
149+
- Take site offline: fork Settings → Pages → Unpublish.
150+
- Stop automatic updates: edit .github/workflows/deploy-documentation.yml
151+
(e.g. workflow_dispatch only) or disable/delete that workflow.
-15.7 KB
Binary file not shown.
-36.4 KB
Binary file not shown.
-8.6 KB
Binary file not shown.
-31 KB
Binary file not shown.
-24.3 KB
Binary file not shown.
-9.03 KB
Binary file not shown.
-507 KB
Binary file not shown.

0 commit comments

Comments
 (0)