Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/NaiveStaticGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
if (nameOnly.StartsWith("_"))
continue;

var rawTitle = nameOnly[(nameOnly.IndexOf('-') + 1)..];
var title = rawTitle.Replace('-', ' ');
// A page's name as the wiki shows it: `Basic-operations` is "Basic operations"
var title = nameOnly.Replace('-', ' ');

var altName = destPath[..^2] + "html";
links.Add((url: nameOnly.Replace("#", "%23") + ".html", name: title));
Expand Down Expand Up @@ -207,7 +207,7 @@
}


static string PathUp(string content, string relativeName, string subPath)

Check warning on line 210 in src/NaiveStaticGenerator/Program.cs

View workflow job for this annotation

GitHub Actions / RunJobs (macos-latest)

The local function 'PathUp' is declared but never used

Check warning on line 210 in src/NaiveStaticGenerator/Program.cs

View workflow job for this annotation

GitHub Actions / RunJobs (ubuntu-latest)

The local function 'PathUp' is declared but never used

Check warning on line 210 in src/NaiveStaticGenerator/Program.cs

View workflow job for this annotation

GitHub Actions / RunJobs (windows-latest)

The local function 'PathUp' is declared but never used
=> content.Replace("/" + subPath,
string.Join("",
Enumerable.Range(0, relativeName.Count(c => c == '\\')
Expand Down Expand Up @@ -254,7 +254,7 @@
}
}

void CopyWikiImagesToFinalWebsite()

Check warning on line 257 in src/NaiveStaticGenerator/Program.cs

View workflow job for this annotation

GitHub Actions / RunJobs (macos-latest)

The local function 'CopyWikiImagesToFinalWebsite' is declared but never used

Check warning on line 257 in src/NaiveStaticGenerator/Program.cs

View workflow job for this annotation

GitHub Actions / RunJobs (ubuntu-latest)

The local function 'CopyWikiImagesToFinalWebsite' is declared but never used

Check warning on line 257 in src/NaiveStaticGenerator/Program.cs

View workflow job for this annotation

GitHub Actions / RunJobs (windows-latest)

The local function 'CopyWikiImagesToFinalWebsite' is declared but never used
{
DirectoryCopy(RootP._("wiki"), FinalOutputP._("wiki"), copySubDirs: false, _ => true);
}
Expand Down
Loading