Skip to content

Commit 8fa56c5

Browse files
committedMar 3, 2025
Add infrastructure to turn the .md files into .html ones
This imitates the Grunt-based setup of git-for-windows.github.io. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 098f90d commit 8fa56c5

File tree

5 files changed

+1170
-2
lines changed

5 files changed

+1170
-2
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules/

‎Gruntfile.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = function(grunt) {
2+
grunt.initConfig({
3+
md2html: {
4+
options: {
5+
layout: 'markdown-template.html'
6+
},
7+
architecture: {
8+
files: [{
9+
src: ['architecture.md'],
10+
dest: 'architecture.html'
11+
}]
12+
},
13+
replyToThis: {
14+
files: [{
15+
src: ['reply-to-this.md'],
16+
dest: 'reply-to-this.html'
17+
}]
18+
}
19+
},
20+
})
21+
22+
// Load the grunt plugins
23+
grunt.loadNpmTasks('grunt-md2html')
24+
25+
grunt.registerTask('default', ['md2html'])
26+
}

‎markdown-template.html

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>GitGitGadget - contributing git.git patches via GitHub PRs</title>
5+
<link rel="stylesheet" href="main.css">
6+
</head>
7+
<body>
8+
<div class="banner">
9+
<table style="width: 100%">
10+
<tbody>
11+
<tr>
12+
<td>
13+
<img src="images/gitgitgadget-explanation.png" alt="An arrow from git logo to an envelop with git logo. The arrow is labelled by famous Inspector Gadget hat." style="height: 150px;">
14+
</td>
15+
<td>
16+
<big>GitGitGadget</big>
17+
<br />
18+
Contributing git.git patches via GitHub PRs
19+
<br />
20+
<small>... one iteration at a time...</small>
21+
</td>
22+
</tr>
23+
</tbody>
24+
</table>
25+
</div>
26+
27+
<div class="block">
28+
<%= document %>
29+
</div>
30+
</body>
31+
</html>

0 commit comments

Comments
 (0)