Skip to content

Commit

Permalink
fix toc
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchobben committed Nov 25, 2024
1 parent e42fe7d commit 4eef18f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ venv
.conda_envs/

# Make file markers
.install*
.install*
_toc.yml
2 changes: 1 addition & 1 deletion src/eo_datascience/render_sfinx_toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import yaml

def render_toc():
p = Path("notebooks").glob('*.ipynb')
p = Path("chapters").glob('*.qmd')
files = [x.with_suffix('') for x in p if x.is_file()]
files.sort()
titles = [x.stem.split("_")[-1].title() for x in files]
Expand Down

0 comments on commit 4eef18f

Please sign in to comment.