Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/docs/tutorials/items/quick_start/quick_start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"source": [
"# Quick Start\n",
"\n",
"In this tutorial, we assume that Bridgic is already installed on your system. If that’s not the case, see [Installation](../../../installation).\n",
"\n",
"Let's start by building a simple word learning assistant. You provide a word, and the assistant will generate its derived forms and create sentences with them. This example will also show how to use Bridgic in practice.\n",
"In this tutorial, we assume that Bridgic is already installed on your system. Let's begin by creating a simple word learning assistant. You just need to provide a word, and the assistant will automatically generate its derived forms and craft example sentences using them. This example will also give you hands-on experience with how Bridgic works in practice.\n",
"\n",
"## Word learning assistant\n",
"\n",
Expand Down
3 changes: 3 additions & 0 deletions docs/scripts/doc_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ generation_options:
only_index_pages: true
# Render single-entry packages as groups with Index child in nav (ensures visibility)
single_entry_as_group: true
# Module identifiers for which index.md should NOT be generated (e.g. bridgic.core)
exclude_index_modules:
- "bridgic.core"

# Docstring style (numpy, google, sphinx)
docstring_style: "numpy"
Expand Down
16 changes: 16 additions & 0 deletions docs/scripts/gen_mkdocs_yml.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def _set_defaults(self):
"conftest.py",
"version.py"
}
# Module identifiers (e.g. "bridgic.core") for which index.md should NOT be generated
self.exclude_index_modules = set()

# Package directories to process
self.packages = ["bridgic-core", "bridgic-asl"]
Expand Down Expand Up @@ -135,6 +137,8 @@ def load_from_file(self, config_file: str):
self.docstring_style = gen_opts.get('docstring_style', self.docstring_style)
self.only_index_pages = gen_opts.get('only_index_pages', self.only_index_pages)
self.single_entry_as_group = gen_opts.get('single_entry_as_group', self.single_entry_as_group)
if 'exclude_index_modules' in gen_opts:
self.exclude_index_modules = set(gen_opts['exclude_index_modules'])

# mkdocstrings_options now governed by mkdocs_template.yml; ignore here

Expand Down Expand Up @@ -688,6 +692,12 @@ def process_package(self, package_path: str) -> None:
if self.config.verbose:
logger.debug(f"Skipping {path} - no __all__ defined")
continue
# Skip index pages for modules in exclude_index_modules (e.g. bridgic.core)
identifier = self.generate_module_identifier(parts)
if identifier in self.config.exclude_index_modules:
if self.config.verbose:
logger.debug(f"Skipping index for excluded module: {identifier}")
continue
elif parts[-1] == "__main__":
continue
elif self.config.only_index_pages:
Expand Down Expand Up @@ -848,6 +858,12 @@ def _build_nav_structure_only(self, package_path: str) -> None:
if self.config.verbose:
logger.debug(f"Skipping {path} - no __all__ defined")
continue
# Skip nav/node for modules listed in exclude_index_modules (e.g. bridgic.core)
identifier = self.generate_module_identifier(parts)
if identifier in self.config.exclude_index_modules:
if self.config.verbose:
logger.debug(f"Skipping nav for excluded index module: {identifier}")
continue
elif parts[-1] == "__main__":
continue
elif self.config.only_index_pages:
Expand Down
Loading