open-notebook/scripts
Luis Novo 2181b14a79
chore(release): rc-stack pulls the pushed image + optional --with-runtimes (#1133)
Retro improvements from the v1.13.0 release:
- rc-stack.sh 'up' now docker-pulls lfnovo/open_notebook:<tag> by default so a
  same-named local build can't shadow the registry artifact during Phase 6
  verification (non-fatal for local-only tags).
- New --with-runtimes flag enables the opt-in heavy engines (Docling +
  Crawl4AI) on the RC stack via RC_ENABLE_DOCLING/RC_ENABLE_CRAWL4AI, so the
  published image's opt-in install path can be exercised with real data. The
  release-test compose defaults these empty, keeping fresh/upgrade tests fast.
- Documented both gotchas (local-tag shadowing; judging opt-in gating on a
  clean image vs a dev venv with runtimes installed out-of-band) in
  RELEASE_PROCESS.md.
2026-07-14 07:29:00 -03:00
..
release-test chore(release): rc-stack pulls the pushed image + optional --with-runtimes (#1133) 2026-07-14 07:29:00 -03:00
check_md_links.py docs: restructure documentation around AGENTS.md, VISION.md and decision records (#1032) 2026-07-10 15:33:19 -03:00
docker-entrypoint.sh feat(sources): opt-in Docling + Crawl4AI runtimes installed at startup (#1122) (#1123) 2026-07-13 08:26:20 -03:00
export_docs.py Enhance export_docs.py with Table of Contents feature (#865) 2026-06-13 08:52:26 -03:00
README.md chore: export docs for custom gpt 2025-10-18 20:26:11 -03:00
wait-for-api.sh fix(docker): make wait-for-api.sh POSIX and enforce LF line endings (#586) (#598) 2026-04-19 15:49:11 -03:00

Scripts Documentation

export_docs.py

Consolidates markdown documentation files for use with ChatGPT or other platforms with file upload limits.

What It Does

  • Scans all subdirectories in the docs/ folder
  • For each subdirectory, combines all .md files (excluding index.md files)
  • Creates one consolidated markdown file per subdirectory
  • Saves all exported files to doc_exports/ in the project root

Usage

# Using Makefile (recommended)
make export-docs

# Or run directly with uv
uv run python scripts/export_docs.py

# Or run with standard Python
python scripts/export_docs.py

Output

The script creates doc_exports/ directory with consolidated files like:

  • getting-started.md - All getting-started documentation
  • user-guide.md - All user guide content
  • features.md - All feature documentation
  • development.md - All development documentation
  • etc.

Each exported file includes:

  • A main header with the folder name
  • Section headers for each source file
  • Source file attribution
  • The complete content from each markdown file
  • Visual separators between sections

Example Output Structure

# Getting Started

This document consolidates all content from the getting-started documentation folder.

---

## Installation

*Source: installation.md*

[Full content of installation.md]

---

## Quick Start

*Source: quick-start.md*

[Full content of quick-start.md]

---

Notes

  • The doc_exports/ directory is gitignored and safe to regenerate anytime
  • Index files (index.md) are automatically excluded
  • Files are sorted alphabetically for consistent output
  • The script handles subdirectories only (ignores files in the root docs/ folder)