// Facade package.
//
// `justjavac/fus` re-exports the public API of every subpackage so embedders can
// import one package, while the implementation stays split by concern:
//
//   core      Json values, text, paths, filesystem helpers
//   formats   data formats (YAML/JSON/TOML/INI) and front matter
//   highlight fenced code blocks to hl-* spans
//   markdown  Markdown to HTML
//   i18n      translated strings for multi-language sites
//   engine    template engines (Jinja, Liquid) and site filters
//   content   page formats (Markdown, HTML) and the body pipeline
//   config    configuration loading
//   theme     the theme compiled into the binary
//   build     the build pipeline, collections, pagination, cache, plugins
//   check     read-only validation

///|
/// Value helpers, text/path utilities and filesystem helpers.
pub using @core {
  version,
  jstr,
  jbool,
  jnum,
  jobj,
  jarr,
  get,
  get_path,
  set,
  merge,
  as_str,
  as_int,
  as_bool,
  as_array,
  keys,
  display,
  truthy,
  scalar,
  split_top_level,
  split_once,
  has_prefix,
  has_suffix,
  trim,
  slice,
  rfind,
  has_any,
  to_int,
  parse_int,
  parse_double,
  char_at,
  trim_quotes,
  lines,
  join_path,
  normalize_slashes,
  dirname,
  basename,
  extname,
  strip_ext,
  to_url,
  strip_trailing_slash,
  html_escape,
  attr_escape,
  slugify,
  hash,
  format_date,
  ensure_dir,
  write_if_changed,
  read_text_or,
  collect_files,
}

///|
/// Data formats and front matter.
pub using @formats {
  type FormatRegistry,
  parse_format,
  parse_yaml,
  parse_json,
  parse_toml,
  parse_ini,
  format_of_path,
  split_front_matter,
  split_front_matter_with,
  has_unclosed_front_matter,
}

///|
/// Markdown rendering.
pub using @markdown {render_markdown}

///|
/// Translations for multi-language sites.
pub using @i18n {catalog, prefix_for, display_name}

///|
/// Syntax highlighting for fenced code blocks.
pub using @highlight {highlight_code, highlight_html}

///|
/// Template engines.
pub using @engine {
  type EngineKind,
  type TemplateEngine,
  type TemplateEnv,
  engine_kind,
  render_source,
  render_source_of,
  render_template,
  render_layout,
  safe_html,
}

///|
/// Page formats and the body pipeline.
pub using @content {type ContentFormat, type ContentRegistry, render_body}

///|
/// Site configuration.
pub using @config {
  type Config,
  load_config,
  load_config_with,
  resolve_config_path,
}

///|
/// The build pipeline.
pub using @build {
  type Page,
  type BuildOptions,
  type BuildResult,
  make_options,
  default_options,
  build_site,
  build_site_with,
  is_page_file,
  is_excluded,
  split_language,
  resolve_permalink,
  url_to_dest,
  build_collections,
  make_pagination,
  set_path,
  set_str,
  str_field,
  bool_field,
  list_field,
  minify_html,
  type ThemeSource,
  resolve_theme,
  theme_path,
  theme_signature,
  builtin_layout,
  builtin_assets,
  render_builtin,
  theme_slot,
  page_shell,
  type PageShell,
  is_document,
}

///|
/// Read-only validation.
pub using @check {
  type IssueLevel,
  type CheckIssue,
  type CheckReport,
  check_site,
  check_site_with,
}

///|
/// The command table behind the executable.
pub using @cli {
  type CleanScope,
  type Command,
  type Outcome,
  parse_command,
  parse_options,
  dispatch,
  help,
  init_site,
  build_command,
  check_command,
  clean_site,
  print_version,
}