Skip to content

Commit 3fe2fc8

Browse files
authored
Change docs format from HTML to Markdown (hamcrest#225)
This changes the documentation format from HTML to Markdown, and using Jekyll to generate static HTML from the Markdown. For more details on how this works, see the GitHub reference https://help.github.com/articles/using-jekyll-as-a-static-site-generator-with-github-pages/
1 parent 5232a00 commit 3fe2fc8

File tree

5 files changed

+92
-95
lines changed

5 files changed

+92
-95
lines changed

docs/_includes/head.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<head>
2+
<meta charset="UTF-8">
3+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
4+
<meta name="description" content="Hamcrest"/>
5+
<meta name="keywords" content="hamcrest java matchers junit testing"/>
6+
<meta name="robots" content="index, follow"/>
7+
<meta name="date" content="2018-11-01"/>
8+
<title>{{ page.title }}</title>
9+
<link href="css/hamcrest.css" rel="stylesheet" type="text/css">
10+
</head>

docs/_layouts/default.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
{% include head.html %}
5+
</head>
6+
<body>
7+
<div class="content">
8+
{{ content }}
9+
</div>
10+
<footer>
11+
<span style="float:right;">
12+
Released under the <a href="http://opensource.org/licenses/BSD-3-Clause">BSD License</a>.
13+
</span>
14+
Copyright 2012-2018 <a href="http://hamcrest.org">hamcrest.org</a>
15+
</footer>
16+
<a href="http://github.com/hamcrest/JavaHamcrest"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>
17+
</body>
18+
</html>

docs/css/hamcrest.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
@import url(https://fonts.googleapis.com/css?family=Cabin+Sketch);
2+
@import url(https://fonts.googleapis.com/css?family=Alegreya);
3+
body {
4+
font-family: "Alegreya";
5+
margin: 40px auto;
6+
width: 700px;
7+
}
8+
.content {
9+
position: relative;
10+
}
11+
footer {
12+
padding: 2em 0 1em 0;
13+
font-size: 12px;
14+
}
15+
h1 {
16+
font-size: 80px;
17+
margin-top: .3em;
18+
margin-bottom: 0;
19+
}
20+
h1 + h2 {
21+
margin-top: 0;
22+
}
23+
h2 {
24+
font-weight: 400;
25+
font-size: 20px;
26+
}
27+
h1, h2 {
28+
font-family: "Cabin Sketch";
29+
text-rendering: optimizeLegibility;
30+
}
31+
.content > p {
32+
line-height: 1.5em;
33+
text-rendering: optimizeLegibility;
34+
}
35+
.logo {
36+
height: 60px;
37+
padding-left: 0px;
38+
padding-right: 40px;
39+
}

docs/index.html

Lines changed: 0 additions & 95 deletions
This file was deleted.

docs/index.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Java Hamcrest
3+
layout: default
4+
---
5+
# ![Hamcrest Surfer](http://hamcrest.org/images/logo.jpg){:.logo}Java Hamcrest
6+
7+
## Matchers that can be combined to create flexible expressions of intent
8+
9+
### Documentation
10+
11+
* [Getting Started](https://github.com/hamcrest/JavaHamcrest/wiki/The-Hamcrest-Tutorial)
12+
* [API Documentation (JavaDoc)](javadoc/)
13+
14+
### Downloads
15+
16+
* [Distributables and Dependency Configuration](https://github.com/hamcrest/JavaHamcrest/wiki/Hamcrest-Distributables)
17+
* [Source Repository](http://github.com/hamcrest/JavaHamcrest)
18+
* [Project License](http://opensource.org/licenses/BSD-3-Clause)
19+
* [Extensions](https://github.com/hamcrest/JavaHamcrest/wiki/Related-Projects)
20+
21+
### User Support
22+
23+
* [Hamcrest Java Users Mailing List](https://groups.google.com/forum/?fromgroups#!forum/hamcrest-java)
24+
* [Hamcrest Developer Mailing List](https://groups.google.com/forum/?fromgroups#!forum/hamcrest-dev)
25+
* [Issue Tracker](https://github.com/hamcrest/JavaHamcrest/issues)

0 commit comments

Comments
 (0)