]> jfr.im git - irc/freenode/web-7.0.git/commitdiff
move contributing information around 85/head
authorEd Kellett <redacted>
Sun, 28 Feb 2016 03:55:14 +0000 (03:55 +0000)
committerEd Kellett <redacted>
Sun, 28 Feb 2016 03:57:56 +0000 (03:57 +0000)
CONTRIBUTE.md [deleted file]
CONTRIBUTING.md [new file with mode: 0644]
README.md

diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md
deleted file mode 100644 (file)
index 28d100a..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-## Dev Requirements:
-
-* [Myth](http://www.myth.io/)
-* [svgo](https://github.com/svg/svgo)
-* [cms7](https://github.com/edk0/cms7)
-
-## Building
-
-Install `myth` and `svgo` globally by running `npm install -g myth svgo`.
-
-Python 3 is needed for `cms7` to work. Make a virtualenv with `pyvenv env`,
-then run `pip install -r requirements.txt` to install `cms7`.
-
-With dependencies installed, just run `cms7` to build. The output files are in
-the `out/` folder. You can run `python -m http.server` in the `out/` folder to
-serve the compiled files, and go to `http://localhost:8000` to see the files.
-
-## Git
-
-`master` is automatically deployed to https://freenode.github.io/web-7.0/. It
-is also configured to reject commits that haven't had a build succeed in a
-branch or pull request; make one and ideally get someone else to confirm.
-
-Branches are cheap; use one per feature.
-
-Changes should be tested on both big and small screens.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644 (file)
index 0000000..528d23f
--- /dev/null
@@ -0,0 +1,9 @@
+## Contributing
+
+- Whenever possible, one commit per feature.
+- If feature/pull-request branches have only one developer, please regularly
+  rebase them onto master until they are merged in.
+- Don't merge branches with meaningless commit messages; always squash them
+  instead.
+- Wait for discussion of big changes. Your branches will still be here
+  tomorrow.
index 5843471571a81fff6c3d9ea97e05b349b5b753b3..583c34ea71c29712e226b1e5cb376cd3f0f29eeb 100644 (file)
--- a/README.md
+++ b/README.md
@@ -3,9 +3,45 @@
 A shiny replacement for http://freenode.net.
 
 
 A shiny replacement for http://freenode.net.
 
 
+## Building
+
+You'll need our node.js dependencies:
+
+```console
+$ npm install -g myth svgo
+```
+
+Then, assuming a Python 3.4 (or later) installation:
+
+```console
+$ python3 -m venv env
+$ . env/bin/activate
+$ pip install -r requirements.txt
+$ cms7
+```
+
+If everything went well, you should see a lot of log output, and `out/` will
+have the website in it.
+
+Because we generate the site statically, you'll need to re-run `cms7` each
+time you change something. If your editor likes compile commands that can run
+from any directory, you can also use `cms7 -c /path/to/config.yml`.
+
+
+## Contributing
+
+- Whenever possible, one commit per feature.
+- If feature/pull-request branches have only one developer, please regularly
+  rebase them onto master until they are merged in.
+- Don't merge branches with meaningless commit messages; always squash them
+  instead.
+- Wait for discussion of big changes. Your branches will still be here
+  tomorrow.
+
+
 ## Architecture / Orientation
 
 ## Architecture / Orientation
 
-The site is statically generated from
+The site is generated from
 [Markdown](https://daringfireball.net/projects/markdown/) sources and
 [Jinja2](http://jinja.pocoo.org/) templates, found in `content/` and
 `templates/` respectively. The Travis build deploys to GitHub Pages
 [Markdown](https://daringfireball.net/projects/markdown/) sources and
 [Jinja2](http://jinja.pocoo.org/) templates, found in `content/` and
 `templates/` respectively. The Travis build deploys to GitHub Pages