Skip to content

Commit

Permalink
v8.2024.1010.1840
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatandrei committed Oct 10, 2024
1 parent 7b9ef22 commit a536a98
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 9 deletions.
5 changes: 5 additions & 0 deletions src/NetPackageAnalyzer/NPA.Resources/MyResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@ public partial class MyResource

[EmbedResourceCSharp.FileEmbed("tabulator_midnight.min.css")]
public static partial System.ReadOnlySpan<byte> GetTabulatorTheme();
[EmbedResourceCSharp.FileEmbed("driver.css")]
public static partial System.ReadOnlySpan<byte> GetDriverCss();

[EmbedResourceCSharp.FileEmbed("driver.js.iife.js")]
public static partial System.ReadOnlySpan<byte> GetDriverJS();

}
1 change: 1 addition & 0 deletions src/NetPackageAnalyzer/NPA.Resources/driver.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/NetPackageAnalyzer/NPA.Resources/driver.js.iife.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<ProjectReference Include="..\NetPackageAnalyzerWork\NetPackageAnalyzerDocusaurus.csproj" />
</ItemGroup>
<PropertyGroup>
<Version>8.2024.1008.2227</Version>
<Version>8.2024.1010.1840</Version>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<PackAsTool>true</PackAsTool>
<ToolCommandName>PackageAnalyzer</ToolCommandName>
Expand Down
14 changes: 7 additions & 7 deletions src/NetPackageAnalyzer/NetPackageAnalyzerConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@
// "--verbose","false"
//};

//args = new[] { "generateFiles",
// "--folder", @"D:\gth\RSCG_Examples\v2",
// "-wg","HtmlSummary",
// "--where", @"D:\gth\PackageAnalyzer\src\documentation1",
// "--verbose","false"
//};

args = new[] { "generateFiles",
"--folder", @"D:\gth\RSCG_Examples\v2",
"-wg","HtmlSummary",
"--where", @"D:\gth\PackageAnalyzer\src\documentation1",
"--verbose","false"
};
//args = new[] { "generateFiles",
// "--folder", @"D:\source\test\NetPackageAnalyzer",
// "-wg","HtmlSummary",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ void WriteJs(string where)
nameFileJs = Path.Combine(where, "tabulator.theme.min.js");
system.File.WriteAllBytes(nameFileJs, res.ToArray());

res = MyResource.GetDriverCss();
nameFileJs = Path.Combine(where, "driver.css");
system.File.WriteAllBytes(nameFileJs, res.ToArray());

res = MyResource.GetDriverJS();
nameFileJs = Path.Combine(where, "driver.js.iife.js");
system.File.WriteAllBytes(nameFileJs, res.ToArray());

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@
<script type="text/javascript" src="tabulator.min.js"></script>
<link rel="stylesheet" href="tabulator.min.css" />
<link rel="stylesheet" href="tabulator.theme.min.js" />
<script src="driver.js.iife.js"></script>
<link rel="stylesheet" href="driver.css" />
<style>
table thead tr {
background-color: #ffcccb; /* Light red */
Expand Down Expand Up @@ -267,7 +269,7 @@
</table>
</div>
<div class="center">
<h1>Summary @nameSolution </h1>
<h1 id="summary">Summary @nameSolution </h1>
<a href="#licences-per-project"> Licenses</a>: @projectDicts.NrLicenses()
<h2>If you are new to the project</h2>
<ol>
Expand Down Expand Up @@ -1325,5 +1327,53 @@ columns: [
<small>Generated by https://www.nuget.org/packages/NetPackageAnalyzerConsole </small>
<small>@GlobalsForGenerating.Version</small>
<small> @GlobalsForGenerating.NameVersion </small>
<script>
const steps = [
{
element: '#summary', //this is option if you don't want to add title
popover:{title: 'Start tour', //can be string or html string
description:"Please click next to see all that is is generated. Click escape to exit the tour."
}
},
{
element: '#projects-with-tests', //target element (if not defined then the popover will act like a modal at the center of the screen)
popover:{title: 'Projects with test', //this is option if you don't want to add title
description: 'Here you can find a diagram of your projects', //can be string or html string
}
},
{
element: '#building-blocks', //target element (if not defined then the popover will act like a modal at the center of the screen)
popover:{title: 'Building blocks', //this is option if you don't want to add title
description: 'You can start understanding the solution with those projects', //can be string or html string
}
},
{
element: '#commits', //target element (if not defined then the popover will act like a modal at the center of the screen)
popover:{title: 'Commits', //this is option if you don't want to add title
description: 'Here are the commits per year', //can be string or html string
}
},
{
element: '#summary', //target element (if not defined then the popover will act like a modal at the center of the screen)
popover:{title: 'Close this', //this is option if you don't want to add title
description: 'Start Analysing', //can be string or html string
}
}
];
const driver = window.driver.js.driver;
const driverObj = driver({
showProgress: true,
steps: steps
});
driverObj.drive();
</script>

</body>
</html>

0 comments on commit a536a98

Please sign in to comment.