File tree Expand file tree Collapse file tree 4 files changed +67
-0
lines changed
Expand file tree Collapse file tree 4 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Quarto Render & Deploy
2+ on :
3+ push :
4+ branches : [ main ]
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+
12+ # ===== Install Quarto CLI (>=1.6) =====
13+ - uses : quarto-dev/quarto-actions/setup@v2
14+ with :
15+ version : " 1.6.43" # pin or use 'release'
16+
17+ # Ensure the APT-installed binary shadows any pip shim
18+ - run : echo "PATH=/usr/bin:${PATH}" >> $GITHUB_ENV
19+
20+ # Install quarto-live extension each build (fast)
21+ - run : quarto add --no-prompt r-wasm/quarto-live
22+
23+ # (Optional) install python & deps if you execute notebooks
24+ # - uses: actions/setup-python@v5
25+ # with: { python-version: '3.11' }
26+ # - run: pip install -r requirements.txt
27+
28+ # ===== Render the site =====
29+ - name : Render
30+ run : quarto render
31+
32+ # ===== Deploy to gh-pages =====
33+ - name : Publish
34+ uses : peaceiris/actions-gh-pages@v4
35+ with :
36+ github_token : ${{ secrets.GITHUB_TOKEN }}
37+ publish_branch : gh-pages
38+ publish_dir : docs
Original file line number Diff line number Diff line change 1+ project :
2+ type : book # Use book layout for left sidebar navigation
3+ output-dir : docs # Render site output to docs/ for GitHub Pages
4+ book :
5+ title : " How to Learn to Code – Python for Data Science"
6+ sidebar :
7+ style : floating
8+ chapters : # notebooks (ipynb) live inside lesson folders
9+ - index.qmd
10+ - Lesson_0_Introduction/Lesson_0_Student_Version.ipynb
11+ - Lesson_1_Basics/Lesson_1_Student_Version.ipynb
12+ - Lesson_2_Control_Structs/Lesson_2_Control_structs_student.ipynb
13+ - Lesson_3_Abstraction_Functions/functions_student.ipynb
14+ - Lesson_4_FileIO/Lesson_4_student.ipynb
15+ - Lesson_5_Pandas_DataFrame/Lesson5_pandas_DataFrame_Student.ipynb
16+ - Lesson_6_NumPy/Lesson_6_NumPy_Student_Version.ipynb
17+ - Lesson_7_Plotting/plotting_student.ipynb
18+ - Lesson_8a_Scikit_Learn/scikit_learn_student.ipynb
19+ - Lesson_8b_Python_Ecosystem/Lesson_8b_Python_Ecosystem_teacher.ipynb
20+ - Lesson_8c_scanpy/Lesson_8c_scanpy.ipynb
21+
22+ format :
23+ live-html : # enables Pyodide interactivity
24+ theme : cosmo
25+ toc : true
26+ number-sections : false
27+
28+ execute : # build-time execution off; keep nb outputs
29+ enabled : false
You can’t perform that action at this time.
0 commit comments