@forsakringskassan/docs-generator 2.15.2 → 2.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -181,6 +181,7 @@ declare class Generator_2 {
181
181
  private styles;
182
182
  private resources;
183
183
  private sourceFiles;
184
+ private markdownOptions;
184
185
  constructor(options: GeneratorOptions);
185
186
  compileScript(name: string, src: string | URL, options?: Partial<CompileOptions>, buildOptions?: {
186
187
  define?: Record<string, string>;
package/dist/index.js CHANGED
@@ -2492,6 +2492,7 @@ class Generator {
2492
2492
  styles;
2493
2493
  resources;
2494
2494
  sourceFiles;
2495
+ markdownOptions;
2495
2496
  constructor(options) {
2496
2497
  if (typeof options.site === "undefined") {
2497
2498
  throw new Error("site metadata not set in configuration");
@@ -2509,6 +2510,7 @@ class Generator {
2509
2510
  this.styles = [];
2510
2511
  this.resources = [];
2511
2512
  this.sourceFiles = [];
2513
+ this.markdownOptions = options.markdown;
2512
2514
  const bootstrapUrl = new URL("runtime-bootstrap.js", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.js', document.baseURI).href)));
2513
2515
  this.compileScript("bootstrap", bootstrapUrl, {
2514
2516
  appendTo: "head",
@@ -2584,7 +2586,8 @@ class Generator {
2584
2586
  assetFolder,
2585
2587
  exampleFolders,
2586
2588
  templateFolders,
2587
- setupPath
2589
+ setupPath,
2590
+ markdownOptions
2588
2591
  } = this;
2589
2592
  await this._prepareFolders();
2590
2593
  const processors = [
@@ -2605,7 +2608,7 @@ class Generator {
2605
2608
  exampleFolders,
2606
2609
  templateFolders,
2607
2610
  setupPath,
2608
- markdown: {}
2611
+ markdown: markdownOptions ?? {}
2609
2612
  }),
2610
2613
  ...this.processors
2611
2614
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/docs-generator",
3
- "version": "2.15.2",
3
+ "version": "2.15.3",
4
4
  "description": "Documentation generator",
5
5
  "keywords": [
6
6
  "documentation"