Skip to content

Commit

Permalink
Update intro_tutorial_colab.ipynb
Browse files Browse the repository at this point in the history
Integrate JupyterLite and  Colab for tutorial
  • Loading branch information
tpike3 committed Jun 4, 2024
1 parent 9fe214f commit ae4219e
Show file tree
Hide file tree
Showing 32 changed files with 644 additions and 601 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and Deploy

on:
push:
branches:
- main
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install the dependencies
run: |
python -m pip install -r requirements.txt
- name: Build the JupyterLite site
run: |
cp README.md content
jupyter lite build --contents content --output-dir dist
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist

deploy:
needs: build
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ __pycache__/
# Distribution / packaging
.Python
build/
docs/build
develop-eggs/
dist/
downloads/
Expand Down Expand Up @@ -329,3 +330,8 @@ pip-log.txt
mesa_geo/visualization/templates/css/*
mesa_geo/visualization/templates/js/*
!mesa_geo/visualization/templates/js/MapModule.js

# Jupyter Lite files
.jupyterlite.doit.db
*.jupyterlite.doit.db
.virtual_documents
1 change: 1 addition & 0 deletions .nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

7 changes: 5 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# Read the Docs configuration file
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
configuration: docs/source/conf.py
fail_on_warning: false

# Optionally build your docs in additional formats such as PDF
formats:
- pdf
- epub

build:
os: "ubuntu-22.04"
Expand All @@ -24,3 +26,4 @@ python:
path: .
extra_requirements:
- docs

177 changes: 0 additions & 177 deletions docs/Makefile

This file was deleted.

44 changes: 0 additions & 44 deletions docs/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/apis/visualization.rst

This file was deleted.

Loading

0 comments on commit ae4219e

Please sign in to comment.