Skip to content

Commit

Permalink
using ILSpyX build info
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lg committed Nov 8, 2024
1 parent dd3747c commit ac7f16c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 38 deletions.
34 changes: 0 additions & 34 deletions ICSharpCode.ILSpyX/MermaidDiagrammer/BuilderAssembly.cs

This file was deleted.

4 changes: 2 additions & 2 deletions ICSharpCode.ILSpyX/MermaidDiagrammer/Generator.Run.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private string SerializeModel(ClassDiagrammer diagrammer)
jsonModel = new {
diagrammer.SourceAssemblyName,
diagrammer.SourceAssemblyVersion,
BuilderVersion = BuilderAssembly.Version,
BuilderVersion = DecompilerVersionInfo.FullVersionWithCommitHash,
RepoUrl,
// pre-serialize to a string so that we don't have to re-serialize it in the JS build task
Model = Serialize(jsonModel)
Expand Down Expand Up @@ -110,7 +110,7 @@ private void GenerateOutput(string assemblyPath, ClassDiagrammer model)
var html = htmlTemplate
.Replace("{{SourceAssemblyName}}", model.SourceAssemblyName)
.Replace("{{SourceAssemblyVersion}}", model.SourceAssemblyVersion)
.Replace("{{BuilderVersion}}", BuilderAssembly.Version)
.Replace("{{BuilderVersion}}", DecompilerVersionInfo.FullVersionWithCommitHash)
.Replace("{{RepoUrl}}", RepoUrl)
.Replace("{{Model}}", modelJson);

Expand Down
4 changes: 2 additions & 2 deletions ICSharpCode.ILSpyX/MermaidDiagrammer/html/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8" />
<title>{{SourceAssemblyName}} class diagrammer - netAmermaid</title>
<title>{{SourceAssemblyName}} class diagrammer - ILSpy</title>
<link rel="icon" type="image/x-icon" href="netAmermaid.ico" />
<link rel="stylesheet" href="styles.css" type="text/css" />
<style id="filter-width"></style>
Expand Down Expand Up @@ -173,7 +173,7 @@ <h3>Looking for help with something else?</h3>
title="For off-line use, download a copy and save it with the diagrammer - at the bottom of which you find a script with a reference to the mermaid CDN. Replace its 'src' with the path to your local copy.">📥</a>
</span>
<span>
using <a class="project" target="_blank" href="{{RepoUrl}}#readme" title="🤿 get learned and find out about or 🔱 fork the project">netAmermaid</a> v{{BuilderVersion}}
using <a class="project" target="_blank" href="{{RepoUrl}}#readme" title="🤿 get learned and find out about or 🔱 fork the project">ICSharpCode.ILSpyX</a> v{{BuilderVersion}}
<a target="_blank" href="{{RepoUrl}}/tree/v{{BuilderVersion}}#readme" title="the manual for v{{BuilderVersion}}">📜</a>
<a target="_blank" href="{{RepoUrl}}/discussions" title="🤔 ask questions, share and discuss 💡 ideas">💬</a>
<a target="_blank" href="{{RepoUrl}}/issues" title="🦟 feed bugs to the fishes and request 🌱 new features"><span class="mano-a-borsa"></span></a>
Expand Down

0 comments on commit ac7f16c

Please sign in to comment.