chore: sync local assets for ddd doc steward

This commit is contained in:
tukuaiai
2025-12-21 03:56:58 +08:00
parent c09cc6cca4
commit c3d4fcb2ef
136 changed files with 48796 additions and 1 deletions
@@ -0,0 +1,34 @@
import pytest
from skill_seekers.cli.llms_txt_parser import LlmsTxtParser
def test_parse_markdown_sections():
"""Test parsing markdown into page sections"""
sample_content = """# Getting Started
Welcome to the docs.
## Installation
Run: npm install
## Usage
Import the library:
```javascript
import { app } from 'framework'
```
# API Reference
Main API documentation here.
"""
parser = LlmsTxtParser(sample_content)
pages = parser.parse()
assert len(pages) >= 2
assert pages[0]['title'] == 'Getting Started'
assert pages[1]['title'] == 'API Reference'
assert len(pages[0]['code_samples']) == 1
assert pages[0]['code_samples'][0]['language'] == 'javascript'