UmbSense icon indicating copy to clipboard operation
UmbSense copied to clipboard

vs-code: scrape the Umbraco repo to build the json files?

Open KevinJump opened this issue 4 years ago • 1 comments

For a vs-code version see branch : https://github.com/KevinJump/UmbSense/tree/vs-code

Creating the json files to define the tags seems like a lot of work, and all the data is already in the umbracoCMS repo (https://github.com/umbraco/Umbraco-CMS/blob/e9627f2ee962a73cd8c007a42845c9129e3339ee/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js)

comments using @ngdoc syntax already define the attributes / values etc, in a perfect world it would be AMAZING! if we could somehow get this information from the documentation build so we could just keep the extension in sync with the docs.

KevinJump avatar Oct 13 '20 07:10 KevinJump

This is the build step in umbraco that builds the docs. https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/build/build.ps1#L472

not sure if its possible to have it output json not html (surely it must be)

KevinJump avatar Oct 13 '20 08:10 KevinJump