Skip to content

jobrunr/website

Repository files navigation

This is the website for JobRunr.

If you see a typo, do not hesitate to create a pull request.

How to run locally

Prerequisites

  1. Install hugo: https://gohugo.io/installation/
  2. Install go: https://go.dev/dl/
  3. Install Node.js: https://nodejs.org/en/download (or use nvm https://github.com/nvm-sh/nvm)

Project setup

Run the following to setup the project:

npm run project-setup

Run the project locally

  1. Install required modules
npm i
  1. Start local server
hugo server -D

-D allows to see draft articles

  1. Build with pagefind (you need this at least once for search to work locally)
npx -y pagefind --site public

Theme

This project uses the hugo fortify theme. You can find its documentation at https://docs.gethugothemes.com/fortify/.

JobRunr Extensions

We've extended the fortify theme with a few shortcodes of our own.

Sidebar menu

This is currently used on the documentation pages. It supports up to 3 levels of nesting.

Usage

The menu type in the front-matter needs to be sidebar.

Example:

menu: 
  sidebar:
    identifier: faq
    name: FAQ
    weight: 95

Code tabs

Display code examples in multiple formats with synchronized tabs across the page.

Features
  • Global sync: Clicking one tab activates all matching tabs on the page
  • Persistence: Remembers user preferences per category using localStorage
  • Keyboard navigation: Arrow keys, Home, and End for accessibility
  • ARIA compliant: Full accessibility support with proper roles and keyboard interaction
Usage

Basic example with auto-generated tab types:

{{< codetabs category="dependency" >}}
{{< codetab label="Maven" >}}
```xml
<dependency>
    <groupId>org.jobrunr</groupId>
    <artifactId>jobrunr</artifactId>
    <version>${jobrunr.version}</version>
</dependency>
```
{{< /codetab >}}

{{< codetab label="Gradle" >}}
```groovy
implementation 'org.jobrunr:jobrunr:${jobrunr.version}'
```
{{< /codetab >}}
{{< /codetabs >}}
Parameters

codetabs shortcode:

  • category (optional): Category for syncing tabs across page. If omitted, auto-generates from sorted tab types. Must be one of the allowed categories in params.codetabs.allowedCategories. Specifying the category is highly recommended.
  • label (optional): ARIA label for the tablist. Defaults to "Code examples".

codetab shortcode:

  • label (required): Display text for the tab button.
  • type (optional): Unique identifier for the tab. Auto-generated from label using urlize if not provided.
Best Practices
  • Use explicit category for common patterns (dependency, framework, etc.) to ensure tabs sync correctly
  • Each codetab must have a unique label within its parent codetabs
  • Minimum 2 tabs required per codetabs block
  • Tab content supports full Markdown formatting

Alerts

Highlight important information using GitHub-style alert syntax.

Usage
> [!NOTE]
> Useful information that users should know.

> [!TIP]
> Helpful advice for better results.

> [!IMPORTANT]
> Key information users need to know.

> [!WARNING]
> Urgent info requiring attention.

> [!CAUTION]
> Potential risks or destructive actions.

> [!PRO]
> JobRunr Pro features.
Custom Titles
> [!NOTE] Version Requirement
> All servers must run the same code version.
Callouts
> [!TIP] Pro Tip
Available Types
  • NOTE - General information
  • TIP - Helpful suggestions
  • IMPORTANT - Critical information
  • WARNING - Caution required
  • CAUTION - Dangerous operations
  • PRO - Premium features

About

The website for JobRunr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 19