From c2a5fe26a86e2e7445c082917859561bd11b3868 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sat, 27 Dec 2025 16:59:55 +0100 Subject: [PATCH 1/2] CI: Fixed creation of x86_64 docs on stencils and example asm code --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 413d033..10ac912 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,7 +121,7 @@ jobs: - uses: actions/upload-artifact@v4 if: strategy.job-index == 0 with: - name: runner-linux + name: runner-linux-x86_64 path: build/runner/* build-arm64: @@ -290,7 +290,7 @@ jobs: mkdir -p release cp tmp/stencil-object-files/* release/ cp tmp/musl-object-files/* release/ - cp tmp/runner-linux/coparun release/ + cp tmp/runner-linux-x86_64/coparun release/ cp tmp/runner-linux-arm64/coparun release/coparun-aarch64 cp tmp/runner-linux-armv6/coparun release/coparun-armv6 cp tmp/runner-linux-armv7/coparun release/coparun-armv7 From 37467696d5d4ca8214be1dac95884ac68ff01489 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sat, 27 Dec 2025 17:38:17 +0100 Subject: [PATCH 2/2] Docs: added examples to start page --- docs/source/extract_section.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/source/extract_section.py b/docs/source/extract_section.py index 6ca98ba..177a32c 100644 --- a/docs/source/extract_section.py +++ b/docs/source/extract_section.py @@ -12,7 +12,7 @@ def extract_sections(md_text: str) -> dict[str, str]: # regex captures: heading marks (###...), heading text, and the following content pattern = re.compile( r'^(#{1,6})\s+(.*?)\s*$' # heading level + heading text - r'(.*?)' # section content (lazy) + r'(.*?(?:```.*?```.*?)*?)' # section content (lazy) r'(?=^#{1,6}\s+|\Z)', # stop at next heading or end of file re.MULTILINE | re.DOTALL ) @@ -37,7 +37,9 @@ if __name__ == '__main__': readme = extract_sections(f.read()) with open(os.path.join(build_dir, 'start.md'), 'wt') as f: - f.write('\n'.join(f"# {s}\n" + readme[s] for s in ['Copapy', 'Current state', 'Install', 'License'])) + f.write('\n'.join(f"{s}\n" + readme[s.strip(' #')] for s in [ + '# Copapy', '## Current state', '## Install', '## Examples', + '### Basic example', '### Inverse kinematics', '## License'])) with open(os.path.join(build_dir, 'compiler.md'), 'wt') as f: f.write('\n'.join(readme[s] for s in ['How it works']))