# If the notebook name starts with a number and dash, extract just the title part
ifre.match(r'^\d+-',title):
title=''.join(title.split('')[1:])
content.append(f"- [{title}]({path})")
content.append("")
# Write index file
index_path=tutorials_dir/"index.md"
withopen(index_path,'w')asf:
f.write('\n'.join(content))
print(f"Created tutorials index: {index_path}")
returnindex_path
defcreate_intro_page():
"""Create the introduction/landing page for the documentation."""
content=[
"# ARBD Model Documentation",
"",
"Welcome to the documentation for the ARBD Model package!",
"",
"## Overview",
"",
"ARBD Model is a comprehensive package for coarse-grained molecular modeling and simulation of biomolecular systems. It provides tools for creating and simulating a variety of molecular models, including polymer systems, protein structures, and rigid bodies.",
"",
"## Features",
"",
"- **Polymer Modeling**: Create and simulate various polymer models including flexible chain models, hydrophobicity-based models, and specialized DNA models.",
"- **Rigid Body Simulation**: Simulate molecular structures as rigid bodies with accurate hydrodynamic properties.",
"- **Shape-Based Models**: Generate coarse-grained models based on the shape of molecular structures.",
"- **Interaction Potentials**: Wide range of interaction potentials, including the ability to develop custom potentials using Iterative Boltzmann Inversion (IBI).",
"- **Simulation Engines**: Multiple simulation engine options for different modeling needs.",
"",
"## Getting Started",
"",
"To get started, check out the [Tutorials](tutorials/index) section for examples and walkthroughs.",
"",
"## Python API Reference",
"",
"For detailed documentation of the Python API, see the [API Reference](api/index) section.",
"",
]
intro_path=DOCS_DIR/"intro.md"
withopen(intro_path,'w')asf:
f.write('\n'.join(content))
print(f"Created introduction page: {intro_path}")
returnintro_path
defcreate_jupyter_book_files(category_indices):
"""Create the _toc.yml and _config.yml files for Jupyter Book."""
# Table of Contents
toc={
"format":"jb-book",
"root":"intro",
"parts":[
{
"caption":"Getting Started",
"chapters":[
# Removed "intro" as chapter since it's already the root