# Docusaurus: AI-friendly with conditions

> Docusaurus welcomes AI tools for authoring pull requests, but contributors must disclose significant AI-generated code, take responsibility for every line, and seek prior approval for significant changes. Low-effort, entirely AI-generated PRs are discouraged and may be closed.

- What it is: Static site generator for documentation websites. (Developer tool)
- Homepage: https://docusaurus.io/
- Repository: https://github.com/facebook/docusaurus
- Overall stance: AI-friendly with conditions (Mostly friendly). AI-assisted contributions are accepted with extra rules, such as disclosing AI use or using AI only for some kinds of work, or AI is banned for issues or written text.
- Last classified: 2026-11-09 (AI, high confidence)
- Policy last changed: 2026-10-25
- Web page: https://areweaifriendly.com/projects/docusaurus/

## Policy by area

- **Code contributions**: AI-friendly with conditions (AI use must be disclosed; Contributor takes full responsibility)
- **Issues & bug reports**: No AI policy
- **AI-written text**: No AI policy

## What is allowed and what is not

### Code contributions

- **Autocomplete**: Allowed with conditions. AI tools for authoring PRs are welcome, including inline completion, but contributors must disclose significant AI-generated portions and remain accountable for every line. Conditions: Disclose AI use: Indicate in the PR description when a significant portion of the code is AI-generated; Take full responsibility: You are responsible for the code, can explain every line, ensure tests pass, and address reviews.
  > "We welcome the use of AI tools for authoring PRs, and we love to see people pushing the boundaries of AI capabilities." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be transparent**: If a significant portion of your code is AI generated, please indicate that in your PR description." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be accountable**: You are responsible for the code you submit, regardless of whether it was generated by AI or written by you. You should be able to explain every line of the code, ensure all tests pass, and address our reviews." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
- **Small fixes**: Allowed with conditions. Small AI-written changes are welcome under the same transparency and accountability etiquette. Conditions: Disclose AI use: Indicate in the PR description when a significant portion of the code is AI-generated; Take full responsibility: You are responsible for the code, can explain every line, ensure tests pass, and address reviews.
  > "We welcome the use of AI tools for authoring PRs, and we love to see people pushing the boundaries of AI capabilities." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be transparent**: If a significant portion of your code is AI generated, please indicate that in your PR description." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be accountable**: You are responsible for the code you submit, regardless of whether it was generated by AI or written by you. You should be able to explain every line of the code, ensure all tests pass, and address our reviews." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
- **Large or generated changes**: Allowed with conditions. Substantial AI-generated PRs are allowed only with prior communication and approval in an issue; unsolicited 1k LOC AI-generated PRs are criticized. Conditions: Disclose AI use: Indicate in the PR description when a significant portion of the code is AI-generated; Take full responsibility: You are responsible for the code, can explain every line, ensure tests pass, and address reviews; Ask maintainers first: Significant changes require prior communication and approval from the team in an issue.
  > "We welcome the use of AI tools for authoring PRs, and we love to see people pushing the boundaries of AI capabilities." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be transparent**: If a significant portion of your code is AI generated, please indicate that in your PR description." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be accountable**: You are responsible for the code you submit, regardless of whether it was generated by AI or written by you. You should be able to explain every line of the code, ensure all tests pass, and address our reviews." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be reasonable**: Sometimes we receive 1k LOC PRs that are obviously AI-generated and implement unsolicited features. Please note that significant changes require prior communication and approval from the team in the form of an issue." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
- **Mechanical changes**: Allowed with conditions. AI-assisted repetitive edits are welcome, provided contributors disclose significant AI-generated portions and can explain every line. Conditions: Disclose AI use: Indicate in the PR description when a significant portion of the code is AI-generated; Take full responsibility: You are responsible for the code, can explain every line, ensure tests pass, and address reviews.
  > "We welcome the use of AI tools for authoring PRs, and we love to see people pushing the boundaries of AI capabilities." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be transparent**: If a significant portion of your code is AI generated, please indicate that in your PR description." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be accountable**: You are responsible for the code you submit, regardless of whether it was generated by AI or written by you. You should be able to explain every line of the code, ensure all tests pass, and address our reviews." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
- **Tests**: Allowed with conditions. AI-written tests and benchmarks are welcome under the disclosure and accountability etiquette. Conditions: Disclose AI use: Indicate in the PR description when a significant portion of the code is AI-generated; Take full responsibility: You are responsible for the code, can explain every line, ensure tests pass, and address reviews.
  > "We welcome the use of AI tools for authoring PRs, and we love to see people pushing the boundaries of AI capabilities." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be transparent**: If a significant portion of your code is AI generated, please indicate that in your PR description." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be accountable**: You are responsible for the code you submit, regardless of whether it was generated by AI or written by you. You should be able to explain every line of the code, ensure all tests pass, and address our reviews." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
- **Build and CI**: Allowed with conditions. AI-written build, CI or packaging code is welcome under the disclosure and accountability etiquette. Conditions: Disclose AI use: Indicate in the PR description when a significant portion of the code is AI-generated; Take full responsibility: You are responsible for the code, can explain every line, ensure tests pass, and address reviews.
  > "We welcome the use of AI tools for authoring PRs, and we love to see people pushing the boundaries of AI capabilities." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be transparent**: If a significant portion of your code is AI generated, please indicate that in your PR description." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "- **Be accountable**: You are responsible for the code you submit, regardless of whether it was generated by AI or written by you. You should be able to explain every line of the code, ensure all tests pass, and address our reviews." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
- **Other**: Discouraged. Entirely AI-generated PRs submitted as low-effort contribution farming are discouraged, and maintainers may close PRs they deem unproductive or low-effort.
  > "However, we are aware that **many people are sending entirely AI-generated PRs as a low-effort way to farm OSS contributions**, so please be mindful of the following etiquette to show your respect for our time and our codebase:" (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)
  > "We retain the right to close any PR that we deem as unproductive or low-effort, even when we agree with the spirit of the change." (https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md)

### Issues & bug reports

Not covered by the policy.

### AI-written text

Not covered by the policy.

## Sources

- [Contributing to Docusaurus](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md), fetched 2026-11-09
