template/book/_config.yml
2025-09-14 08:19:00 +02:00

52 lines
5.1 KiB
YAML

title: TeachBooks template # Replace this with your own book title
author: TeachBooks Team, built with <a href="https://teachbooks.io">TeachBooks</a>, <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="license noopener noreferrer"">CC BY 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg" alt=""></a>
# Replace TeachBooks Teams with your own name in the line above
execute:
execute_notebooks: "off" # Replace this if you want don't have notebooks with output and you want to add notebook output during build
only_build_toc_files: true # Replace this with false if you want to build all files in the book, allowing you to refer to pages which are not included in the table of contents
html:
favicon : "figures/TB_favicon.ico" # Replace this with your own favicon
baseurl : "https://<user/org>.io/<repo>" # Replace this with your own URL
sphinx: # Options passed on to the underlying sphinx-parser
config:
language: en # Defines language (English) of everything except the content itself. For Dutch: replace with `nl`
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js # Required for live code: https://teachbooks.io/manual/features/live_code.html
thebe_config:
use_thebe_lite: true # Required for live code: https://teachbooks.io/manual/features/live_code.html
exclude_patterns: ["**/_*.yml", "**/*.md", "**/*.ipynb"] #exclude files which should not be accessible for live code: https://teachbooks.io/manual/features/live_code.html
html_theme_options:
logo:
text: Template # Replace this with your own book title
image_light: TeachBooks_logo.svg # Put your logo for the light mode here (can be the same as image_dark)
image_dark: TeachBooks_logo_inverted.svg # Put your logo for the dark mode here (can be the same as image_light)
repository_url: "https://github.com/user/repo" # Add your own repo URL here
path_to_docs: "book" # Required for edit_page_button, should be book if you're using TeachBooks package (https://github.com/TeachBooks/TeachBooks) or the TeachBooks deploy book workflow (https://teachbooks.io/manual/external/deploy-book-workflow/README.html)
repository_branch: "main" # Replace when you change the name of your published branch (required for edit_page_button)
use_edit_page_button: true # Replace with false if you don't want the edit page button (i.e. if you don't user to propose changes themselves or have a private repo)
use_repository_button: true # Replace with false if you don't want the repository button (i.e. if you have a private repo)
use_issues_button : true # Replace with false if you don't want the issues button (i.e. if you don't want to use GitHub issues or have a private repo)
launch_buttons:
thebe: true # Required for live code: https://teachbooks.io/manual/features/live_code.html
html_show_copyright: false # As the copyright is included in the author field
html_last_updated_fmt: '%B %-d, %Y' # Adds the date of the last update to the footer
html_static_path: ["figures"] # Add folder that contain files that need to be included, such as the location of the logo(s)
mathjax3_config:
chtml: {
mtextInheritFont: true # To typeset text within math prettier
}
named_colors_custom_colors: {'attributiongrey':[150,150,150]} # Defines grey colour for attribution admonition of external pages, configuration part of TeachBooks package (https://teachbooks.io/manual/features/external_toc.html)
extra_extensions:
- teachbooks_favourites # Gives you a starter package of extensions to use in your book, replace with individual extensions if you prefer some extensions not to be included (https://github.com/TeachBooks/TeachBooks-Favourites)
teachbooks:
attribution_location: top # Default value, sets location of attribution admonition of external pages, configuration part of TeachBooks package (https://teachbooks.io/manual/features/external_toc.html)
attribution_color: attributiongrey # Sets grey colour for attribution admonition of external pages, configuration part of TeachBooks package (https://teachbooks.io/manual/features/external_toc.html)
bibtex_bibfiles:
- references.bib # Required for references