@diplodoc/cli 5.25.1 → 5.25.2

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.
@@ -88,6 +88,19 @@ properties:
88
88
  type: boolean
89
89
  description: Sanitize transformed HTML output. Slow but more secure.
90
90
 
91
+ sanitizeOptions:
92
+ type: object
93
+ description: Sanitizer configuration options (passed to the HTML sanitizer).
94
+ additionalProperties: true
95
+
96
+ linkifyTlds:
97
+ oneOf:
98
+ - type: string
99
+ - type: array
100
+ items:
101
+ type: string
102
+ description: TLD configuration for the linkify plugin.
103
+
91
104
  ignore:
92
105
  type: array
93
106
  items:
@@ -114,6 +127,10 @@ properties:
114
127
  description: Write all documentation paths to file.json.
115
128
  deprecated: Use buildManifest instead.
116
129
 
130
+ addAlternateMeta:
131
+ type: boolean
132
+ description: Add alternate and canonical meta tags to pages.
133
+
117
134
  supportGithubAnchors:
118
135
  type: boolean
119
136
  description: Use GitHub-compatible heading anchor format.
@@ -392,12 +409,53 @@ properties:
392
409
  $ref: '#/definitions/NeuroExpertConfig'
393
410
  description: AI expert widget configuration.
394
411
 
412
+ # ── Bug widget ─────────────────────────────────────────────────────
413
+ yabug:
414
+ $ref: '#/definitions/YaBugConfig'
415
+ description: Bug report widget configuration (docs-viewer).
416
+
417
+ # ── Feedback widget ─────────────────────────────────────
418
+ yafeedback:
419
+ $ref: '#/definitions/YaFeedbackConfig'
420
+ description: Feedback widget configuration (docs-viewer).
421
+
395
422
  # ── Viewer preview ─────────────────────────────────────────────────
396
423
  docs-viewer:
424
+ $ref: '#/definitions/DocsViewerConfig'
425
+ description: Configuration for the docs-viewer preview server.
426
+
427
+ # ── Pages (error/access pages) ────────────────────────────────────
428
+ pages:
397
429
  type: object
398
- description: >
399
- Configuration for the docs-viewer preview server.
400
- Accepts viewer-specific options such as project-name, logo-options, etc.
430
+ properties:
431
+ accessDenied:
432
+ type: object
433
+ additionalProperties: true
434
+ notFound:
435
+ type: object
436
+ additionalProperties: true
437
+ serverError:
438
+ type: object
439
+ additionalProperties: true
440
+ additionalProperties: false
441
+ description: Custom error/access-denied page configuration.
442
+
443
+ # ── Query parameters (iframe forwarding) ─────────────────────────
444
+ queryParameters:
445
+ type: object
446
+ properties:
447
+ iframes:
448
+ type: array
449
+ items:
450
+ type: object
451
+ properties:
452
+ domain:
453
+ type: string
454
+ parameters:
455
+ type: array
456
+ additionalProperties: false
457
+ additionalProperties: false
458
+ description: Query parameter forwarding rules for embedded iframes.
401
459
 
402
460
  # ── Command scopes ─────────────────────────────────────────────────
403
461
  build:
@@ -568,7 +626,52 @@ definitions:
568
626
  type: boolean
569
627
  provider:
570
628
  type: string
571
- description: Search provider identifier (e.g. local, algolia).
629
+ enum: ['local', 'algolia']
630
+ description: Search provider identifier (local or algolia).
631
+ appId:
632
+ type: string
633
+ description: Algolia Application ID (provider=algolia).
634
+ apiKey:
635
+ type: string
636
+ sensitive: true
637
+ description: Algolia API Key for indexing (provider=algolia).
638
+ searchApiKey:
639
+ type: string
640
+ description: Client-side Algolia API key for search queries (provider=algolia).
641
+ indexName:
642
+ type: string
643
+ description: Algolia Index Name (provider=algolia).
644
+ index:
645
+ type: boolean
646
+ description: Whether to create and upload the search index (provider=algolia).
647
+ api:
648
+ type: string
649
+ description: Path to the client-side search API script (provider=algolia).
650
+ tolerance:
651
+ type: integer
652
+ minimum: 0
653
+ maximum: 2
654
+ description: >
655
+ Wildcard search tolerance level (provider=local).
656
+ 0 — exact match, 1 — trailing wildcard, 2 — leading and trailing.
657
+ confidence:
658
+ type: string
659
+ enum: ['phrased', 'sparsed']
660
+ description: Search scoring strategy (provider=local).
661
+ indexSettings:
662
+ type: object
663
+ description: >
664
+ Algolia index settings (provider=algolia).
665
+ Passed to Algolia setSettings. Supports searchableAttributes,
666
+ attributesToHighlight, etc.
667
+ additionalProperties: true
668
+ querySettings:
669
+ type: object
670
+ description: >
671
+ Algolia query settings (provider=algolia).
672
+ Merged into each search request. Supports hitsPerPage,
673
+ attributesToRetrieve, etc.
674
+ additionalProperties: true
572
675
  additionalProperties: true
