Pudu programming language
Menu
Package

@chrismichaelps / pudu-lang-docgen

Documentation publishing for Pudu: articles, API references, navigation, search, and static websites

0.1.0Apache-2.01

InstallClose

Codes.pudu

Pudu132 lines4.3 KB

GitHub ↗
1/** @Docgen.Constants.Codes — stable diagnostic codes reported by every phase */2module PuduLangDocgen.Constants.Codes34/// A code fence or math block runs to the end of its container.5export const UNCLOSED_BLOCK: Str = "DG101"67/// An included file is not part of the loaded files.8export const INCLUDE_MISSING: Str = "DG102"910/// Files include one another in a cycle.11export const INCLUDE_CYCLE: Str = "DG103"1213/// Content nests past the parser's depth bound and is kept as text.14export const NESTING_TOO_DEEP: Str = "DG104"1516/// A code excerpt names a file that is not loaded.17export const EXCERPT_MISSING: Str = "DG105"1819/// A code excerpt's region, range, or options cannot be applied.20export const EXCERPT_INVALID: Str = "DG106"2122/// A quote names an alert kind that is not configured.23export const UNKNOWN_ALERT: Str = "DG107"2425/// A container directive is unsupported or lacks a required attribute.26export const DIRECTIVE_INVALID: Str = "DG108"2728/// A YAML header is unclosed or not a mapping.29export const FRONT_MATTER_INVALID: Str = "DG109"3031/// A container directive has no matching end line.32export const DIRECTIVE_UNCLOSED: Str = "DG110"3334/// An include or excerpt path is absolute, encoded, or not portable.35export const PATH_INVALID: Str = "DG111"3637/// A link destination uses a scheme or form that is never linked.38export const UNSAFE_DESTINATION: Str = "DG121"3940/// A local destination leaves the project root.41export const DESTINATION_ESCAPES: Str = "DG122"4243/// A local link names a file that is not published.44export const LINK_BROKEN: Str = "DG123"4546/// A cross reference names an identity no page or map declares.47export const XREF_UNRESOLVED: Str = "DG124"4849/// A link names a section its target page does not have.50export const FRAGMENT_MISSING: Str = "DG127"5152/// An image names a file that is not published.53export const IMAGE_MISSING: Str = "DG125"5455/// An embedded video does not use HTTPS.56export const VIDEO_INSECURE: Str = "DG126"5758/// A table of contents is not valid YAML or JSON.59export const TOC_SYNTAX: Str = "DG201"6061/// A table of contents or one of its items has the wrong shape.62export const TOC_SHAPE: Str = "DG202"6364/// A Markdown table of contents heading has no title.65export const TOC_HEADING_EMPTY: Str = "DG203"6667/// A table of contents destination is unsafe.68export const TOC_UNSAFE: Str = "DG204"6970/// A table of contents nests past its depth bound.71export const TOC_TOO_DEEP: Str = "DG205"7273/// A table of contents item declares an unknown field.74export const TOC_UNKNOWN_FIELD: Str = "DG206"7576/// A table of contents item has neither a name nor a uid.77export const TOC_NAMELESS: Str = "DG207"7879/// A table of contents item names an unknown uid.80export const TOC_UID_UNKNOWN: Str = "DG210"8182/// A table of contents destination is not published.83export const TOC_TARGET_MISSING: Str = "DG211"8485/// Tables of contents include one another in a cycle or too deeply.86export const TOC_CYCLE: Str = "DG212"8788/// Two pages declare the same uid.89export const UID_DUPLICATE: Str = "DG301"9091/// A layout or partial template does not parse.92export const TEMPLATE_INVALID: Str = "DG401"9394/// A configuration value is missing, unknown, or of the wrong type.95export const CONFIG_INVALID: Str = "DG501"9697/// A configuration file cannot be read or decoded.98export const CONFIG_UNREADABLE: Str = "DG502"99100/// A content file listed by the configuration cannot be read.101export const CONTENT_UNREADABLE: Str = "DG601"102103/// A structured content file does not decode or describes an invalid interface.104export const CONTENT_INVALID: Str = "DG602"105106/// A content file has a type the build does not publish.107export const CONTENT_UNSUPPORTED: Str = "DG603"108109/// An overwrite section header is malformed or names no uid.110export const OVERWRITE_INVALID: Str = "DG701"111112/// An output path is not portable.113export const OUTPUT_INVALID: Str = "DG801"114115/// Two outputs share a path, or a file takes a folder's path.116export const OUTPUT_COLLISION: Str = "DG802"117118/// A configuration selects no content and no API sources.119export const NOTHING_TO_BUILD: Str = "DG901"120121/// A project file or folder cannot be read safely.122export const FILE_UNREADABLE: Str = "DG902"123124/// Output could not be written, or a publication path is unsafe.125export const PUBLISH_FAILED: Str = "DG903"126127/// A cross-reference map could not be fetched or read.128export const XREF_UNAVAILABLE: Str = "DG904"129130/// An external tool the command needs is missing or failed.131export const TOOL_FAILED: Str = "DG905"132