{"version":3,"sources":["../../src/sections/contributing.ts"],"sourcesContent":["import { ContentSection } from './content-section.js';\nimport { DocumentSectionOptions } from './section.js';\nimport type { Optional } from '../@types/optional.js';\n\nexport interface ContributingOptions\n  extends Optional<DocumentSectionOptions, 'title'> {\n  content?: string | Array<string>;\n}\n\nexport class Contributing extends ContentSection {\n  constructor(options?: ContributingOptions) {\n    const content = [\n      'Contributions are always welcome!',\n      'See `contributing.md` for ways to get started.',\n      \"Please adhere to this project's `code of conduct`.\",\n    ];\n\n    if (options?.content) {\n      if (Array.isArray(options.content)) {\n        content.push(...options.content);\n      } else {\n        content.push(options.content);\n      }\n    }\n\n    super({\n      title: options?.title ?? 'Contributing',\n      ...options,\n      content: content.join('\\n\\n'),\n    });\n  }\n}\n\nexport function contributingSection(options?: ContributingOptions) {\n  return new Contributing(options);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAA+B;AASxB,MAAM,qBAAqB,sCAAe;AAAA,EAC/C,YAAY,SAA+B;AACzC,UAAM,UAAU;AAAA,MACd;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAEA,QAAI,SAAS,SAAS;AACpB,UAAI,MAAM,QAAQ,QAAQ,OAAO,GAAG;AAClC,gBAAQ,KAAK,GAAG,QAAQ,OAAO;AAAA,MACjC,OAAO;AACL,gBAAQ,KAAK,QAAQ,OAAO;AAAA,MAC9B;AAAA,IACF;AAEA,UAAM;AAAA,MACJ,OAAO,SAAS,SAAS;AAAA,MACzB,GAAG;AAAA,MACH,SAAS,QAAQ,KAAK,MAAM;AAAA,IAC9B,CAAC;AAAA,EACH;AACF;AAEO,SAAS,oBAAoB,SAA+B;AACjE,SAAO,IAAI,aAAa,OAAO;AACjC;","names":[]}