@soubiran/content
v0.0.1
Published
CLI that submits complete Markdown snapshots to content.soubiran.dev.
Readme
@soubiran/content
Synchronize Markdown files with a content.soubiran.dev instance.
Quick start
Run this from your project directory:
npx @soubiran/content <instance> [content-root]For example, to send Markdown from src/app/pages to docs:
npx @soubiran/content docs src/app/pagesIf you omit content-root, the command uses src/app/pages.
Select files with a glob
Use --glob when your Markdown files are spread across the project:
npx @soubiran/content docs --glob '*/**/public/transcribe.md'The glob is evaluated from the directory where you run the command.
Exclude matching folders or paths with repeatable --exclude options. Excluded paths are omitted from the snapshot and removed from the target instance:
npx @soubiran/content docs --glob '*/**/public/transcribe.md' --exclude '2026-02-14/**'Preview the Markdown files that would be submitted without changing the target instance with --dry (or --dry-run):
npx @soubiran/content docs --glob '*/**/public/transcribe.md' --dryGitHub Actions
Add this workflow to synchronize content whenever changes reach main:
name: Synchronize content
on:
push:
branches: [main]
permissions:
contents: read
jobs:
synchronize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- run: npx --yes @soubiran/content docs src/app/pages
env:
CF_ACCESS_CLIENT_ID: ${{ secrets.CF_ACCESS_CLIENT_ID }}
CF_ACCESS_CLIENT_SECRET: ${{ secrets.CF_ACCESS_CLIENT_SECRET }}Replace docs and src/app/pages with your instance and Markdown directory.
