Files
2025-11-30 08:48:52 +08:00

8.7 KiB

Common Documentation Sources

Reference guide for locating documentation across popular platforms and ecosystems.

context7.com Locations (PRIORITY)

ALWAYS try context7.com first for all libraries

JavaScript/TypeScript Frameworks

Frontend Libraries & UI

Backend/Full-stack

Build Tools

Databases/ORMs

Authentication

Image Processing

Topic-Specific Examples

Official llms.txt Locations (FALLBACK)

Use these only if context7.com returns 404:

JavaScript/TypeScript Frameworks

Frontend Libraries

Backend/Full-stack

Build Tools

Databases/ORMs

Repository Patterns

GitHub (Most Common)

URL patterns:

https://github.com/[org]/[repo]
https://github.com/[user]/[repo]

Common organization names:

  • Company name: github.com/vercel/next.js
  • Project name: github.com/remix-run/remix
  • Community: github.com/facebook/react

Documentation locations in repositories:

/docs/
/documentation/
/website/docs/
/packages/docs/
README.md
CONTRIBUTING.md
/examples/

GitLab

URL pattern:

https://gitlab.com/[org]/[repo]

Bitbucket (Less Common)

URL pattern:

https://bitbucket.org/[org]/[repo]

Package Registries

npm (JavaScript/TypeScript)

URL: https://npmjs.com/package/[name]

Available info:

  • Description
  • Homepage link
  • Repository link
  • Version history
  • Dependencies

Useful for:

  • Finding official links
  • Version information
  • Package metadata

PyPI (Python)

URL: https://pypi.org/project/[name]

Available info:

  • Description
  • Documentation link
  • Homepage
  • Repository link
  • Release history

Useful for:

  • Python package documentation
  • Official links
  • Version compatibility

RubyGems (Ruby)

URL: https://rubygems.org/gems/[name]

Available info:

  • Description
  • Homepage
  • Documentation
  • Source code link
  • Dependencies

Useful for:

  • Ruby gem documentation
  • Version information

Cargo (Rust)

URL: https://crates.io/crates/[name]

Available info:

  • Description
  • docs.rs link (auto-generated docs)
  • Repository
  • Version history

Useful for:

  • Rust crate documentation
  • Auto-generated API docs
  • Repository link

Maven Central (Java)

URL: https://search.maven.org/artifact/[group]/[artifact]

Available info:

  • Versions
  • Dependencies
  • Repository link
  • License

Useful for:

  • Java library information
  • Dependency management

Documentation Hosting Platforms

Read the Docs

URL patterns:

https://[project].readthedocs.io
https://readthedocs.org/projects/[project]

Features:

  • Version switching
  • Multiple formats (HTML, PDF, ePub)
  • Search functionality
  • Often auto-generated from reStructuredText/Markdown

GitBook

URL patterns:

https://[org].gitbook.io/[project]
https://docs.[domain].com  (often GitBook-powered)

Features:

  • Clean, modern interface
  • Good navigation
  • Often manually curated
  • May require API key for programmatic access

Docusaurus

URL patterns:

https://[project].io
https://docs.[project].com

Common in:

  • React ecosystem
  • Meta/Facebook projects
  • Modern open-source projects

Features:

  • React-based
  • Fast, static site
  • Version management
  • Good search

MkDocs

URL patterns:

https://[user].github.io/[project]
https://[custom-domain].com

Features:

  • Python ecosystem
  • Static site from Markdown
  • Often on GitHub Pages
  • Material theme popular

VitePress

URL patterns:

https://[project].dev
https://docs.[project].com

Common in:

  • Vue ecosystem
  • Modern projects
  • Vite-based projects

Features:

  • Vue-powered
  • Very fast
  • Clean design
  • Good DX

Documentation Search Patterns

Finding llms.txt

ALWAYS try context7.com first:

For GitHub repositories:

https://context7.com/{org}/{repo}/llms.txt

For websites:

https://context7.com/websites/{normalized-path}/llms.txt

With topic filter:

https://context7.com/{path}/llms.txt?topic={query}

Fallback: Traditional search if context7.com returns 404:

"[library] llms.txt site:[known-domain]"

Alternative domains to try:

site:docs.[library].com
site:[library].dev
site:[library].io
site:[library].org

Finding Official Repository

Search pattern:

"[library] official github repository"
"[library] source code github"

Verification checklist:

  • Check organization/user is official
  • Verify star count (popular libraries have many)
  • Check last commit date (active maintenance)
  • Look for official links in README

Finding Official Documentation

Search patterns:

"[library] official documentation"
"[library] docs site:official-domain"
"[library] API reference"

Domain patterns:

docs.[library].com
[library].dev/docs
docs.[library].io
[library].readthedocs.io

Common Documentation Structures

Typical Section Names

Getting started:

  • Getting Started
  • Quick Start
  • Introduction
  • Installation
  • Setup

Core concepts:

  • Core Concepts
  • Fundamentals
  • Basics
  • Key Concepts
  • Architecture

Guides:

  • Guides
  • How-To Guides
  • Tutorials
  • Examples
  • Recipes

Reference:

  • API Reference
  • API Documentation
  • Reference
  • API
  • CLI Reference

Advanced:

  • Advanced
  • Advanced Topics
  • Deep Dives
  • Internals
  • Performance

Common File Names

README.md
GETTING_STARTED.md
INSTALLATION.md
CONTRIBUTING.md
CHANGELOG.md
API.md
TUTORIAL.md
EXAMPLES.md
FAQ.md

Framework-Specific Patterns

React Ecosystem

Common patterns:

- Uses Docusaurus
- Documentation at [project].dev or docs.[project].com
- Often has interactive examples
- CodeSandbox/StackBlitz embeds

Vue Ecosystem

Common patterns:

- Uses VitePress
- Documentation at [project].vuejs.org
- Bilingual (English/Chinese)
- API reference auto-generated

Python Ecosystem

Common patterns:

- Read the Docs hosting
- Sphinx-generated
- reStructuredText format
- [project].readthedocs.io

Rust Ecosystem

Common patterns:

- docs.rs for API docs
- Book format for guides ([project].rs/book)
- Markdown in repository
- Well-structured examples/

Quick Lookup Table

Ecosystem Registry Docs Pattern Common Host
JavaScript/TS npmjs.com [name].dev Docusaurus, VitePress
Python pypi.org readthedocs.io Read the Docs
Rust crates.io docs.rs docs.rs
Ruby rubygems.org rubydoc.info RDoc
Go pkg.go.dev pkg.go.dev pkg.go.dev
PHP packagist.org [name].org Various
Java maven.org javadoc Maven Central