@writedocs/generator 0.7.4 → 0.8.1

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.
@@ -747,30 +747,51 @@
747
747
  "markdownDescription": "Default metadata for every page. A page's own `seo` frontmatter overrides it field by field."
748
748
  },
749
749
  "contextMenu": {
750
- "type": "object",
751
- "properties": {
752
- "openIn": {
753
- "default": [
754
- "chatgpt",
755
- "claude",
756
- "perplexity"
757
- ],
750
+ "anyOf": [
751
+ {
752
+ "type": "boolean"
753
+ },
754
+ {
758
755
  "type": "array",
759
756
  "items": {
760
757
  "type": "string",
761
758
  "enum": [
759
+ "copy",
760
+ "view",
762
761
  "chatgpt",
763
762
  "claude",
764
763
  "perplexity"
765
764
  ]
765
+ }
766
+ },
767
+ {
768
+ "type": "object",
769
+ "properties": {
770
+ "openIn": {
771
+ "type": "array",
772
+ "items": {
773
+ "type": "string",
774
+ "enum": [
775
+ "chatgpt",
776
+ "claude",
777
+ "perplexity"
778
+ ]
779
+ },
780
+ "description": "The earlier form: which AI assistants the menu offers, besides copy and view. A list of options replaces it.",
781
+ "markdownDescription": "The earlier form: which AI assistants the menu offers, besides copy and view. A list of options replaces it."
782
+ }
766
783
  },
767
- "description": "Which AI assistants the menu offers. Default: all three.",
768
- "markdownDescription": "Which AI assistants the menu offers. Default: all three."
784
+ "additionalProperties": false
769
785
  }
770
- },
771
- "additionalProperties": false,
772
- "description": "Adds a \"Copy page\" menu to pages - copy as Markdown, or open the page in an AI assistant - and a Markdown copy of each page at its address + \".md\".",
773
- "markdownDescription": "Adds a \"Copy page\" menu to pages - copy as Markdown, or open the page in an AI assistant - and a Markdown copy of each page at its address + \".md\"."
786
+ ],
787
+ "description": "The \"Copy page\" menu on every page - copy as Markdown, view as Markdown, open in ChatGPT, Claude or Perplexity - and a Markdown copy of each page at its address + \".md\". On by default with every option. A list picks the options (\"copy\", \"view\", \"chatgpt\", \"claude\", \"perplexity\"); false turns it all off.",
788
+ "markdownDescription": "The \"Copy page\" menu on every page - copy as Markdown, view as Markdown, open in ChatGPT, Claude or Perplexity - and a Markdown copy of each page at its address + \".md\". On by default with every option. A list picks the options (\"copy\", \"view\", \"chatgpt\", \"claude\", \"perplexity\"); false turns it all off."
789
+ },
790
+ "mcp": {
791
+ "default": true,
792
+ "type": "boolean",
793
+ "description": "An MCP server at /mcp, so AI tools can search and read the docs. The build adds its index and a Cloudflare-ready _worker.js to dist/. Default true; false leaves them out.",
794
+ "markdownDescription": "An MCP server at /mcp, so AI tools can search and read the docs. The build adds its index and a Cloudflare-ready _worker.js to dist/. Default true; false leaves them out."
774
795
  },
775
796
  "redirects": {
776
797
  "default": [],