ontoref/assets/presentation/.tmp-check-slidev-count.mjs
Jesús Pérez d59644b96f
feat: unified auth model, project onboarding, install pipeline, config management
The full scope across this batch: POST /sessions key→token exchange, SessionStore dual-index with revoke_by_id, CLI Bearer injection (ONTOREF_TOKEN), ontoref setup
  --gen-keys, install scripts, daemon config form roundtrip, ADR-004/005, on+re self-description update (fully-self-described), and landing page refresh.
2026-03-13 20:56:31 +00:00

12 lines
529 B
JavaScript

import { resolve } from 'node:path'
import { parser } from '@slidev/cli'
const data = await parser.load(resolve('.'), resolve('slides.md'))
console.log('slides:', data.slides.length)
for (let i = 0; i < data.slides.length; i++) {
const s = data.slides[i]
const first = (s.content || '').split(/\r?\n/).find(l => l.trim() && !l.trim().startsWith('<!--')) || '[no text]'
const name = s.frontmatter?.name ? ` name=${s.frontmatter.name}` : ''
console.log(`${String(i + 1).padStart(2, '0')}\t${first.slice(0, 80)}${name}`)
}