Skip to content

Placeholder article — This page was written to exercise the documentation machinery. It is not finished documentation and nothing in it should be relied on.

Code highlighting

One fence per preloaded Shiki grammar — a fixture, not a reference page.

This page is a fixture. It carries exactly one fence per language listed in shiki-languages.json, and scripts/check-generated-docs.mjs asserts that each one came out of the build with colour spans in it.

That assertion is the point. A grammar Shiki has not preloaded does not fail the build, does not warn, and does not throw: the fence renders as plain, unstyled text. Nothing but an assertion over the generated HTML catches it.

TypeScript

export interface Session {
  readonly id: string
  expiresAt: Date
}

TSX

export default function Callback() {
  return <p>Signing you in…</p>
}

JavaScript

export const issuer = new URL('https://id.example.com')

Python

from datetime import datetime


def expired(session: dict) -> bool:
    return session["expires_at"] < datetime.now()

JSON

{
  "issuer": "https://id.example.com",
  "scopes_supported": ["openid", "profile"]
}

Bash

export KLEORA_ISSUER="https://id.example.com"

Shell

curl -fsS "$KLEORA_ISSUER/.well-known/openid-configuration"

HTML

<a href="/en/docs">Documentation</a>

Vue

<script setup lang="ts">
const { data } = await useFetch('/api/session')
</script>

<template>
  <p>{{ data?.id }}</p>
</template>

YAML

issuer: https://id.example.com
scopes:
  - openid
  - profile