@seqera/docusaurus-preset-seqera 1.0.6 → 1.0.7

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/lib/index.js CHANGED
@@ -149,10 +149,6 @@ function getSeqeraThemeConfig(overrides = {}) {
149
149
  label: 'Fusion',
150
150
  to: '/fusion',
151
151
  },
152
- {
153
- label: 'Platform API',
154
- to: '/platform-api',
155
- },
156
152
  ],
157
153
  },
158
154
  footer: {
@@ -335,8 +331,13 @@ function createSeqeraConfig(overrides = {}) {
335
331
  experimental_faster: true,
336
332
  v4: true,
337
333
  },
338
- onBrokenLinks: 'warn',
339
- onBrokenMarkdownLinks: 'warn',
334
+ onBrokenLinks: process.env.FAIL_ON_BROKEN_LINKS === 'true' ? 'throw' : 'warn',
335
+ onBrokenAnchors: process.env.FAIL_ON_BROKEN_LINKS === 'true' ? 'throw' : 'warn',
336
+ markdown: {
337
+ hooks: {
338
+ onBrokenMarkdownLinks: process.env.FAIL_ON_BROKEN_LINKS === 'true' ? 'throw' : 'warn',
339
+ },
340
+ },
340
341
  i18n: {
341
342
  defaultLocale: 'en',
342
343
  locales: ['en'],
@@ -356,6 +357,19 @@ function createSeqeraConfig(overrides = {}) {
356
357
  ...overrides.i18n,
357
358
  },
358
359
  };
360
+ // Merge markdown configuration
361
+ if (overrides.markdown || baseConfig.markdown) {
362
+ merged.markdown = {
363
+ ...baseConfig.markdown,
364
+ ...overrides.markdown,
365
+ };
366
+ if (overrides.markdown?.hooks || baseConfig.markdown?.hooks) {
367
+ merged.markdown.hooks = {
368
+ ...baseConfig.markdown?.hooks,
369
+ ...overrides.markdown?.hooks,
370
+ };
371
+ }
372
+ }
359
373
  // Merge static directories
360
374
  if (overrides.staticDirectories) {
361
375
  merged.staticDirectories = [
@@ -379,6 +393,7 @@ async function getSeqeraPresetOptions(overrides = {}) {
379
393
  routeBasePath: '/changelog',
380
394
  include: ['**/*.{md,mdx}'],
381
395
  showReadingTime: false,
396
+ onUntruncatedBlogPosts: 'ignore',
382
397
  feedOptions: {
383
398
  type: 'all',
384
399
  title: 'Seqera Changelog',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seqera/docusaurus-preset-seqera",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Docusaurus preset for Seqera docs",
5
5
  "author": "Seqera docs team <education@seqera.io>",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  "@docusaurus/theme-common": "3.9.2",
31
31
  "@docusaurus/theme-search-algolia": "3.9.2",
32
32
  "@docusaurus/types": "3.9.2",
33
- "@seqera/docusaurus-theme-seqera": "1.0.6",
33
+ "@seqera/docusaurus-theme-seqera": "1.0.7",
34
34
  "@tailwindcss/oxide": "^4.1.17",
35
35
  "docusaurus-plugin-openapi-docs": "^4.5.1",
36
36
  "docusaurus-remark-plugin-tab-blocks": "^3.1.0",
package/src/index.ts CHANGED
@@ -200,10 +200,6 @@ export function getSeqeraThemeConfig(
200
200
  label: 'Fusion',
201
201
  to: '/fusion',
202
202
  },
203
- {
204
- label: 'Platform API',
205
- to: '/platform-api',
206
- },
207
203
  ],
208
204
  },
209
205
  footer: {
@@ -394,8 +390,17 @@ export function createSeqeraConfig(overrides: Partial<any> = {}): any {
394
390
  v4: true,
395
391
  },
396
392
 
397
- onBrokenLinks: 'warn',
398
- onBrokenMarkdownLinks: 'warn',
393
+ onBrokenLinks:
394
+ process.env.FAIL_ON_BROKEN_LINKS === 'true' ? 'throw' : 'warn',
395
+ onBrokenAnchors:
396
+ process.env.FAIL_ON_BROKEN_LINKS === 'true' ? 'throw' : 'warn',
397
+
398
+ markdown: {
399
+ hooks: {
400
+ onBrokenMarkdownLinks:
401
+ process.env.FAIL_ON_BROKEN_LINKS === 'true' ? 'throw' : 'warn',
402
+ },
403
+ },
399
404
 
400
405
  i18n: {
401
406
  defaultLocale: 'en',
@@ -419,6 +424,20 @@ export function createSeqeraConfig(overrides: Partial<any> = {}): any {
419
424
  },
420
425
  };
421
426
 
427
+ // Merge markdown configuration
428
+ if (overrides.markdown || baseConfig.markdown) {
429
+ merged.markdown = {
430
+ ...baseConfig.markdown,
431
+ ...overrides.markdown,
432
+ };
433
+ if (overrides.markdown?.hooks || baseConfig.markdown?.hooks) {
434
+ merged.markdown.hooks = {
435
+ ...baseConfig.markdown?.hooks,
436
+ ...overrides.markdown?.hooks,
437
+ };
438
+ }
439
+ }
440
+
422
441
  // Merge static directories
423
442
  if (overrides.staticDirectories) {
424
443
  merged.staticDirectories = [
@@ -446,6 +465,7 @@ export async function getSeqeraPresetOptions(
446
465
  routeBasePath: '/changelog',
447
466
  include: ['**/*.{md,mdx}'],
448
467
  showReadingTime: false,
468
+ onUntruncatedBlogPosts: 'ignore',
449
469
  feedOptions: {
450
470
  type: 'all',
451
471
  title: 'Seqera Changelog',