Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit 1a0d4d4

Browse files
committed
Merge pull request #5 from timoxley/gh-pages
Publish site.
2 parents fc23d36 + 3c4e6f7 commit 1a0d4d4

File tree

9 files changed

+126
-33
lines changed

9 files changed

+126
-33
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
npm-debug.log

Makefile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
prepublish: index.html
2+
start: prepublish
3+
http-server
4+
5+
index.html: Readme.md head.html foot.html package.json Makefile
6+
cat head.html > build.html
7+
## Change <project name> to This
8+
sed 's/&lt;project name&gt;/This/g' Readme.md >> build.md
9+
marked -i build.md >> build.html
10+
rm build.md
11+
cat foot.html >> build.html
12+
mv build.html index.html
13+
14+
15+
clean:
16+
-rm index.html
17+
-rm build.html
18+
19+
.PHONY: prepublish start clean

Readme.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# &lt;project name&gt; is an [OPEN Open Source Project](http://openopensource.org/)
2+
3+
-----------------------------------------
4+
5+
## What?
6+
7+
Individuals making significant and valuable contributions are given
8+
commit-access to the project to contribute as they see fit. This project
9+
is more like an open wiki than a standard guarded open source project.
10+
11+
## Rules
12+
13+
There are a few basic ground-rules for contributors:
14+
15+
1. **No `--force` pushes** or modifying the Git history in any way.
16+
1. **Non-master branches** ought to be used for ongoing work.
17+
1. **External API changes and significant modifications** ought to be subject to an **internal pull-request** to solicit feedback from other contributors.
18+
1. Internal pull-requests to solicit feedback are *encouraged* for any other non-trivial contribution but left to the discretion of the contributor.
19+
1. Contributors should attempt to adhere to the prevailing code-style.
20+
21+
## Releases
22+
23+
Declaring formal releases remains the prerogative of the project maintainer.
24+
25+
## Changes to this arrangement
26+
27+
This is an experiment and feedback is welcome! This document may also be
28+
subject to pull-requests or changes by contributors where you believe
29+
you have something valuable to add or change.
30+
31+
Get a copy of this manifesto as [markdown](https://raw.githubusercontent.com/openopensource/openopensource.github.io/master/Readme.md) and use it in your own projects.

foot.html

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
</body>
2+
</html>

head.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>OPEN Open Source</title>
5+
<link href='http://fonts.googleapis.com/css?family=Ubuntu:300,500' rel='stylesheet' type='text/css'>
6+
<link href='style.css' rel='stylesheet' type='text/css'>
7+
</head>
8+
<body>
9+
<a href="https://github.com/openopensource/openopensource.github.io"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>

index.html

+24-27
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,32 @@
33
<head>
44
<title>OPEN Open Source</title>
55
<link href='http://fonts.googleapis.com/css?family=Ubuntu:300,500' rel='stylesheet' type='text/css'>
6-
<style>
7-
8-
body {
9-
font-family: 'Ubuntu', sans-serif;
10-
background: #f0f0f8;
11-
color: #404050;
12-
}
13-
14-
h1, h2, h3, p {
15-
max-width: 700px;
16-
margin: 0 auto;
17-
}
18-
19-
h1 {
20-
font-weight: 300;
21-
letter-spacing: 0.2em;
22-
text-align: center;
23-
max-width: 700px;
24-
margin: 2em auto;
25-
padding-bottom: 0.4em;
26-
border-bottom: solid 1px #333;
27-
}
28-
29-
</style>
6+
<link href='style.css' rel='stylesheet' type='text/css'>
307
</head>
318
<body>
32-
33-
<h1 id="open-open-source">OPEN Open Source</h1>
34-
<h2 id="work-in-progress">work in progress</h2>
9+
<a href="https://github.com/openopensource/openopensource.github.io"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
10+
<h1 id="this-is-an-open-open-source-project-http-openopensource-org-">This is an <a href="http://openopensource.org/">OPEN Open Source Project</a></h1>
11+
<hr>
12+
<h2 id="what-">What?</h2>
13+
<p>Individuals making significant and valuable contributions are given
14+
commit-access to the project to contribute as they see fit. This project
15+
is more like an open wiki than a standard guarded open source project.</p>
16+
<h2 id="rules">Rules</h2>
17+
<p>There are a few basic ground-rules for contributors:</p>
18+
<ol>
19+
<li><strong>No <code>--force</code> pushes</strong> or modifying the Git history in any way.</li>
20+
<li><strong>Non-master branches</strong> ought to be used for ongoing work.</li>
21+
<li><strong>External API changes and significant modifications</strong> ought to be subject to an <strong>internal pull-request</strong> to solicit feedback from other contributors.</li>
22+
<li>Internal pull-requests to solicit feedback are <em>encouraged</em> for any other non-trivial contribution but left to the discretion of the contributor.</li>
23+
<li>Contributors should attempt to adhere to the prevailing code-style.</li>
24+
</ol>
25+
<h2 id="releases">Releases</h2>
26+
<p>Declaring formal releases remains the prerogative of the project maintainer.</p>
27+
<h2 id="changes-to-this-arrangement">Changes to this arrangement</h2>
28+
<p>This is an experiment and feedback is welcome! This document may also be
29+
subject to pull-requests or changes by contributors where you believe
30+
you have something valuable to add or change.</p>
31+
<p>Get a copy of this manifesto as <a href="https://raw.githubusercontent.com/openopensource/openopensource.github.io/master/Readme.md">markdown</a> and use it in your own projects.</p>
3532

3633
</body>
3734
</html>

index.md

-3
This file was deleted.

package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"version": "0.0.0",
44
"description": "http://openopensource.org",
55
"scripts": {
6-
"start": "node -e \"fs = require('fs'); b = require('brucedown'); b(fs.readFileSync(__dirname + '/index.md', 'utf8'), function (err, html) { if (err) throw err; fs.writeFileSync('index.html',fs.readFileSync('index.html', 'utf8').replace(/<body>[\\\\s\\\\S]*<\\\\/body>/gmi, '<body>\\\\n\\\\n' + html + '\\\\n</body>'), 'utf8') });\""
6+
"prepublish": "make prepublish",
7+
"start": "make start",
8+
"clean": "make clean"
79
},
8-
"dependencies": {
9-
"brucedown": "^0.1.1"
10+
"devDependencies": {
11+
"http-server": "^0.8.0",
12+
"marked": "^0.3.3"
1013
}
1114
}

style.css

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
html, body {
2+
margin: 0;
3+
padding: 0;
4+
}
5+
6+
body {
7+
-webkit-font-smoothing: antialiased;
8+
-moz-osx-font-smoothing: grayscale;
9+
font-family: 'Ubuntu', sans-serif;
10+
background: #f0f0f8;
11+
color: #404050;
12+
max-width: 800px;
13+
max-width: 40vw;
14+
margin: 0 auto;
15+
font-weight: 300;
16+
font-size: 1.2em;
17+
}
18+
19+
h1 {
20+
letter-spacing: 0.2em;
21+
text-align: center;
22+
max-width: 700px;
23+
margin: 1em auto;
24+
}
25+
26+
a {
27+
color: #4cb5ff;
28+
text-decoration: none;
29+
}
30+
31+
a:hover {
32+
color: #acd5ff;
33+
}

0 commit comments

Comments
 (0)