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 - sourcemod-dev/docgen: SP Documentation Generator

BranchesTags
Open more actions menu

Latest commit

 

History

125 Commits
125 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
chumbucket
chumbucket
 
 
edge_worker
edge_worker
 
 
libalternator
libalternator
 
 
libschema
libschema
 
 
libwalker
libwalker
 
 
schema
schema
 
 
sitemap
sitemap
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
trigger.txt
trigger.txt
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

SP DocGen

A documentation generator for SourcePawn includes

Overview

  • chumbucket - Chums through manifest and include files
  • edge_worker - CloudFlare edge server worker for modifying content title and description
  • libalternator - SourcePawn include parser built on tree-sitter-sourcepawn
  • libschema Shared types between documentation components
  • libwalker Git history traversal/walker for sources
  • schema - Typescript library of mostly symbol classes/interfaces for UI

Download

You could download the latest Linux & Windows chumbucket from the artifacts of each commit. Mac builds are currently not being automatically built.

Parser

libalternator parses one include (or plugin) file at a time into a strand of documented symbols. It runs a small preprocessor (conditional compilation, #defines, #endinput) and then walks the tree-sitter syntax tree. Doc comments are attached to declarations the same way the old SourcePawn docparse tool did, and parsed with spdcp.

Dump the strand of a file:

cargo run -p alternator --example dump -- path/to/file.inc

Tests

cargo test -p alternator -p schema

libalternator/tests/corpus holds upstream SourceMod and third-party sources (see its SOURCES.md), and libalternator/tests/expected their expected output. After an intended output change, update the snapshots with ALTERNATOR_BLESS=1 cargo test -p alternator --test corpus and review the diff. To pull newer upstream sources, bump the commits in libalternator/tests/update-corpus.sh and re-run it.

About

SP Documentation Generator

sourcemod.dev

Topics

docgendocumentationsourcemodsourcepawn

Resources

Readme
MIT license
Activity
Custom properties

Stars

8 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

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.