Skip to content

Commit a0136f4

Browse files
committed
Initial Commit
1 parent 13fba25 commit a0136f4

31 files changed

Lines changed: 2111 additions & 0 deletions
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI-Windows
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
11+
runs-on: windows-2019
12+
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: net core 3.0
16+
run: choco install dotnetcore-sdk --pre
17+
- name: Build
18+
run: |
19+
dotnet publish -c Release -o .\bin\publish-win64 --self-contained -r win-x64
20+
cd .\bin\
21+
7z a -tzip ReleaseWin64.zip publish-win64\*
22+
cd .\publish-win64\
23+
mkdir Source
24+
xcopy .\..\..\TestSource\* .\Source /Y /E
25+
.\Generator.exe
26+
xcopy .\Output\* .\..\..\docs /Y /E
27+
- name: Upload Artifact
28+
uses: actions/upload-artifact@master
29+
with:
30+
name: Release
31+
path: bin\ReleaseWin64.zip
32+
- name: Upload Release
33+
uses: svenstaro/upload-release-action@v1-release
34+
with:
35+
repo_token: ${{ secrets.GITHUB_TOKEN }}
36+
file: bin\ReleaseWin64.zip
37+
asset_name: ReleaseWin64.zip
38+
tag: ${{ github.ref }}
39+
overwrite: true
40+
- name: Update Demo Page
41+
uses: matheusalbino/git-commit@v1.0.0
42+
with:
43+
user-name: GitHubBot
44+
user-email: github@github.com
45+
message: Updated static files!
46+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Windows image file caches
2+
Thumbs.db
3+
ehthumbs.db
4+
5+
# Folder config file
6+
Desktop.ini
7+
8+
# Recycle Bin used on file shares
9+
$RECYCLE.BIN/
10+
11+
# Windows Installer files
12+
*.cab
13+
*.msi
14+
*.msm
15+
*.msp
16+
17+
# Windows shortcuts
18+
*.lnk
19+
20+
# Thumbnails
21+
._*
22+
23+
# Files that might appear in the root of a volume
24+
.DocumentRevisions-V100
25+
.fseventsd
26+
.Spotlight-V100
27+
.TemporaryItems
28+
.Trashes
29+
.VolumeIcon.icns
30+
bin
31+
.vs
32+
obj
33+
34+
# Tests
35+
.axocover
36+
TestResults
37+
38+
# Nuget
39+
packages/*
40+
*.nupkg
41+
EmotionCore/Emotion.targets
42+
43+
# Soul
44+
Logs
45+
46+
# Emotion Games
47+
HealerGame
48+
ElectricSleep
49+
50+
# Other
51+
*.DotSettings.user
52+
cmake-build-debug
53+
.idea

Configuration.cs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
namespace Generator
2+
{
3+
public class Configuration
4+
{
5+
/// <summary>
6+
/// This is the folder markdown files are read from.
7+
/// </summary>
8+
public string SourcePath { get; set; } = "Source\\";
9+
10+
/// <summary>
11+
/// This is the folder where the generator templates are.
12+
/// </summary>
13+
public string TemplateDirectory { get; set; } = "Templates\\";
14+
15+
/// <summary>
16+
/// This is the folder where the built site will be placed.
17+
/// </summary>
18+
public string OutputDirectory { get; set; } = "Output\\";
19+
20+
/// <summary>
21+
/// Prefix to all links.
22+
/// </summary>
23+
public string WebPrefix { get; set; } = "";
24+
25+
/// <summary>
26+
/// The name of the folder in which the built source files will reside inside the output directory.
27+
/// </summary>
28+
public string SourceOutput { get; set; } = "Files\\";
29+
30+
/// <summary>
31+
/// The name of the wiki.
32+
/// </summary>
33+
public string WikiTitle { get; set; } = "Wiki";
34+
}
35+
}

Documentation/example.PNG

41.7 KB
Loading

Generator.csproj

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp3.0</TargetFramework>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<PackageReference Include="Markdig" Version="0.17.1" />
10+
</ItemGroup>
11+
12+
<ItemGroup>
13+
<None Update="Templates\index.html">
14+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
15+
</None>
16+
<None Update="Templates\markdownTemplate.html">
17+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
18+
</None>
19+
<None Update="Templates\navigator.html">
20+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
21+
</None>
22+
<None Update="Templates\normalize.css">
23+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
24+
</None>
25+
<None Update="Templates\stylesheet.css">
26+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
27+
</None>
28+
<None Update="Templates\treeview.css">
29+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
30+
</None>
31+
</ItemGroup>
32+
33+
</Project>

Generator.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29230.61
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Generator", "Generator.csproj", "{C0E7B85D-A4AD-4088-9224-3E2CED351BBC}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{C0E7B85D-A4AD-4088-9224-3E2CED351BBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{C0E7B85D-A4AD-4088-9224-3E2CED351BBC}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{C0E7B85D-A4AD-4088-9224-3E2CED351BBC}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{C0E7B85D-A4AD-4088-9224-3E2CED351BBC}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {FA658FB9-D648-4490-A5C7-76A7747553D2}
24+
EndGlobalSection
25+
EndGlobal

0 commit comments

Comments
 (0)