Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
410 changes: 0 additions & 410 deletions household_impacts.ipynb

This file was deleted.

53 changes: 48 additions & 5 deletions juypterbook/_config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Book settings
title: "Social Security Taxation Reform: Policy Analysis and Impact Assessment"
author: PolicyEngine
logo: logo.png
logo: policyengine.png
copyright: "2024"

# Force re-execution of notebooks on each build
execute:
execute_notebooks: cache
timeout: 300
execute_notebooks: force
timeout: 600
allow_errors: false

# Define the left-hand sidebar links
Expand All @@ -17,14 +17,47 @@ repository:

# HTML-specific settings
html:
favicon: favicon.ico
favicon: policyengine.png
use_edit_page_button: false
use_repository_button: true
use_issues_button: false
home_page_in_navbar: false
navbar_number_sections: false
announcement: ""

extra_css:
- _static/custom.css
extra_extensions:
- sphinx_external_toc_strict

# Parse and render settings
parse:
myst_enable_extensions:
- colon_fence
- deflist
- html_admonition
- html_image
- linkify
- replacements
- smartquotes
- substitution
- tasklist

# MyST-NB settings for hiding code cells
mystnb:
execution_mode: off
execution_timeout: 600
execution_allow_errors: false
execution_excludepatterns: ["methodology.ipynb"]
remove_code_source: false
remove_code_outputs: false
code_prompt_show: "Show implementation details"
code_prompt_hide: "Hide implementation details"
render_plugin: "default"
render_markdown_format: "commonmark"
render_image_options:
width: "100%"
render_figure_options: {}

# LaTeX settings
latex:
latex_engine: pdflatex
Expand All @@ -36,8 +69,18 @@ bibtex_bibfiles:

# Sphinx extensions
sphinx:
extra_extensions:
- sphinxcontrib.bibtex
config:
nb_execution_mode: "off"
nb_output_stderr: "show"
nb_render_image_options:
width: "100%"
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
suppress_warnings: ["mystnb.unknown_mime_type"]
bibtex_reference_style: author_year
bibtex_default_style: plain
html_theme_options:
repository_url: https://github.com/PolicyEngine/crfb-tob-impacts
use_repository_button: true
Expand Down
82 changes: 82 additions & 0 deletions juypterbook/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/* Enable code cell toggle functionality */
.toggle {
cursor: pointer;
display: block;
margin-bottom: 1rem;
}

.toggle .fa-chevron-down,
.toggle .fa-chevron-right {
padding-right: 0.25rem;
}

/* Hide code cells by default and add toggle */
div.cell_input {
display: none;
}

details.hide-above > summary {
display: list-item;
}

details.hide-above[open] > summary ~ * {
animation: sweep .2s ease-in-out;
}

@keyframes sweep {
0% {opacity: 0; transform: translateX(-10px)}
100% {opacity: 1; transform: translateX(0)}
}

/* PolicyEngine blue hover colors for tables */
table tr:hover {
background-color: #2C6496 !important;
color: white !important;
}

table tr:hover td {
background-color: #2C6496 !important;
color: white !important;
}

/* CSV download button styling */
.csv-download-btn {
background-color: #2C6496;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
margin: 10px 0;
display: inline-block;
text-decoration: none;
}

.csv-download-btn:hover {
background-color: #1f4a73;
color: white;
text-decoration: none;
}

/* Hide code blocks with custom show/hide functionality */
.hide-input {
display: none;
}

/* Custom toggle button for reform code */
.reform-code-toggle {
background-color: #2C6496;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
margin: 10px 0;
display: block;
}

.reform-code-toggle:hover {
background-color: #1f4a73;
}
8 changes: 8 additions & 0 deletions juypterbook/_static/household_impacts_summary.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Employment Income,Opt 1: Full Repeal,Opt 2: Tax 85% of All SS,Opt 3: Tax 85% + Senior Deduction,Opt 4: Tax 85% + $500 Credit,Opt 5: Roth-Style Swap,Opt 6: Phased Roth Swap
$0,$0,$0,$0,$0,$0,$0
"$25,000",$0,$-260,$-260,$0,$0,$0
"$50,000","$2,427",$-198,$-198,$302,"$2,044",$-60
"$75,000","$3,060",$0,$0,$500,"$2,372",$-90
"$100,000","$3,060",$0,$0,$500,"$2,142",$-119
"$150,000","$5,947",$0,$0,$500,"$3,271",$-348
"$200,000","$5,947",$0,$0,$500,"$2,581",$-438
8 changes: 8 additions & 0 deletions juypterbook/_static/policy_impacts_summary.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Policy Option,10-Year Impact (Billions)
Option 1: Full Repeal,-1149.1
Option 2: 85% Taxation,219.3
Option 3: 85% with Senior Deduction,27.8
Option 4: Tax Credit ($500),86.8
Option 5: Roth-Style Swap,756.2
Option 6: Phased Roth-Style,1123.5
Option 7: Eliminate Bonus Senior Deduction,64.2
8 changes: 8 additions & 0 deletions juypterbook/_static/policy_impacts_yearly.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Option,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,10-Year Total
Option 1,-86.3,-91.8,-96.9,-105.9,-112.7,-118.4,-124.9,-131.0,-137.5,-144.3,-1149.1
Option 2,18.3,18.3,18.1,23.8,24.0,23.9,23.8,23.5,23.1,22.8,219.3
Option 3,18.3,18.3,18.1,-3.5,-3.5,-3.6,-3.8,-4.0,-4.2,-4.4,27.8
Option 4,24.4,24.6,24.6,2.9,2.8,2.4,2.0,1.5,1.0,0.6,86.8
Option 5,58.2,61.4,65.6,67.6,73.5,77.8,82.4,86.9,90.1,93.9,756.2
Option 6,18.7,39.9,63.7,83.3,106.7,130.7,154.9,174.9,174.8,173.9,1123.5
Option 7,21.0,21.5,21.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,64.2
10 changes: 5 additions & 5 deletions juypterbook/_toc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
format: jb-book
root: intro
chapters:
- file: policy_options
- file: prior_research
- file: policy-options
- file: prior-research
- file: methodology
- file: policy_impacts
- file: household_impacts
- file: comparison
- file: policy-impacts
- file: household-impacts
- file: bibliography
4 changes: 4 additions & 0 deletions juypterbook/bibliography.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# References

```{bibliography}
```
Loading