Welcome to the simulation-systems project! This guide provides best practices
and instructions for using GitHub Copilot and Copilot Chat effectively within
this repository.
- Use Copilot for:
- Writing and editing documentation (reStructuredText
.rstfiles) - Generating code snippets or templates for documentation
- Refactoring or improving documentation structure
- Answering questions about Sphinx, reStructuredText, and documentation workflows
- Writing and editing documentation (reStructuredText
- Do NOT use Copilot for:
- Generating legal, licensing, or policy documents without review
- Adding or modifying files outside the documentation scope unless explicitly requested
- Committing changes directly to
mainwithout review
- All documentation is located in the
source/directory. - Use
.rst(reStructuredText) format for all documentation files. - Custom templates and static assets are in
source/_templates/andsource/_static/. - Follow the style and structure of existing documentation when adding new content.
- When creating new documentation, use clear section headings and follow the Sphinx/reStructuredText conventions.
- For technical documentation, include code blocks, examples, and cross-references where appropriate.
- Use Copilot Chat to:
- Generate outlines for new documentation
- Suggest improvements to existing docs
- Answer questions about Sphinx directives and configuration
- Review the
CONTRIBUTING.mdandsource/FurtherDetails/code_of_conduct.rstbefore making contributions. - All contributions should be made via pull requests and reviewed by a project maintainer.
- Be specific in your prompts (e.g., "Add a section on running tests in
source/Development/testing.rst"). - Request code or documentation examples as needed.
- Ask for explanations of Sphinx or reStructuredText features if unsure.
- Follow the existing documentation style and formatting.
- Use consistent terminology and phrasing throughout the documentation.
- Follow PEP 8 guidelines for any Python code snippets included in the documentation.
- Use
rufffor linting any Python code snippets. - Use
sphinx-lintfor checking reStructuredText documentation quality. - Use
doc8for spell checking and line lengths in documentation files. - Ensure proper formatting of reStructuredText files.
- Copilot suggestions are not always correct-review and edit as needed.
- Do not use Copilot to generate sensitive, proprietary, or confidential information.
- For questions about Copilot usage, ask in Copilot Chat or consult the GitHub Copilot documentation.
- For project-specific questions, refer to the
README.mdor open an issue.
This file provides guidance for using GitHub Copilot in the
simulation-systems project. Please keep it up to date as project practices
evolve.