Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign website #68

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
# macOS
.DS_Store

# Editor backup files
*~

# rst2html outputs
*.html

# Markdoc outputs
.html
static/index.html
6 changes: 0 additions & 6 deletions .markdoc.yaml

This file was deleted.

73 changes: 0 additions & 73 deletions .templates/document.html

This file was deleted.

29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: minimal

services:
- docker

before_install:
- sudo apt-get update -qq
- wget https://github.com/jgm/pandoc/releases/download/2.7.2/pandoc-2.7.2-1-amd64.deb && sudo dpkg -i pandoc-2.7.2-1-amd64.deb

install:
- sudo apt-get install -y python-pip
- sudo pip install codespell

script:
- ./build.sh
- codespell -q4 *.md
- docker run -ti --rm -v $PWD:/mnt:ro dkhamsing/awesome_bot --allow-dupe --allow-redirect --skip-save-results `find . -name "*.md"`

before_deploy:
- cp UNLICENSE static
- cp WAIVER static

deploy:
provider: pages
local_dir: static
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
on:
branch: master
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Contribution guide

## How to
If you'd like to modify the contents of the page, you can edit `README.md` directly, if you'd rather change the presentation, modify `static/pandoc.css`.

After applying your modifications, you can build the website following the instructions in the **Build** section.

## Build
1. [Install pandoc](https://pandoc.org/installing.html)
2. Run `./build.sh`
1 change: 0 additions & 1 deletion README

This file was deleted.

220 changes: 215 additions & 5 deletions README.md

Large diffs are not rendered by default.

33 changes: 0 additions & 33 deletions Rakefile

This file was deleted.

2 changes: 1 addition & 1 deletion static/UNLICENSE → UNLICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org/>
For more information, please refer to <https://unlicense.org>
File renamed without changes.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
set -ev
pandoc -t html --css "pandoc.css" -s -M title="Unlicense Yourself: Set Your Code Free" -V title:"" README.md -o static/index.html -V header-includes:"<link rel='shortcut icon' href='favicon.png' />" --fail-if-warnings
1 change: 1 addition & 0 deletions static/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unlicense.dev
Loading