Thanks for supporting Ethereum Classic!
This app is written in gatsby (React & ES6) and generates static HTML to be served by github pages.
Please checkout the source
branch for making updates
Do not directly modify master
branch; it is for serving the compiled static html only
- Create a github.com account
- Visit https://github.com/ethereumclassic/ethereumclassic.github.io
- Click on "Fork" button in upper right
If git
is not installed on your computer please follow this guide.
To set up your name and email in Git:
git config --global user.email "<your email goes here>"
git config --global user.name "<your name goes here>"
To upload a new Markdown file:
git clone https://github.com/<your Github username>/ethereumclassic.github.io.git
cd ethereumclassic.github.io
git checkout source
Add MD file under pages/blog.
Rename your MD file to have YYYY-MM-DD-{your-title-goes-here}.md
format.
Add correct header to MD file as follows:
---
title: "<your title goes here>"
date: <date, formatted as YYYY-MM-DD>
author: <your name goes here>
---
When you are done making changes, commit them to git.
git add <your MD file goes here>
git commit -m "Added a blog post about {your topic}"
git push origin source
To create a pull request to notify ETC website maintainers of your file:
- Visit https://github.com//ethereumclassic.github.io.git
- Click on "Compare & pull request" in upper right
- Add description to form
- Click the "Create pull request" in middle right
- Blog Posts: Just add a new markdown file in
/pages/blog
similar to this - Press Articles: Add a new item to the top of the list in
/contents/press.yaml
- Fork Timeline: As time goes by, drama unfolds, and the timeline needs to be updated. This can be edited in
components/home/fork-timeline.js
. Get icon refs from font awesome - Advanced Editing: The whole app is written in react, you can modify the layout of the landing page and drill down into components from
/pages/index.js
- Future Editing: Soon we'll have multiple pages, watch this space for more info
- Fork this repo into your own Github account
- Clone your fork locally, checkout
source
- Make sure you have NodeJS installed
npm install
npm start
Building manually isn't required, but you may wish to do so before pushing to ensure everything looks as you'd expect.
Run npm run build
, and open up /public/index.html
with a static web server.
Simply push changes to the source
branch and Travis CI will handle the rest rest.
You can also manually deploy (not recommended) by pushing to the master
branch:
npm run build-prefix-links
- Copy contents of
/public
(move it) - Checkout
master
- Replace contents of
master
with/public
- Push
Everything that's not already copyrighted is licensed under CC0 (for graphics) and [TBD ULTRA-OPEN PUBLIC DOMAIN LICENSE].