Skip to content

Commit

Permalink
Add jupyter book
Browse files Browse the repository at this point in the history
  • Loading branch information
cpraveen committed Dec 10, 2024
1 parent 132acaf commit 4d381d7
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,20 @@ Run the code in colab: [![Colab](https://colab.research.google.com/assets/colab-
Matlab versions of the code are available here

https://github.com/cpraveen/spectral_matlab

## Building jupyter-book

Install

```shell
conda install jupyter-book ghp-import
```

Build html and publish

```shell
git checkout [email protected]:cpraveen/chebpy
jb build chebpy
cd chebpy
ghp-import -n -p -f _build/html
```
49 changes: 49 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Book settings
# Learn more at https://jupyterbook.org/customize/config.html

title: Spectral Methods
author: Praveen Chandrashekar
copyright: "2024"
logo: logo.png

# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: force

# Define the name of the latex output file for PDF builds
latex:
latex_documents:
targetname: book.tex

# Add a bibtex file so that we can create citations
bibtex_bibfiles:
- references.bib

# Information about where the book exists on the web
repository:
url: https://github.com/cpraveen/chebpy # Online location of your book
path_to_book: docs # Optional path to your book, relative to the repository root
branch: master # Which branch of the repository should be used when creating links (optional)

# Add GitHub buttons to your book
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
html:
use_issues_button: true
use_repository_button: true
use_multitoc_numbering: true # Continuous numbering across parts/chapters
home_page_in_navbar: true # to include home page in the left Navigation Bar

sphinx:
config:
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
# extra_extensions:
# - sphinx_exercise
# - sphinx_proof

parse:
myst_enable_extensions:
# don't forget to list any other extensions you want enabled,
# including those that are enabled by default!
- amsmath
- dollarmath
38 changes: 38 additions & 0 deletions _toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Table of contents
# Learn more at https://jupyterbook.org/customize/toc.html

format: jb-book
root: front
chapters:
- file: p01.ipynb
- file: p02.ipynb
- file: p03.ipynb
- file: p04.ipynb
- file: p05.ipynb
- file: p05b.ipynb
- file: p05c.ipynb
- file: p06.ipynb
- file: p07.ipynb
- file: p08.ipynb
- file: p09.ipynb
- file: p10.ipynb
- file: p11.ipynb
- file: p12.ipynb
- file: p13.ipynb
- file: p14.ipynb
- file: p15.ipynb
- file: p16.ipynb
- file: p17.ipynb
- file: p18.ipynb
- file: p19.ipynb
- file: p20.ipynb
- file: p21.ipynb
- file: p22.ipynb
- file: p23.ipynb
- file: p24.ipynb
- file: p25.ipynb
- file: p26.ipynb
- file: p27.ipynb
- file: p30.ipynb
- file: p32.ipynb
- file: p33.ipynb
4 changes: 4 additions & 0 deletions front.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Spectral Methods

```{tableofcontents}
```
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions references.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

@book{Trefethen2000,
title = {Spectral {Methods} in {MATLAB}},
isbn = {978-0-89871-465-4 978-0-89871-959-8},
url = {http://epubs.siam.org/doi/book/10.1137/1.9780898719598},
language = {en},
urldate = {2023-11-05},
publisher = {Society for Industrial and Applied Mathematics},
author = {Trefethen, Lloyd N.},
month = jan,
year = {2000},
}

0 comments on commit 4d381d7

Please sign in to comment.