Skip to content

Commit 6c6a99d

Browse files
author
Nicolai Parlog
committed
Generalize site building to accomodate new project
1 parent 927e85e commit 6c6a99d

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ defaults:
329329
share: true
330330
related: true
331331
- scope:
332-
path: "_docs/xp"
332+
path: "_docs/*"
333333
type: docs
334334
values:
335335
sidebar:
336-
nav: "docs-xp"
336+
nav: "docs"

_data/navigation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ main:
1212
url: https://github.com/junit-pioneer/junit-pioneer
1313

1414
# DOC MENUS
15-
# @xp:start
16-
docs-xp:
17-
# @xp:end
15+
16+
docs:
17+
# @xp:toc

_pages/docs.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ header: { overlay_image: assets/images/site/type-writer.jpg }
55
title: Documentation
66
description: Documentation of JUnit Pioneer's feature set
77
sidebar:
8-
nav: "docs-xp"
8+
nav: "docs"
99
---
1010

1111
Here's a list of all the features that you can expect from JUnit Pioneer.
1212
For some of them you need to be quite familiar with JUnit 5, so make sure to read [its user guide](https://junit.org/junit5/docs/current/user-guide/) or [this article series](https://blog.codefx.org/libraries/junit-5-basics/).
1313

1414
<dl>
1515
{% for item in site.docs %}
16-
<dt><a href="{{ item.url }}">{{ item.title }}</a></dt>
17-
<dd>{{ item.description }}</dd>
16+
{% if item.path contains '/xp/' %}
17+
<dt><a href="{{ item.url }}">{{ item.title }}</a></dt>
18+
<dd>{{ item.description }}</dd>
19+
{% endif %}
1820
{% endfor %}
1921
</dl>
2022

_pages/home.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ title: JUnit Pioneer
99
excerpt: @xp:excerpt
1010
feature_row:
1111
- image_path: /assets/images/site/card-pioneer.jpg
12-
alt: "project"
13-
title: "The Project"
14-
excerpt: "More about the project..."
12+
alt: "extensions"
13+
title: "JUnit Extensions"
14+
excerpt: "More about extensions..."
1515
url: "/junit-pioneer/"
1616
btn_label: "Explore Pioneer"
1717
- image_path: /assets/images/site/card-docs.jpg

0 commit comments

Comments
 (0)