File tree Expand file tree Collapse file tree 3 files changed +11
-14
lines changed Expand file tree Collapse file tree 3 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 22/jupyter_execute
33/conf.py
44/_build
5+ /index.md
Original file line number Diff line number Diff line change 11import os
22from pathlib import Path
33
4+ # Copy 01-about/000_intro.md to index.md
5+ # We want the intro to the first chapter to also be the intro to the book,
6+ # and it doesn't seem to be easily possible to get rid of an index file entirely.
7+ directory = Path (__file__ ).parent
8+ with open (directory / "01-about/000_intro.md" , "r" , encoding = "utf-8" ) as src :
9+ intro_content = src .read ()
10+ with open (directory / "index.md" , "w" , encoding = "utf-8" ) as dst :
11+ dst .write ("<!-- This is a copy of 01-about/000_intro.md; DO NOT EDIT -->\n \n " )
12+ dst .write (intro_content )
13+
414# This script provides a platform-independent way of making the jupyter-book call (used in pyproject.toml)
515folder = Path (__file__ ).parent
616toc_file = folder / "_toc.yml"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments