# Install sourcedocs with Homebrew

Generate Markdown files from inline source code documentation. Version 2.0.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:sourcedocs
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sourcedocs
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:sourcedocs
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/sourcedocs>
- **Version:** 2.0.1
- **Source summary:** Generate Markdown files from inline source code documentation
- **Homepage:** <https://github.com/SourceDocs/SourceDocs>
- **Repository:** <https://github.com/SourceDocs/SourceDocs>
- **Upstream docs:** <https://github.com/SourceDocs/SourceDocs#readme>
- **License:** MIT
- **Source archive:** <https://github.com/SourceDocs/SourceDocs/archive/refs/tags/2.0.1.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- sourcedocs (cli)
- sourcedocs (alias)

## Uses from macOS

- swift

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.1
- Local data: ok
- Upstream repository: https://github.com/SourceDocs/SourceDocs
- Upstream latest detected: 2.0.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

SourceDocs is a Swift command-line documentation generator that writes Markdown reference documentation from inline source comments, targeting repositories that want docs to live beside their code.

### Project history

The GitHub repository was created in October 2017, with the changelog marking 0.1.0 as the initial release. Early releases refined output directories, Markdown generation, and command-line behavior.

The 1.0.0 release added `SourceDocsLib` so other Swift tools could generate documentation, required Swift 5.1 or higher, added a `package` command for Swift packages, and migrated to Swift Argument Parser. Later 1.x and 2.x releases tracked Swift, Xcode, and package-generation changes.

### Adoption history

The README positions SourceDocs alongside Sphinx and Jazzy, but with a Markdown-in-repository model intended for GitHub, Bitbucket, and GitHub Pages workflows. It is distributed through Homebrew and source builds.

### How it is used

Users run `sourcedocs generate` from a Swift package or Xcode project root. The tool can generate documentation for all Swift Package Manager modules, a named module, package descriptions, and reproducible docs.

### Why package nerds care

Package nerds care because SourceDocs treats generated API docs as versioned Markdown artifacts rather than as an external hosted site. That makes it fit package repositories, CI diffs, and lightweight documentation publishing.

### Timeline

- 2017: Repository created and 0.1.0 initial release published.
- 2017: 0.4.0 changed default output to `Documentation/Reference` and revised command-line handling.
- 2020: 1.0.0 added `SourceDocsLib`, Swift 5.1 requirement, Swift Package documentation, and Swift Argument Parser.
- 2020: 1.1.0 added all-module generation and reproducible docs.
- 2021: 2.0.0 updated for Xcode 13.
- 2022: 2.0.1 updated for Xcode 13.3 and Swift 5.6.

### Related projects

- SourceDocs is conceptually related to Jazzy and Sphinx, both named in its README.
- SourceKitten is listed by SourceKitten as a project built with SourceKitten and SourceDocs uses Swift tooling to inspect source for documentation.

### Sources

- <https://github.com/SourceDocs/SourceDocs#readme>
- <https://github.com/SourceDocs/SourceDocs/blob/master/CHANGELOG.md>
- <https://github.com/SourceDocs/SourceDocs/releases>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sourcedocs
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [mint](https://www.automicvault.com/pkg/brew/mint/) - Shares av.db curated category or tags: cli, developer-tools, swift.
- [needle](https://www.automicvault.com/pkg/brew/needle/) - Shares av.db curated category or tags: cli, developer-tools, swift.
- [sourcery](https://www.automicvault.com/pkg/brew/sourcery/) - Shares av.db curated category or tags: cli, developer-tools, swift.
- [weaver](https://www.automicvault.com/pkg/brew/weaver/) - Shares av.db curated category or tags: cli, developer-tools, swift.
- [anchor](https://www.automicvault.com/pkg/brew/anchor/) - Shares av.db curated category or tags: cli, developer-tools, framework.
- [atf](https://www.automicvault.com/pkg/brew/atf/) - Shares av.db curated category or tags: cli, developer-tools, framework.
- [brpc](https://www.automicvault.com/pkg/brew/brpc/) - Shares av.db curated category or tags: cli, developer-tools, framework.
- [carthage](https://www.automicvault.com/pkg/brew/carthage/) - Shares av.db curated category or tags: cli, developer-tools, swift.
- [sourcekitten](https://www.automicvault.com/pkg/brew/sourcekitten/) - Both packages work with overlapping file formats or content types. Shared terms: cli, code, developer, developer-tools, documentation.

## Combined YAML source

View the package source record on GitHub. [combined/sourcedocs.yml](https://github.com/automic-vault/db/blob/main/combined/sourcedocs.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
