Markdown to APIThis is an Azure DevOps task that generates JSON files from Markdown files which can then be consumed by your front-end app. Basically, a static API generator. TasksThe extension consists of the following two tasks. You need to add these tasks in this order.
Install Markdown to API DependenciesAdd this task before the Markdown to APIAdd this task to process your Markdown files into JSON files. This task requires one user input - the location of the config file including the name of the file itself. So, in the screenshot below, the JSON config file was located in the You can organise your Markdown files as you like. You can also add FrontMatter to each Markdown file. This task will convert each Markdown file into a JSON file and maintain the same folder structure in the output directory. It will also generate a summary JSON file which will contain the details of all Markdown files in a single JSON file. Schema of the config fileThe following JSON properties are expected in the config file.
ExamplesFind more information on the usage and different scenarios in this GitHub repository. SupportThe easiest way is to create an issue on GitHub. CreditsThis extension is developed by Clyde D'Souza. Copyright (c) 2020 Clyde D'Souza |