Skip to content

Commit

Permalink
Revert "Merge pull request #214 from alanlujan91/master"
Browse files Browse the repository at this point in the history
This reverts commit 4c1ec1e, reversing
changes made to ffc6131.
  • Loading branch information
alanlujan91 committed Oct 24, 2024
1 parent 4c1ec1e commit f7167b4
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 62 deletions.
70 changes: 33 additions & 37 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,42 @@
# This file was created automatically with `myst init --gh-pages` 🪄 💚
name: deploy-book

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

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v3
- uses: actions/setup-node@v4
- uses: actions/checkout@v2

- uses: actions/checkout@v2

- name: Setup mamba environment to run notebooks
uses: mamba-org/provision-with-micromamba@main
with:
node-version: 18.x
- name: Install MyST Markdown
run: npm install -g mystmd
- name: Build HTML Assets
run: myst build --html
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
environment-file: binder/environment.yml
extra-specs: |
jupyter-book
# Build the book
- name: Build the book
shell: bash -l {0}
run: |
jupyter-book build .
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
path: './_build/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
41 changes: 41 additions & 0 deletions _toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Table of Contents
#
# Myst will respect:
# 1. New pages
# - file: relative/path/to/page
# 2. New sections without an associated page
# - title: Folder Title
# sections: ...
# 3. New sections with an associated page
# - file: relative/path/to/page
# sections: ...
#
# Note: Titles defined on pages here are not recognized.
#
# This spec is based on the JupyterBook table of contents.
# Learn more at https://jupyterbook.org/customize/toc.html

format: jb-book
root: README
chapters:
- file: notebooks/Alternative-Combos-Of-Parameter-Values
- file: notebooks/ChangeLiqConstr
- file: notebooks/Chinese-Growth
- file: notebooks/DCEGM-Upper-Envelope
- file: notebooks/DiamondOLG
- file: notebooks/FisherTwoPeriod
- file: notebooks/Gentle-Intro-To-HARK-Buffer-Stock-Model
- file: notebooks/Gentle-Intro-To-HARK-PerfForesightCRRA
- file: notebooks/Harmenberg-Aggregation
- file: notebooks/IncExpectationExample
- file: notebooks/KeynesFriedmanModigliani
- file: notebooks/LC-Model-Expected-Vs-Realized-Income-Growth
- file: notebooks/LifeCycleModelTheoryVsData
- file: notebooks/Lucas-Asset-Pricing-Model
- file: notebooks/MPC-Out-of-Credit-vs-MPC-Out-of-Income
- file: notebooks/Micro-and-Macro-Implications-of-Very-Impatient-HHs
- file: notebooks/Nondurables-During-Great-Recession
- file: notebooks/PerfForesightCRRA-Approximation
- file: notebooks/PerfForesightCRRA-SavingRate
- file: notebooks/Structural-Estimates-From-Empirical-MPCs-Fagereng-et-al
- file: notebooks/TractableBufferStock-Interactive
25 changes: 0 additions & 25 deletions myst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,6 @@ project:
authors: []
github: https://github.com/econ-ark/DemARK
# bibliography: []
toc:
# Auto-generated by `myst init --write-toc`
- file: README.md
- file: notebooks/Alternative-Combos-Of-Parameter-Values.ipynb
- file: notebooks/ChangeLiqConstr.ipynb
- file: notebooks/Chinese-Growth.ipynb
- file: notebooks/DCEGM-Upper-Envelope.ipynb
- file: notebooks/DiamondOLG.ipynb
- file: notebooks/FisherTwoPeriod.ipynb
- file: notebooks/Gentle-Intro-To-HARK-Buffer-Stock-Model.ipynb
- file: notebooks/Gentle-Intro-To-HARK-PerfForesightCRRA.ipynb
- file: notebooks/Harmenberg-Aggregation.ipynb
- file: notebooks/IncExpectationExample.ipynb
- file: notebooks/KeynesFriedmanModigliani.ipynb
- file: notebooks/LC-Model-Expected-Vs-Realized-Income-Growth.ipynb
- file: notebooks/LifeCycleModelTheoryVsData.ipynb
- file: notebooks/Lucas-Asset-Pricing-Model.ipynb
- file: notebooks/MPC-Out-of-Credit-vs-MPC-Out-of-Income.ipynb
- file: notebooks/Micro-and-Macro-Implications-of-Very-Impatient-HHs.ipynb
- file: notebooks/Nondurables-During-Great-Recession.ipynb
- file: notebooks/PerfForesightCRRA-Approximation.ipynb
- file: notebooks/PerfForesightCRRA-SavingRate.ipynb
- file: notebooks/Structural-Estimates-From-Empirical-MPCs-Fagereng-et-al.ipynb
- file: notebooks/TractableBufferStock-Interactive.ipynb

site:
template: book-theme
# title:
Expand Down

0 comments on commit f7167b4

Please sign in to comment.