2023-10-29 23:27:35 +01:00
2023-10-29 22:48:09 +01:00
2023-10-29 23:27:35 +01:00
2023-10-29 22:42:42 +01:00
2023-04-10 06:26:52 +02:00
2023-10-29 23:23:22 +01:00
2023-10-29 22:56:49 +01:00
2023-10-29 22:54:52 +01:00
2023-10-29 23:18:05 +01:00

Static API

Repository to host a static API using GitHub workflows.

How it works

When CI is ran, static files are generated and commited to the gh-pages branch.
The file generator.py provides a list of static file generator classes. Each class has a name.
The configuration file config.json is read which contains the configuration for the API.
By specifying the name of the generator in the generators array of the configuration, the corresponding generator will be used. The current object of the configuration is passed to the generator.

The following API configuration generates the contributor and release API for selected repositories:

{
  "api": [
    {
      "generators": ["release", "contributor"],
      "repositories": ["user/repo"]
    }
  ]
}

All static files are generated in the output path specified in the configuration.

Setup

A repository variable CONFIG is expected by CD with the configuration (string escaped) which will be used by CD to generate the static files.

Description
📡 Repository to host the static API for ReVanced
Readme GPL-3.0 172 KiB
Languages
Python 100%