This repository was archived by the owner on Dec 22, 2025. It is now read-only.
Improve README.md with user-friendly documentation and preserve during build process #2
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 PR replaces the auto-generated TypeScript API documentation in README.md with a comprehensive, user-friendly guide that includes project introduction, installation instructions, usage examples, and clear API documentation.
Changes Made
1. New User-Friendly README.md
Replaced the auto-generated TypeScript documentation with a structured README that includes:
parse()function andNodeReprclass methods2. Build Process Improvements
Modified the documentation generation workflow to prevent overwriting the custom README:
docsscript in package.json to generateAPI.mdinstead of overwritingREADME.mdAPI.mdto thefilesarray so detailed API docs are included in npm packages3. Accurate API Documentation
Ensured all API documentation matches the actual TypeScript definitions:
append()method to only acceptNodeReprobjects (not strings)nullfor methods likeselect()andgetAttribute()Testing
yarn docs) no longer overwrites the custom READMEThe new README provides a much better developer experience while preserving the detailed auto-generated API documentation in a separate file for those who need it.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.