@writedocs/generator 0.7.2 → 0.7.4

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.
Files changed (39) hide show
  1. package/astro.config.mjs +10 -4
  2. package/bin/writedocs.js +28 -7
  3. package/package.json +1 -1
  4. package/src/cli/build-auth.js +16 -9
  5. package/src/cli/build.js +3 -1
  6. package/src/cli/convert.js +6 -2
  7. package/src/cli/dev.js +3 -1
  8. package/src/cli/generate-api-pages.js +2 -2
  9. package/src/cli/init.js +3 -1
  10. package/src/cli/output.js +8 -1
  11. package/src/cli/preflight.js +63 -1
  12. package/src/cli/update.js +6 -1
  13. package/src/cli/write-redirects-file.js +2 -1
  14. package/src/components/ApiReferencePanel.astro +46 -12
  15. package/src/components/Steps.astro +2 -2
  16. package/src/layout/BaseLayout.astro +21 -6
  17. package/src/layout/styles/banner.css +1 -1
  18. package/src/lib/a11y-check.js +19 -42
  19. package/src/lib/agent-markdown.js +137 -0
  20. package/src/lib/asset-path.js +29 -0
  21. package/src/lib/color.js +49 -0
  22. package/src/lib/config-file.js +25 -0
  23. package/src/lib/config-schema.js +15 -12
  24. package/src/lib/config-schema.ts +20 -12
  25. package/src/lib/config.ts +18 -135
  26. package/src/lib/json-schema-descriptions.js +1 -1
  27. package/src/lib/llms-index.ts +88 -0
  28. package/src/lib/llms.js +200 -0
  29. package/src/lib/mintlify-convert.js +2 -1
  30. package/src/lib/pages.js +137 -11
  31. package/src/lib/styles-asset-integration.js +1 -18
  32. package/src/lib/writedocs-legacy-convert.js +2 -1
  33. package/src/pages/[...slug].astro +11 -1
  34. package/src/pages/[...slug].md.ts +15 -6
  35. package/src/pages/llms/[...path].md.ts +23 -0
  36. package/src/pages/llms-full.txt.ts +30 -9
  37. package/src/pages/llms.txt.ts +21 -125
  38. package/src/scripts/search.ts +39 -14
  39. package/writedocs.schema.json +2 -2
@@ -692,8 +692,8 @@
692
692
  "proxy": {
693
693
  "default": true,
694
694
  "type": "boolean",
695
- "description": "Send \"Try it\" requests through writedocs' proxy, for APIs that don't allow calls from other sites (CORS). Default true.",
696
- "markdownDescription": "Send \"Try it\" requests through writedocs' proxy, for APIs that don't allow calls from other sites (CORS). Default true."
695
+ "description": "When the browser blocks a \"Try it\" request (the API doesn't allow calls from other sites - CORS), retry it through writedocs' proxy. Requests always go to the API directly first. Default true.",
696
+ "markdownDescription": "When the browser blocks a \"Try it\" request (the API doesn't allow calls from other sites - CORS), retry it through writedocs' proxy. Requests always go to the API directly first. Default true."
697
697
  }
698
698
  },
699
699
  "additionalProperties": false,