Skip to content

Commit 4fd2ab0

Browse files
committed
add contents
1 parent 8552a28 commit 4fd2ab0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+95328
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Setup Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.10'
21+
- name: Install the dependencies
22+
run: |
23+
python -m pip install -r requirements.txt
24+
- name: Build the JupyterLite site
25+
run: |
26+
cp README.md content
27+
jupyter lite build --contents content --output-dir dist
28+
- name: Upload artifact
29+
uses: actions/upload-pages-artifact@v1
30+
with:
31+
path: ./dist
32+
33+
deploy:
34+
needs: build
35+
if: github.ref == 'refs/heads/main'
36+
permissions:
37+
pages: write
38+
id-token: write
39+
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v1

.gitignore

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
*.bundle.*
2+
lib/
3+
node_modules/
4+
.yarn-packages/
5+
*.egg-info/
6+
.ipynb_checkpoints
7+
*.tsbuildinfo
8+
9+
# Created by https://www.gitignore.io/api/python
10+
# Edit at https://www.gitignore.io/?templates=python
11+
12+
### Python ###
13+
# Byte-compiled / optimized / DLL files
14+
__pycache__/
15+
*.py[cod]
16+
*$py.class
17+
18+
# C extensions
19+
*.so
20+
21+
# Distribution / packaging
22+
.Python
23+
build/
24+
develop-eggs/
25+
dist/
26+
downloads/
27+
eggs/
28+
.eggs/
29+
lib/
30+
lib64/
31+
parts/
32+
sdist/
33+
var/
34+
wheels/
35+
pip-wheel-metadata/
36+
share/python-wheels/
37+
.installed.cfg
38+
*.egg
39+
MANIFEST
40+
41+
# PyInstaller
42+
# Usually these files are written by a python script from a template
43+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
44+
*.manifest
45+
*.spec
46+
47+
# Installer logs
48+
pip-log.txt
49+
pip-delete-this-directory.txt
50+
51+
# Unit test / coverage reports
52+
htmlcov/
53+
.tox/
54+
.nox/
55+
.coverage
56+
.coverage.*
57+
.cache
58+
nosetests.xml
59+
coverage.xml
60+
*.cover
61+
.hypothesis/
62+
.pytest_cache/
63+
64+
# Translations
65+
*.mo
66+
*.pot
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# pyenv
78+
.python-version
79+
80+
# celery beat schedule file
81+
celerybeat-schedule
82+
83+
# SageMath parsed files
84+
*.sage.py
85+
86+
# Spyder project settings
87+
.spyderproject
88+
.spyproject
89+
90+
# Rope project settings
91+
.ropeproject
92+
93+
# Mr Developer
94+
.mr.developer.cfg
95+
.project
96+
.pydevproject
97+
98+
# mkdocs documentation
99+
/site
100+
101+
# mypy
102+
.mypy_cache/
103+
.dmypy.json
104+
dmypy.json
105+
106+
# Pyre type checker
107+
.pyre/
108+
109+
# OS X stuff
110+
*.DS_Store
111+
112+
# End of https://www.gitignore.io/api/python
113+
114+
# jupyterlite
115+
*.doit.db
116+
_output

.nojekyll

Whitespace-only changes.

content/lectures/_config.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
title: An Introduction to Quantitative Economics and Finance
2+
author: Thomas J. Sargent & John Stachurski
3+
logo: _static/qe-logo.png
4+
description: This website presents introductory lectures on computational economics, designed and written by Thomas J. Sargent and John Stachurski.
5+
6+
parse:
7+
myst_enable_extensions: # default extensions to enable in the myst parser. See https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html
8+
- amsmath
9+
- colon_fence
10+
- deflist
11+
- dollarmath
12+
- html_admonition
13+
- html_image
14+
- linkify
15+
- replacements
16+
- smartquotes
17+
- substitution
18+
- tasklist
19+
20+
only_build_toc_files: true
21+
execute:
22+
execute_notebooks: "cache"
23+
timeout: 600 # 10 minutes
24+
exclude_patterns:
25+
- '_static/*'
26+
27+
html:
28+
baseurl: https://intro.quantecon.org/
29+
30+
bibtex_bibfiles:
31+
- _static/quant-econ.bib
32+
33+
latex:
34+
latex_documents:
35+
targetname: quantecon-python-intro.tex
36+
37+
sphinx:
38+
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_exercise, sphinx_togglebutton, sphinx_proof, sphinx_tojupyter]
39+
config:
40+
# myst-nb config
41+
nb_render_image_options:
42+
width: 80%
43+
html_favicon: _static/lectures-favicon.ico
44+
html_theme: quantecon_book_theme
45+
html_static_path: ['_static']
46+
html_theme_options:
47+
header_organisation_url: https://quantecon.org
48+
header_organisation: QuantEcon
49+
repository_url: https://github.com/QuantEcon/lecture-python-intro
50+
nb_repository_url: https://github.com/QuantEcon/lecture-python-intro.notebooks
51+
twitter: quantecon
52+
twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png
53+
og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png
54+
description: This website presents introductory lectures on computational economics, designed and written by Thomas J. Sargent and John Stachurski.
55+
keywords: Python, QuantEcon, Quantitative Economics, Economics, Sloan, Alfred P. Sloan Foundation, Tom J. Sargent, John Stachurski
56+
# analytics:
57+
# google_analytics_id: UA-54984338-9
58+
launch_buttons:
59+
notebook_interface : classic # The interface interactive links will activate ["classic", "jupyterlab"]
60+
binderhub_url : https://mybinder.org # The URL of the BinderHub (e.g., https://mybinder.org)
61+
colab_url : https://colab.research.google.com
62+
thebe : false # Add a thebe button to pages (requires the repository to run on Binder)
63+
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
64+
rediraffe_redirects:
65+
index_toc.md: intro.md
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)