webscope

package module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 14 Imported by: 0

README

Webscope

WARNING: Webscope is very much work-in-progress. Expect bugs, and breaking changes.

Webscope is lightweight API documentation tool that generates static HTML from markdown and openapi files.

Webscope was created because I could not find tools that do all of the following:

  • Generating separate pages for openapi spec, general documentation, an changelog.
  • Generate static HTML that can be served from an HTTP server, or CDN (no, I do not want to host a separate React app just for a few documentation pages)
  • Is free and open source

Usage

You can use it as a CLI, to generate documentation html files.

go install gitlab.com/manabug/webscope/cmd/webscope@latest
webscope -i webscope.yaml

There is also an option to serve the documentation from a Go HTTP server. See the http server example. To see it in action, run the make example-server command, and go to http://localhost:5000/docs/api.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(c config.Config) error

func Handler

func Handler(c config.Config) http.Handler

func ParseConfig

func ParseConfig(filepath string) (*config.Config, error)

Types

type HttpHandler

type HttpHandler struct {
	// contains filtered or unexported fields
}

func (*HttpHandler) ServeHTTP

func (h *HttpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
templ: version: v0.3.924
templ: version: v0.3.924
cmd
webscope command
templ: version: v0.3.924
templ: version: v0.3.924
examples
server command
templ: version: v0.3.924
templ: version: v0.3.924

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL