@writedocs/generator 0.10.14 → 0.10.15
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/astro.config.mjs +610 -572
- package/package.json +1 -1
- package/src/cli/generate-api-pages.js +418 -384
- package/src/cli/write-redirects-file.js +125 -116
- package/src/components/Image.astro +19 -3
- package/src/layout/BaseLayout.astro +877 -831
- package/src/layout/components/AnalyticsScripts.astro +45 -77
- package/src/layout/components/ConsentBanner.astro +118 -0
- package/src/layout/styles/base.css +8 -0
- package/src/lib/config-schema.js +97 -10
- package/src/lib/config-schema.ts +1882 -1768
- package/src/lib/consent.js +102 -0
- package/src/lib/image-size.js +130 -0
- package/src/lib/item-pages.js +63 -0
- package/src/lib/json-ld.js +127 -0
- package/src/lib/json-schema-descriptions.js +226 -212
- package/src/lib/last-modified.js +52 -0
- package/src/lib/link-check.js +506 -500
- package/src/lib/meta-description.js +41 -0
- package/src/lib/mintlify-convert.js +605 -603
- package/src/lib/moved-api-pages.js +54 -0
- package/src/lib/project-files-integration.js +61 -0
- package/src/lib/project-files.js +126 -0
- package/src/lib/rehype-image-loading.js +71 -0
- package/src/lib/robots-txt.js +16 -0
- package/src/lib/seo-tags.js +137 -0
- package/src/lib/styles-asset-integration.js +21 -3
- package/src/pages/[...slug].astro +19 -0
- package/src/scripts/consent.ts +62 -0
- package/writedocs.schema.json +100 -0
package/writedocs.schema.json
CHANGED
|
@@ -740,6 +740,56 @@
|
|
|
740
740
|
"type": "boolean",
|
|
741
741
|
"description": "Ask search engines not to index pages, and leave them out of sitemap.xml.",
|
|
742
742
|
"markdownDescription": "Ask search engines not to index pages, and leave them out of sitemap.xml."
|
|
743
|
+
},
|
|
744
|
+
"robots": {
|
|
745
|
+
"type": "string",
|
|
746
|
+
"description": "The whole <meta name=\"robots\"> value, like \"noindex, follow\". Replaces `noindex`; a value with \"noindex\" leaves pages out of sitemap.xml too.",
|
|
747
|
+
"markdownDescription": "The whole <meta name=\"robots\"> value, like \"noindex, follow\". Replaces `noindex`; a value with \"noindex\" leaves pages out of sitemap.xml too."
|
|
748
|
+
},
|
|
749
|
+
"metatags": {
|
|
750
|
+
"type": "object",
|
|
751
|
+
"propertyNames": {
|
|
752
|
+
"type": "string"
|
|
753
|
+
},
|
|
754
|
+
"additionalProperties": {
|
|
755
|
+
"type": "string"
|
|
756
|
+
},
|
|
757
|
+
"description": "Other <meta> tags, name to content - like { \"google-site-verification\": \"...\" }. One with the name of a tag writedocs writes (\"og:image\", \"twitter:image\") replaces it.",
|
|
758
|
+
"markdownDescription": "Other <meta> tags, name to content - like { \"google-site-verification\": \"...\" }. One with the name of a tag writedocs writes (\"og:image\", \"twitter:image\") replaces it."
|
|
759
|
+
},
|
|
760
|
+
"organization": {
|
|
761
|
+
"type": "object",
|
|
762
|
+
"properties": {
|
|
763
|
+
"name": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"description": "The organization's name, like \"Acme\".",
|
|
766
|
+
"markdownDescription": "The organization's name, like \"Acme\"."
|
|
767
|
+
},
|
|
768
|
+
"url": {
|
|
769
|
+
"type": "string",
|
|
770
|
+
"description": "The organization's own site. Default: this site's address.",
|
|
771
|
+
"markdownDescription": "The organization's own site. Default: this site's address."
|
|
772
|
+
},
|
|
773
|
+
"logo": {
|
|
774
|
+
"type": "string",
|
|
775
|
+
"description": "Its logo - a path or a full URL. Default: the site's logo.",
|
|
776
|
+
"markdownDescription": "Its logo - a path or a full URL. Default: the site's logo."
|
|
777
|
+
},
|
|
778
|
+
"sameAs": {
|
|
779
|
+
"type": "array",
|
|
780
|
+
"items": {
|
|
781
|
+
"type": "string"
|
|
782
|
+
},
|
|
783
|
+
"description": "Its profiles on other sites. Default: the URLs in `socials`.",
|
|
784
|
+
"markdownDescription": "Its profiles on other sites. Default: the URLs in `socials`."
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"required": [
|
|
788
|
+
"name"
|
|
789
|
+
],
|
|
790
|
+
"additionalProperties": false,
|
|
791
|
+
"description": "Who publishes the site, for search engines: an Organization in the home page's structured data, and the publisher of every page.",
|
|
792
|
+
"markdownDescription": "Who publishes the site, for search engines: an Organization in the home page's structured data, and the publisher of every page."
|
|
743
793
|
}
|
|
744
794
|
},
|
|
745
795
|
"additionalProperties": false,
|
|
@@ -908,6 +958,11 @@
|
|
|
908
958
|
"type": "string",
|
|
909
959
|
"description": "The script's code, inline. Use either `src` or `content`, not both.",
|
|
910
960
|
"markdownDescription": "The script's code, inline. Use either `src` or `content`, not both."
|
|
961
|
+
},
|
|
962
|
+
"consent": {
|
|
963
|
+
"type": "boolean",
|
|
964
|
+
"description": "With `integrations.consent` on, load this script only once the reader accepts.",
|
|
965
|
+
"markdownDescription": "With `integrations.consent` on, load this script only once the reader accepts."
|
|
911
966
|
}
|
|
912
967
|
},
|
|
913
968
|
"additionalProperties": false
|
|
@@ -930,6 +985,11 @@
|
|
|
930
985
|
"type": "string",
|
|
931
986
|
"description": "The script's code, inline. Use either `src` or `content`, not both.",
|
|
932
987
|
"markdownDescription": "The script's code, inline. Use either `src` or `content`, not both."
|
|
988
|
+
},
|
|
989
|
+
"consent": {
|
|
990
|
+
"type": "boolean",
|
|
991
|
+
"description": "With `integrations.consent` on, load this script only once the reader accepts.",
|
|
992
|
+
"markdownDescription": "With `integrations.consent` on, load this script only once the reader accepts."
|
|
933
993
|
}
|
|
934
994
|
},
|
|
935
995
|
"additionalProperties": false
|
|
@@ -1075,6 +1135,46 @@
|
|
|
1075
1135
|
"additionalProperties": false,
|
|
1076
1136
|
"description": "AI chat over the docs, with DocsBot.",
|
|
1077
1137
|
"markdownDescription": "AI chat over the docs, with DocsBot."
|
|
1138
|
+
},
|
|
1139
|
+
"consent": {
|
|
1140
|
+
"anyOf": [
|
|
1141
|
+
{
|
|
1142
|
+
"type": "boolean"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"type": "object",
|
|
1146
|
+
"properties": {
|
|
1147
|
+
"message": {
|
|
1148
|
+
"type": "string",
|
|
1149
|
+
"description": "The banner's text.",
|
|
1150
|
+
"markdownDescription": "The banner's text."
|
|
1151
|
+
},
|
|
1152
|
+
"acceptLabel": {
|
|
1153
|
+
"type": "string",
|
|
1154
|
+
"description": "The accept button's text. Default \"Accept\".",
|
|
1155
|
+
"markdownDescription": "The accept button's text. Default \"Accept\"."
|
|
1156
|
+
},
|
|
1157
|
+
"declineLabel": {
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"description": "The decline button's text. Default \"Decline\".",
|
|
1160
|
+
"markdownDescription": "The decline button's text. Default \"Decline\"."
|
|
1161
|
+
},
|
|
1162
|
+
"policyUrl": {
|
|
1163
|
+
"type": "string",
|
|
1164
|
+
"description": "A link after the text, to your privacy or cookie policy.",
|
|
1165
|
+
"markdownDescription": "A link after the text, to your privacy or cookie policy."
|
|
1166
|
+
},
|
|
1167
|
+
"policyLabel": {
|
|
1168
|
+
"type": "string",
|
|
1169
|
+
"description": "That link's text. Default \"Privacy policy\".",
|
|
1170
|
+
"markdownDescription": "That link's text. Default \"Privacy policy\"."
|
|
1171
|
+
}
|
|
1172
|
+
},
|
|
1173
|
+
"additionalProperties": false
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
"description": "A consent banner: the analytics integrations load only once the reader accepts. true uses the default texts; an object changes them.",
|
|
1177
|
+
"markdownDescription": "A consent banner: the analytics integrations load only once the reader accepts. true uses the default texts; an object changes them."
|
|
1078
1178
|
}
|
|
1079
1179
|
},
|
|
1080
1180
|
"additionalProperties": false,
|