573
676
 
574
677
  NeuroExpertConfig:
@@ -623,12 +726,256 @@ definitions:
623
726
  description: Glob patterns to exclude from upload.
624
727
  additionalProperties: false
625
728
 
729
+ YaBugConfig:
730
+ type: object
731
+ properties:
732
+ disabled:
733
+ type: boolean
734
+ description: Disable the bug report widget.
735
+ form:
736
+ type: string
737
+ description: Custom bug report form URL or path.
738
+ additionalProperties: false
739
+
740
+ YaFeedbackConfig:
741
+ type: object
742
+ properties:
743
+ ownerId:
744
+ oneOf:
745
+ - type: string
746
+ - type: object
747
+ description: >
748
+ Map of language codes to owner IDs.
749
+ Use "default" key for fallback.
750
+ additionalProperties:
751
+ type: string
752
+ description: Pythia feedback survey owner ID.
753
+ hideHeader:
754
+ type: boolean
755
+ description: Hide the feedback widget header.
756
+ disabled:
757
+ type: boolean
758
+ description: Disable the feedback widget.
759
+ testIds:
760
+ type: object
761
+ description: Test form IDs for A/B testing.
762
+ additionalProperties: true
763
+ additionalProperties: false
764
+
765
+ DocsViewerConfig:
766
+ type: object
767
+ properties:
768
+ project-name:
769
+ type: string
770
+ description: >
771
+ Project URL slug. Lowercase, alphanumeric, hyphens, underscores.
772
+ Max 63 chars. Reserved names: build, docs-assets, api.
773
+ no-index:
774
+ type: boolean
775
+ description: Disallow indexing by external search engines.
776
+ lang:
777
+ type: string
778
+ description: Default language for localization (e.g. "ru").
779
+ langs:
780
+ type: array
781
+ items:
782
+ type: string
783
+ description: Languages shown in the docs UI; first is default.
784
+ favicon-src:
785
+ type: string
786
+ description: Favicon URL for the browser tab.
787
+ logo-options:
788
+ $ref: '#/definitions/LogoOptions'
789
+ description: Logo configuration for the docs viewer.
790
+ metrika:
791
+ oneOf:
792
+ - type: integer
793
+ - type: array
794
+ items:
795
+ type: integer
796
+ description: Yandex Metrika counter ID(s).
797
+ themes:
798
+ type: array
799
+ items:
800
+ type: string
801
+ enum: ['light', 'dark']
802
+ description: Available themes. Server-only.
803
+ gtm:
804
+ type: object
805
+ properties:
806
+ id:
807
+ type: string
808
+ description: Google Tag Manager container ID.
809
+ mode:
810
+ type: string
811
+ enum: ['base', 'notification']
812
+ description: GTM consent mode (base or notification).
813
+ additionalProperties: false
814
+ description: Google Tag Manager settings for the viewer.
815
+ github-url-prefix:
816
+ type: string
817
+ description: Base URL for GitHub source links.
818
+ logo-link-preview:
819
+ type: string
820
+ description: Logo URL for link previews.
821
+ ytm:
822
+ type: object
823
+ properties:
824
+ id:
825
+ type: integer
826
+ description: Yandex Turbo Metrika counter ID.
827
+ additionalProperties: false
828
+ description: Yandex Turbo Metrika configuration.
829
+ pdf:
830
+ type: boolean
831
+ description: Enable PDF generation in docs-build action.
832
+ support-widget:
833
+ $ref: '#/definitions/SupportWidgetConfig'
834
+ description: Support chat widget (Yandex Messenger).
835
+ logo-src:
836
+ type: string
837
+ description: Legacy logo URL for light theme (prefer logo-options.src).
838
+ logo-dark-src:
839
+ type: string
840
+ description: Legacy logo URL for dark theme (prefer logo-options.src-dark).
841
+ logo-title:
842
+ type: string
843
+ description: Legacy logo title (prefer logo-options.title).
844
+ uxfb:
845
+ type: object
846
+ properties:
847
+ enabled:
848
+ type: boolean
849
+ id:
850
+ type: string
851
+ additionalProperties: true
852
+ description: UX feedback iframe (Yandex Forms).
853
+ embed:
854
+ type: array
855
+ items:
856
+ type: object
857
+ properties:
858
+ host:
859
+ type: string
860
+ description: Allowed embedding hosts (frame-ancestors).
861
+ index-page:
862
+ type: object
863
+ properties:
864
+ title:
865
+ type: string
866
+ description:
867
+ type: string
868
+ service-url:
869
+ type: string
870
+ hidden:
871
+ type: boolean
872
+ additionalProperties: true
873
+ description: Index page configuration.
874
+ show-toc-header:
875
+ type: boolean
876
+ description: Show the table-of-contents header.
877
+ search-by-toc:
878
+ type: boolean
879
+ description: Enable search by TOC product.
880
+ protected:
881
+ type: boolean
882
+ description: Enable access protection for the project.
883
+ subscription:
884
+ type: object
885
+ properties:
886
+ notifications:
887
+ type: object
888
+ properties:
889
+ type:
890
+ type: string
891
+ additionalProperties: false
892
+ additionalProperties: false
893
+ description: Subscription/notification settings.
894
+ startrek:
895
+ type: object
896
+ additionalProperties: true
897
+ description: Startrek integration settings (internal).
898
+ additionalProperties: true
899
+
900
+ LogoOptions:
901
+ type: object
902
+ properties:
903
+ src:
904
+ oneOf:
905
+ - type: string
906
+ - type: object
907
+ additionalProperties:
908
+ type: string
909
+ description: Logo image URL for light theme. Object form maps lang to URL.
910
+ src-dark:
911
+ oneOf:
912
+ - type: string
913
+ - type: object
914
+ additionalProperties:
915
+ type: string
916
+ description: Logo image URL for dark theme.
917
+ src-mobile:
918
+ oneOf:
919
+ - type: string
920
+ - type: object
921
+ additionalProperties:
922
+ type: string
923
+ description: Logo image URL for light theme on mobile.
924
+ src-mobile-dark:
925
+ oneOf:
926
+ - type: string
927
+ - type: object
928
+ additionalProperties:
929
+ type: string
930
+ description: Logo image URL for dark theme on mobile.
931
+ src-preview:
932
+ oneOf:
933
+ - type: string
934
+ - type: object
935
+ additionalProperties:
936
+ type: string
937
+ description: Logo for OpenGraph share preview.
938
+ url:
939
+ type: string
940
+ description: >
941
+ Link target when clicking the logo.
942
+ Supports {lang} placeholder.
943
+ title:
944
+ type: string
945
+ description: Fallback text when logo image is not set.
946
+ img-has:
947
+ type: object
948
+ properties:
949
+ width:
950
+ type: string
951
+ description: Logo width (CSS value).
952
+ offset:
953
+ type: boolean
954
+ description: Apply offset to logo layout.
955
+ additionalProperties: false
956
+ description: Logo layout hints.
957
+ additionalProperties: false
958
+
959
+ SupportWidgetConfig:
960
+ type: object
961
+ properties:
962
+ bot-guid:
963
+ type: string
964
+ description: Yandex Messenger bot GUID.
965
+ service-id:
966
+ type: string
967
+ description: Yandex Messenger support service ID.
968
+ disabled:
969
+ type: boolean
970
+ description: Disable the support widget.
971
+ additionalProperties: true
972
+
626
973
  TranslateConfig:
627
974
  type: object
628
975
  properties:
629
976
  provider:
630
977
  type: string
631
- description: Translation service provider identifier (e.g. yandex).
978
+ description: Translation service provider identifier.
632
979
  source:
633
980
  oneOf:
634
981
  - type: string