Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 8, 2025

Description

Adds comprehensive configuration documentation with 13 complete how-to guides covering all aspects of Doc Detective configuration. Replaces the placeholder "future guides" document with fully implemented, production-ready guides following Google Developer Style Guide and The Good Docs Project templates.

Type of contribution

  • Quick change (typo, broken link, small wording change)
  • Standard change (new content, examples, or improvements)
  • Substantial change (new feature docs, major restructuring, tutorials)

Related issue

Related to configuration documentation requirements

Changes made

Created 13 Complete How-To Guides:

  1. how-to-create-config-file.mdx - Configuration fundamentals

    • Configuration cascading (config → spec → test override hierarchy)
    • Common options: input/output, contexts, environment variables, file types, concurrent runners
    • Telemetry configuration and opt-out
    • Links to input formats and custom file types
  2. how-to-setup-openapi.mdx - OpenAPI integration

    • Step-by-step integration setup
    • Configuration options: headers, examples, validation, mock responses
    • Multiple API specifications
    • Troubleshooting guide
  3. how-to-run-tests-in-parallel.mdx - Parallel test execution

    • Setting concurrentRunners option
    • CPU core limits and performance optimization
    • Handling shared resources between tests
    • Trade-offs between speed and resource usage
  4. how-to-use-environment-variables.mdx - Environment variable management

    • Creating and using .env files
    • Loading variables with loadVariables
    • Referencing variables using $VARIABLE_NAME syntax
    • Managing different environments (dev, staging, production)
    • Security best practices for credentials
  5. how-to-setup-hooks.mdx - Before and after hooks

    • Using beforeAny for test setup
    • Using afterAll for cleanup
    • Creating reusable setup specifications
    • Managing test data lifecycle
    • Handling failures in hooks
  6. how-to-configure-file-type-detection.mdx - File type customization

    • Understanding the fileTypes array
    • Using built-in file types (markdown, asciidoc, html, dita)
    • Extending existing file types
    • Creating custom file types
    • Configuring inline test detection patterns
  7. how-to-configure-test-detection.mdx - Test detection control

    • Understanding detectSteps option
    • Configuring inline test markers
    • Using markup patterns for automatic test generation
    • Balancing automatic detection with explicit tests
    • Debugging detection issues
  8. how-to-debug-failing-tests.mdx - Debugging configuration

    • Using debug: true for breakpoint support
    • Using debug: "stepThrough" for step-by-step execution
    • Setting logLevel to debug for detailed output
    • Running tests in headed mode for visual debugging
    • Understanding test output and error messages
  9. how-to-setup-multiple-environments.mdx - Multiple environment management

    • Creating separate config files for each environment
    • Using the --config flag to select configurations
    • Managing environment-specific settings
    • Structuring configuration for CI/CD vs local development
    • Sharing common configuration across environments
  10. how-to-configure-browsers.mdx - Browser configuration deep dive

    • Choosing between Chrome, Firefox, and WebKit
    • Configuring headless vs headed mode
    • Setting viewport and window dimensions
    • Browser-specific limitations and capabilities
    • Optimizing browser settings for CI/CD
  11. how-to-test-dita.mdx - DITA documentation testing

    • Understanding processDitaMaps option
    • Configuring DITA file type detection
    • Testing DITA topics and maps
    • Handling DITA-specific markup
    • Best practices for DITA documentation testing
  12. how-to-configure-relative-paths.mdx - Relative path configuration

    • Understanding relativePathBase option
    • Differences between cwd and file base paths
    • When to use each approach
    • Impact on portability and CI/CD
    • Troubleshooting path resolution issues
  13. how-to-configure-api-origin.mdx - API origin configuration

    • Using the origin configuration option
    • Testing localhost vs production
    • Combining origin with environment variables
    • Switching between environments
    • Best practices for URL management
  14. how-to-enable-website-crawling.mdx - Website crawling

    • Understanding the crawl option
    • Testing sitemap.xml files
    • Automatic link checking across sites
    • Performance considerations for large sites
    • Filtering and limiting crawl scope

Enhanced Existing Documentation:

  • contexts/index.md - Added practical guidance
    • "How to choose a context" - selection criteria based on audience and requirements
    • "How to specify contexts" - examples at config/spec/test levels
    • Common patterns for development, CI/CD, cross-browser testing

