GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sourcey/build-docs: GitHub Action to build documentation with Sourcey

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
test
test
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
action.yml
action.yml
 
 

Repository files navigation

Build Docs with Sourcey

GitHub Action to build static documentation from OpenAPI specs, MCP snapshots, code and Markdown with Sourcey.

Usage

- uses: sourcey/build-docs@v1

Sourcey reads sourcey.config.ts in the working directory and writes the site to docs/. A project whose package.json depends on sourcey builds with its own, at the version its lockfile holds, installed with npm, pnpm or Yarn as the lockfile says. Any other config or spec builds with the version input, latest unless set, and nothing in the project changes.

A config elsewhere

- uses: sourcey/build-docs@v1
  with:
    config: docs/sourcey.config.ts
    output: site

One OpenAPI spec, without a config

- uses: sourcey/build-docs@v1
  with:
    spec: openapi.yaml

Deploy to GitHub Pages

name: Docs
on:
  push:
    branches: [main]

permissions:
  contents: read
  pages: write
  id-token: write

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    steps:
      - uses: actions/checkout@v7
        with:
          # The whole history, so lastUpdated dates each page by its last commit.
          fetch-depth: 0
      - uses: sourcey/build-docs@v1
      - uses: actions/upload-pages-artifact@v5
        with:
          path: docs
      - id: deployment
        uses: actions/deploy-pages@v5

Set the repository's Pages source to GitHub Actions. A project site is served beneath the repository's name, so set baseUrl: "/<repository>" in the config unless it has a domain of its own. See Deploying.

Inputs

Input Description Default
version Sourcey version to use when the project does not depend on Sourcey itself latest
config Path to sourcey.config.ts, or the folder holding it sourcey.config.ts in the working directory
spec Path or URL of an OpenAPI spec, to build its reference without a config
output Output directory docs
args Additional arguments for sourcey build, such as --strictChangelog
node-version Node.js version to build with; Sourcey needs 22.22.2 or later, 24.15 or later, or 26 24
token Token a GitHub navbar link with stats: true reads its release, stars and forks with the workflow's token

Outputs

Output Description
output-dir Path to the generated documentation

About

GitHub Action to build documentation with Sourcey

sourcey.com

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.