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
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
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added that prove my fix is effective or that my feature works - SKIPED
[x] New and existing unit tests pass locally and on CI with my changes
[x] Any dependent changes have been merged and published in downstream modules
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 Dash
Code sand box example
Additional Context (if necessary)