Removed:

  • additional-guides.mdx - Replaced with 13 complete, working guides

Updated:

  • sidebars.ts - Added all 13 guides to Configuration section navigation

Testing performed

  • Previewed changes locally (npm run start)
  • Tested all code examples
  • Verified all links work
  • Ran build successfully (npm run build)
  • Ran style checks with Vale (if applicable)
  • Added/updated Doc Detective tests (if applicable)

Screenshots (if applicable)

Configuration How-To Guide:

OpenAPI Integration Guide:

Updated Contexts Page:

Checklist

  • I have signed the Contributor License Agreement
  • My changes follow the contribution guidelines
  • I have used the appropriate content template (if applicable)
  • All new content files use .mdx extension
  • Front matter is included on all new pages
  • Links use absolute paths (e.g., /docs/page not ../page)
  • Code examples are complete and tested
  • I have spell-checked my changes
  • I have reviewed my own changes for errors

Additional notes

All 13 guides follow consistent documentation standards:

  • Google Developer Style Guide: Conversational tone, active voice, present tense, clear instructions
  • The Good Docs Project how-to templates: Proper structure with prerequisites, numbered steps, examples, troubleshooting, and next steps
  • Docusaurus best practices: MDX format, front matter, tabs for multiple options, code blocks with titles

Each guide includes:

  • "Before you begin" prerequisites section
  • Step-by-step instructions with practical JSON/YAML examples
  • Configuration examples for common use cases
  • Troubleshooting sections addressing common issues
  • "What's next" links to related documentation

Total documentation added: ~85,000+ characters across 11 new guides plus enhanced existing guides.


For reviewers:

  • See Review Process for guidelines
  • Focus on technical accuracy and user value
  • Don't block on minor style issues—automation handles those
Original prompt

create a how-to guide focusing on the basics of creating a configuration file. discuss general config behavior (like cascading overrides made in the level of specificity) and the most commonly used config options. add a section an telemetry.

create a focused how to about setting up an OpenAPI integration in the config.

update the contexts page to discuss how to choose and specify a context.

link to the different input typed as appropriate, including creating a custom file type.

identify other config-related how to subjects and create context for them.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 8, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Add how-to guide for creating configuration files Add configuration documentation: how-to guides for config files, OpenAPI, and contexts Nov 8, 2025
Copilot AI requested a review from hawkeyexl November 8, 2025 02:03
Copilot finished work on behalf of hawkeyexl November 8, 2025 02:03
@hawkeyexl
Copy link
Contributor

@copilot Create guides for every one mentioned in additional-guides.mdx

- Added comprehensive guides for parallel testing, environment variables, hooks, file type detection, test detection, debugging, multiple environments, browser config, DITA, relative paths, API origin, and website crawling
- Removed placeholder additional-guides file
- Updated sidebar to include all guides
- All guides follow Google Developer Style Guide and Good Docs Project templates

Co-authored-by: hawkeyexl <[email protected]>
Copy link
Contributor Author

Copilot AI commented Nov 8, 2025

@copilot Create guides for every one mentioned in additional-guides.mdx

Done! I've created all 13 configuration how-to guides mentioned in additional-guides.mdx:

✅ How to run tests in parallel
✅ How to use environment variables in tests
✅ How to set up before and after hooks
✅ How to configure file type detection
✅ How to configure test detection in documentation
✅ How to debug failing tests
✅ How to set up multiple test environments
✅ How to configure browsers for testing
✅ How to test DITA documentation
✅ How to configure relative paths
✅ How to configure API origin
✅ How to enable website crawling

All guides:

  • Follow Google Developer Style Guide
  • Use The Good Docs Project how-to template structure
  • Include practical examples with JSON snippets
  • Have troubleshooting sections
  • Link to related documentation
  • Build successfully with no errors

The placeholder additional-guides.mdx file has been removed and replaced with actual working guides. All guides are now in the sidebar under Configuration.

Commit: cd33420

Copilot AI changed the title Add configuration documentation: how-to guides for config files, OpenAPI, and contexts Add complete configuration documentation: 13 comprehensive how-to guides Nov 8, 2025
Copilot finished work on behalf of hawkeyexl November 8, 2025 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants