Merge pull request #4291 from acemod/versionDocs

add version to frontmatter and display it in the wiki
This commit is contained in:
Glowbal 2016-08-27 10:23:52 +02:00 committed by GitHub
commit 34b86869d9
3 changed files with 39 additions and 1 deletions

View File

@ -11,7 +11,7 @@ ace:
version:
major: 3
minor: 6
patch: 0
patch: 2
build: 0
acex:

View File

@ -5,6 +5,39 @@ layout: compress
{% include _header.html %}
<main>
{% if page.version %}
<div class="row">
<div class="medium-8 small-12 columns">
<span>
{% if page.mod == 'ace' %}
{% if page.version.major > site.ace.version.major %}
<em>Will be added in ACE3 v{{page.version.major}}.{{page.version.minor}}.{{page.version.patch}}</em>
{% elsif page.version.major == site.ace.version.major and page.version.minor > site.ace.version.minor %}
<em>Will be added in ACE3 v{{page.version.major}}.{{page.version.minor}}.{{page.version.patch}}</em>
{% elsif page.version.major == site.ace.version.major and page.version.minor == site.ace.version.minor and page.version.patch > site.ace.version.patch %}
<em>Will be added in ACE3 v{{page.version.major}}.{{page.version.minor}}.{{page.version.patch}}</em>
{% else %}
<em>Added in ACE3 v{{page.version.major}}.{{page.version.minor}}.{{page.version.patch}}</em>
{% endif %}
{% elsif page.mod == 'acex' %}
{% if page.version.major > site.acex.version.major %}
<em>Will be added in ACEX v{{page.version.major}}.{{page.version.minor}}.{{page.version.patch}}</em>
{% elsif page.version.major == site.acex.version.major and page.version.minor > site.acex.version.minor %}
<em>Will be added in ACEX v{{page.version.major}}.{{page.version.minor}}.{{page.version.patch}}</em>
{% elsif page.version.major == site.acex.version.major and page.version.minor == site.acex.version.minor and page.version.patch > site.acex.version.patch %}
<em>Will be added in ACEX v{{page.version.major}}.{{page.version.minor}}.{{page.version.patch}}</em>
{% else %}
<em>Added in ACEX v{{page.version.major}}.{{page.version.minor}}.{{page.version.patch}}</em>
{% endif %}
{% endif %}
</span>
</div>
</div>
{% endif %}
<div class="row">
<aside class="medium-4 medium-push-8 small-12 columns">
<div class="row">

View File

@ -5,6 +5,11 @@ description: Precise system for throwing grenades and other throwable items.
group: feature
category: interaction
parent: wiki
mod: ace
version:
major: 3
minor: 7
patch: 0
---
## 1. Overview