github-action-readme-generator
Version:
The docs generator for GitHub Actions. Auto-syncs action.yml to README.md with 8 sections: inputs, outputs, usage, badges, branding & more. Works as CLI or GitHub Action.
10 lines (9 loc) • 507 B
TypeScript
/**
* This TypeScript code exports a function named 'updateContents' which generates
* a table of contents from the README.md headers.
* @param {ReadmeSection} sectionToken - The sectionToken representing the section of the README to update.
* @param {Inputs} inputs - The Inputs class instance.
*/
import type { ReadmeSection } from '../constants.js';
import type Inputs from '../inputs.js';
export default function updateContents(sectionToken: ReadmeSection, inputs: Inputs): Record<string, string>;