Docs/ci example#71
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several significant updates to the TWD documentation and configuration. The most notable changes include the addition of a GitHub Actions workflow for deploying documentation, substantial improvements and clarifications to the API mocking documentation, a reorganization of the documentation navigation to focus on a tutorial format, and expanded API documentation for new utilities such as the Vite plugin and CI integration. These updates aim to make the documentation more user-friendly, accurate, and comprehensive.
Documentation Deployment:
.github/workflows/deploy_docs.ymlto automate building and deploying the VitePress documentation site to GitHub Pages.API Mocking Documentation Improvements:
docs/api-mocking.mdto clarify setup steps, improve code samples (usingawaitconsistently withtwd.visit()), correct request body assertions, and add best practice examples for mocking requests before navigation. Removed outdated or redundant sections and improved explanations of common patterns. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18]Navigation and Tutorial Reorganization:
docs/.vitepress/config.mtsto replace the "Examples" section with a more comprehensive "Tutorial," updating both the nav bar and sidebar structure to reflect this focus. [1] [2]API Reference Expansion:
docs/api/index.mdto document additional test functions (it.only,it.skip,afterEach), and added sections for new utilities:removeMockServiceWorker()for production build cleanup.reportResults()for formatted test reporting.Other Notable Updates:
docs/api-mocking.mdfor accuracy. [1] [2] [3]docs/api/twd-commands.mdfor brevity and clarity.These changes collectively improve the usability, accuracy, and maintainability of the TWD documentation and deployment process.
This PR closes #47 it does not add full tutorials but add vitepress docs