Skip to content
Merged
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
25 changes: 16 additions & 9 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,37 @@ These instructions will get you a copy of the RESTEasy website up and running on

### Installation

Follow these instructions from [github-pages](https://help.github.com/en/github/working-with-github-pages/testing-your-github-pages-site-locally-with-jekyll)
to start local server and test your change before submit
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:

```bash
$ mvn package quarkus:dev
```

The site will be available at [http://localhost:8080](http://localhost:8080).

## Writing blog

Add a blog entry:
- create blog entry under [_posts](https://github.com/jimma/resteasy-website/tree/master/_posts)
- create blog entry under [content/posts](https://github.com/resteasy/resteasy.dev/tree/master/content/posts)
and name the file with `yyyy-mm-dd-title.md'`
- 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.
```
- 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.

```
---
layout: post
title: "Blog Title"
subtitle: ""
date: 2019-10-30 08:07:00
date: 2019-10-30 08:07:00
author: "Java Robot"
---

Blog content line 1
Blog Content line 2
```

## Release

To announce a release you may need update these content:
To announce a release, you will need to update these files:

- Add news update in [index.md](https://github.com/jimma/resteasy-website/blob/master/index.md)
- 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)
- 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)
- 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)
1 change: 0 additions & 1 deletion content/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
layout: main
title: RESTEasy
---
22 changes: 0 additions & 22 deletions src/main/java/org/resteasy/site/Extensions.java
Original file line number Diff line number Diff line change
@@ -1,35 +1,13 @@
package org.resteasy.site;

import io.quarkiverse.qute.web.markdown.runtime.MdConverter;
import io.quarkus.arc.Arc;
import io.quarkus.qute.TemplateExtension;

import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

@TemplateExtension
public class Extensions {

public static String format(Date date, String format) {
return new SimpleDateFormat(format).format(date);
}

public static String wordLimit(String text, int limit) {
String[] words = text.split("\\s+");
if (words.length < limit) {
return text;
}
return String.join(" ", Arrays.copyOfRange(words, 0, limit)) + "...";
}

public static String join(List<?> list, String separator) {
return String.join(separator, list.stream().map(Object::toString).toList());
}

public static String markdown(String rawText) {
MdConverter converter = Arc.container().beanInstanceSupplier(MdConverter.class).get().get();
return converter.html(rawText);
}
}
3 changes: 3 additions & 0 deletions templates/layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
title: RESTEasy
---
<!DOCTYPE html>
<html>
{#include partials/head.html /}
Expand Down
3 changes: 3 additions & 0 deletions templates/layouts/main.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
title: RESTEasy
---
<!DOCTYPE html>
<html>
{#include partials/head.html /}
Expand Down
12 changes: 6 additions & 6 deletions templates/partials/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ <h3>RESTEasy</h3>
<div id="proj_checklist"><h3>Features</h3>
<ul>
<li>Implements Jakarta RESTful Web Services (JAX-RS)</li>
<li>Portable to Tomcat and many other app-server</li>
<li>Embeddedable server implementation for JUnit testing</li>
<li>Portable to Tomcat and many other application servers</li>
<li>Embeddable server implementation for JUnit testing</li>
<li>Enhanced client framework</li>
<li>Client &quot;Browser&quot; cache. Supports HTTP 1.1 caching semantics including
<li>Client &quot;Browser&quot; cache. Supports HTTP 1.1 caching semantics, including
cache revalidation
</li>
<li>Server in-memory cache. Local response cache. Automatically handles ETag
generation and cache revalidation
</li>
<li>Rich set of providers for: XML, JSON, YAML, Fastinfoset, Multipart, XOP, Atom,
<li>Rich set of providers for XML, JSON, YAML, Fastinfoset, Multipart, XOP, Atom,
etc.
</li>
<li>JAXB marshalling into XML, JSON, Jackson, Fastinfoset, and Atom as well as
Expand All @@ -38,9 +38,9 @@ <h3>RESTEasy</h3>
<li>Reactive support</li>
<li>Asynchronous Job Service.</li>
<li>Rich interceptor model.</li>
<li>OAuth2 and Distributed&nbsp;SSO with JBoss AS7</li>
<li>OAuth2 and Distributed SSO with JBoss AS7</li>
<li>Digital Signature and encryption support with S/MIME and DOSETA</li>
<li>EJB, Seam, Guice, Spring, Spring MVC and Spring&nbsp;Boot integration</li>
<li>EJB, Seam, Guice, Spring, Spring MVC and Spring Boot integration</li>
</ul>
</div>
{#insert /}
Expand Down