Skip to content

Commit f7167b4

Browse files
committed
Revert "Merge pull request #214 from alanlujan91/master"
This reverts commit 4c1ec1e, reversing changes made to ffc6131.
1 parent 4c1ec1e commit f7167b4

File tree

3 files changed

+74
-62
lines changed

3 files changed

+74
-62
lines changed

.github/workflows/deploy.yml

+33-37
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,42 @@
1-
# This file was created automatically with `myst init --gh-pages` 🪄 💚
1+
name: deploy-book
22

3-
name: MyST GitHub Pages Deploy
3+
# Only run this when the master branch changes
44
on:
55
push:
6-
# Runs on pushes targeting the default branch
7-
branches: [main]
8-
env:
9-
# `BASE_URL` determines the website is served from, including CSS & JS assets
10-
# You may need to change this to `BASE_URL: ''`
11-
BASE_URL: /${{ github.event.repository.name }}
6+
branches:
7+
- master
8+
# If your git repository has the Jupyter Book within some-subfolder next to
9+
# unrelated files, you can make this run only if a file within that specific
10+
# folder has been modified.
11+
#
12+
# paths:
13+
# - some-subfolder/**
1214

13-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14-
permissions:
15-
contents: read
16-
pages: write
17-
id-token: write
18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20-
concurrency:
21-
group: 'pages'
22-
cancel-in-progress: false
15+
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
2316
jobs:
24-
deploy:
25-
environment:
26-
name: github-pages
27-
url: ${{ steps.deployment.outputs.page_url }}
17+
deploy-book:
2818
runs-on: ubuntu-latest
2919
steps:
30-
- uses: actions/checkout@v4
31-
- name: Setup Pages
32-
uses: actions/configure-pages@v3
33-
- uses: actions/setup-node@v4
20+
- uses: actions/checkout@v2
21+
22+
- uses: actions/checkout@v2
23+
24+
- name: Setup mamba environment to run notebooks
25+
uses: mamba-org/provision-with-micromamba@main
3426
with:
35-
node-version: 18.x
36-
- name: Install MyST Markdown
37-
run: npm install -g mystmd
38-
- name: Build HTML Assets
39-
run: myst build --html
40-
- name: Upload artifact
41-
uses: actions/upload-pages-artifact@v1
27+
environment-file: binder/environment.yml
28+
extra-specs: |
29+
jupyter-book
30+
31+
# Build the book
32+
- name: Build the book
33+
shell: bash -l {0}
34+
run: |
35+
jupyter-book build .
36+
37+
# Push the book's HTML to github-pages
38+
- name: GitHub Pages action
39+
uses: peaceiris/[email protected]
4240
with:
43-
path: './_build/html'
44-
- name: Deploy to GitHub Pages
45-
id: deployment
46-
uses: actions/deploy-pages@v2
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_dir: ./_build/html

_toc.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Table of Contents
2+
#
3+
# Myst will respect:
4+
# 1. New pages
5+
# - file: relative/path/to/page
6+
# 2. New sections without an associated page
7+
# - title: Folder Title
8+
# sections: ...
9+
# 3. New sections with an associated page
10+
# - file: relative/path/to/page
11+
# sections: ...
12+
#
13+
# Note: Titles defined on pages here are not recognized.
14+
#
15+
# This spec is based on the JupyterBook table of contents.
16+
# Learn more at https://jupyterbook.org/customize/toc.html
17+
18+
format: jb-book
19+
root: README
20+
chapters:
21+
- file: notebooks/Alternative-Combos-Of-Parameter-Values
22+
- file: notebooks/ChangeLiqConstr
23+
- file: notebooks/Chinese-Growth
24+
- file: notebooks/DCEGM-Upper-Envelope
25+
- file: notebooks/DiamondOLG
26+
- file: notebooks/FisherTwoPeriod
27+
- file: notebooks/Gentle-Intro-To-HARK-Buffer-Stock-Model
28+
- file: notebooks/Gentle-Intro-To-HARK-PerfForesightCRRA
29+
- file: notebooks/Harmenberg-Aggregation
30+
- file: notebooks/IncExpectationExample
31+
- file: notebooks/KeynesFriedmanModigliani
32+
- file: notebooks/LC-Model-Expected-Vs-Realized-Income-Growth
33+
- file: notebooks/LifeCycleModelTheoryVsData
34+
- file: notebooks/Lucas-Asset-Pricing-Model
35+
- file: notebooks/MPC-Out-of-Credit-vs-MPC-Out-of-Income
36+
- file: notebooks/Micro-and-Macro-Implications-of-Very-Impatient-HHs
37+
- file: notebooks/Nondurables-During-Great-Recession
38+
- file: notebooks/PerfForesightCRRA-Approximation
39+
- file: notebooks/PerfForesightCRRA-SavingRate
40+
- file: notebooks/Structural-Estimates-From-Empirical-MPCs-Fagereng-et-al
41+
- file: notebooks/TractableBufferStock-Interactive

myst.yml

-25
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,6 @@ project:
77
authors: []
88
github: https://github.com/econ-ark/DemARK
99
# bibliography: []
10-
toc:
11-
# Auto-generated by `myst init --write-toc`
12-
- file: README.md
13-
- file: notebooks/Alternative-Combos-Of-Parameter-Values.ipynb
14-
- file: notebooks/ChangeLiqConstr.ipynb
15-
- file: notebooks/Chinese-Growth.ipynb
16-
- file: notebooks/DCEGM-Upper-Envelope.ipynb
17-
- file: notebooks/DiamondOLG.ipynb
18-
- file: notebooks/FisherTwoPeriod.ipynb
19-
- file: notebooks/Gentle-Intro-To-HARK-Buffer-Stock-Model.ipynb
20-
- file: notebooks/Gentle-Intro-To-HARK-PerfForesightCRRA.ipynb
21-
- file: notebooks/Harmenberg-Aggregation.ipynb
22-
- file: notebooks/IncExpectationExample.ipynb
23-
- file: notebooks/KeynesFriedmanModigliani.ipynb
24-
- file: notebooks/LC-Model-Expected-Vs-Realized-Income-Growth.ipynb
25-
- file: notebooks/LifeCycleModelTheoryVsData.ipynb
26-
- file: notebooks/Lucas-Asset-Pricing-Model.ipynb
27-
- file: notebooks/MPC-Out-of-Credit-vs-MPC-Out-of-Income.ipynb
28-
- file: notebooks/Micro-and-Macro-Implications-of-Very-Impatient-HHs.ipynb
29-
- file: notebooks/Nondurables-During-Great-Recession.ipynb
30-
- file: notebooks/PerfForesightCRRA-Approximation.ipynb
31-
- file: notebooks/PerfForesightCRRA-SavingRate.ipynb
32-
- file: notebooks/Structural-Estimates-From-Empirical-MPCs-Fagereng-et-al.ipynb
33-
- file: notebooks/TractableBufferStock-Interactive.ipynb
34-
3510
site:
3611
template: book-theme
3712
# title:

0 commit comments

Comments
 (0)