Skip to content

Commit 8dd23da

Browse files
authored
Merge pull request #15 from jasondlee/cleanup
Clean up
2 parents 43d1bc1 + 4a557f1 commit 8dd23da

File tree

6 files changed

+28
-38
lines changed

6 files changed

+28
-38
lines changed

README.MD

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,37 @@ These instructions will get you a copy of the RESTEasy website up and running on
66

77
### Installation
88

9-
Follow these instructions from [github-pages](https://help.github.com/en/github/working-with-github-pages/testing-your-github-pages-site-locally-with-jekyll)
10-
to start local server and test your change before submit
9+
The site is built using [Roq](https://iamroq.com/) and [GitHub Pages](https://pages.github.com/). To build and run the site locally, all you need is a JDK and Maven:
10+
11+
```bash
12+
$ mvn package quarkus:dev
13+
```
14+
15+
The site will be available at [http://localhost:8080](http://localhost:8080).
1116

1217
## Writing blog
1318

1419
Add a blog entry:
15-
- create blog entry under [_posts](https://github.com/jimma/resteasy-website/tree/master/_posts)
20+
- create blog entry under [content/posts](https://github.com/resteasy/resteasy.dev/tree/master/content/posts)
1621
and name the file with `yyyy-mm-dd-title.md'`
17-
- add these layout and title settings before blog content in your blog entry file. There is an [example](https://github.com/jimma/resteasy-website/blob/master/_posts/2019-10-08-looking-to-the-future.md) showing what you need add in a blog file.
18-
```
22+
- add these layout and title settings before blog content in your blog entry file. Here is an [example](https://github.com/resteasy/resteasy.dev/blob/master/content/posts/2025-03-19-red-hat-ibm.md) showing what you need to add at the top of the file.
1923

24+
```
2025
---
2126
layout: post
2227
title: "Blog Title"
2328
subtitle: ""
24-
date: 2019-10-30 08:07:00
29+
date: 2019-10-30 08:07:00
2530
author: "Java Robot"
2631
---
32+
2733
Blog content line 1
2834
Blog Content line 2
2935
```
36+
3037
## Release
3138

32-
To announce a release you may need update these content:
39+
To announce a release, you will need to update these files:
3340

34-
- Add news update in [index.md](https://github.com/jimma/resteasy-website/blob/master/index.md)
35-
- Link the download in [downloads.html](https://github.com/jimma/resteasy-website/blob/master/downloads.html) and documentation in [docs.html](https://github.com/jimma/resteasy-website/blob/master/docs.html)
41+
- Create a new blog post announcing the release. The post will automatically show up in [index.md](https://github.com/resteasy/resteasy.dev/blob/master/content/index.md)
42+
- Add the release information to [data/releases.yaml](https://github.com/resteasy/resteasy.dev/blob/main/data/releases.yaml). An entry for the release will be automatically generated in [downloads.html](https://github.com/resteasy/resteasy.dev/blob/master/content/downloads.md) and [docs.html](https://github.com/resteasy/resteasy.dev/blob/master/content/docs.html)

content/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
---
22
layout: main
3-
title: RESTEasy
43
---
Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,13 @@
11
package org.resteasy.site;
22

3-
import io.quarkiverse.qute.web.markdown.runtime.MdConverter;
4-
import io.quarkus.arc.Arc;
53
import io.quarkus.qute.TemplateExtension;
64

75
import java.text.SimpleDateFormat;
8-
import java.util.Arrays;
96
import java.util.Date;
10-
import java.util.List;
117

128
@TemplateExtension
139
public class Extensions {
14-
1510
public static String format(Date date, String format) {
1611
return new SimpleDateFormat(format).format(date);
1712
}
18-
19-
public static String wordLimit(String text, int limit) {
20-
String[] words = text.split("\\s+");
21-
if (words.length < limit) {
22-
return text;
23-
}
24-
return String.join(" ", Arrays.copyOfRange(words, 0, limit)) + "...";
25-
}
26-
27-
public static String join(List<?> list, String separator) {
28-
return String.join(separator, list.stream().map(Object::toString).toList());
29-
}
30-
31-
public static String markdown(String rawText) {
32-
MdConverter converter = Arc.container().beanInstanceSupplier(MdConverter.class).get().get();
33-
return converter.html(rawText);
34-
}
3513
}

templates/layouts/default.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
title: RESTEasy
3+
---
14
<!DOCTYPE html>
25
<html>
36
{#include partials/head.html /}

templates/layouts/main.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
title: RESTEasy
3+
---
14
<!DOCTYPE html>
25
<html>
36
{#include partials/head.html /}

templates/partials/main.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ <h3>RESTEasy</h3>
1818
<div id="proj_checklist"><h3>Features</h3>
1919
<ul>
2020
<li>Implements Jakarta RESTful Web Services (JAX-RS)</li>
21-
<li>Portable to Tomcat and many other app-server</li>
22-
<li>Embeddedable server implementation for JUnit testing</li>
21+
<li>Portable to Tomcat and many other application servers</li>
22+
<li>Embeddable server implementation for JUnit testing</li>
2323
<li>Enhanced client framework</li>
24-
<li>Client &quot;Browser&quot; cache. Supports HTTP 1.1 caching semantics including
24+
<li>Client &quot;Browser&quot; cache. Supports HTTP 1.1 caching semantics, including
2525
cache revalidation
2626
</li>
2727
<li>Server in-memory cache. Local response cache. Automatically handles ETag
2828
generation and cache revalidation
2929
</li>
30-
<li>Rich set of providers for: XML, JSON, YAML, Fastinfoset, Multipart, XOP, Atom,
30+
<li>Rich set of providers for XML, JSON, YAML, Fastinfoset, Multipart, XOP, Atom,
3131
etc.
3232
</li>
3333
<li>JAXB marshalling into XML, JSON, Jackson, Fastinfoset, and Atom as well as
@@ -38,9 +38,9 @@ <h3>RESTEasy</h3>
3838
<li>Reactive support</li>
3939
<li>Asynchronous Job Service.</li>
4040
<li>Rich interceptor model.</li>
41-
<li>OAuth2 and Distributed&nbsp;SSO with JBoss AS7</li>
41+
<li>OAuth2 and Distributed SSO with JBoss AS7</li>
4242
<li>Digital Signature and encryption support with S/MIME and DOSETA</li>
43-
<li>EJB, Seam, Guice, Spring, Spring MVC and Spring&nbsp;Boot integration</li>
43+
<li>EJB, Seam, Guice, Spring, Spring MVC and Spring Boot integration</li>
4444
</ul>
4545
</div>
4646
{#insert /}

0 commit comments

Comments
 (0)