solarwinds / nova

Apache License 2.0
23 stars 19 forks source link

Bugfix/docs fix #671

Closed pavlo-poimanov closed 7 months ago

pavlo-poimanov commented 9 months ago

Documentation fixesd Pull Request Description

This PR fixes the main problem with documentation site with bug existing: https://swicloud.atlassian.net/browse/NUI-6192 Also it fixes never working code examples button with plunker. Now it is working with codesandbox integration. Co authored with @erik-kocamba-swi x

List of changes

Overal description how it works: The scipt compile-demo-paths.js - collects all file paths for the examples files When user click on the show source button on the documentation then Source services tryies to load the file with help of the DEMO_PATH_TOKEN !!raw-loader!./components/demo/${filePath}. which will return raw file content. Then example wrapper component just filter the files which relates to input file prefix.

One small justification for the code sandbox - we need to fetch last stable nova version which exists in the internet. (No spinners showing that process started)

Checklist

Screenshots (if applicable)

Bits docs image Dash image

Code sand box example image

Additional Context (if necessary)