Skip to content

Commit

Permalink
Merge pull request #32 from kingthorin/deploy_copies
Browse files Browse the repository at this point in the history
Fix v41 and stable links and update downloads tab
  • Loading branch information
ThunderSon authored Apr 21, 2020
2 parents 1cf45af + 241d727 commit d099a28
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
12 changes: 7 additions & 5 deletions _includes/banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
</div>
{% endif %}

{% if page.url contains "/stable/" %}
{% if page.url contains "/stable/" or page.url contains site.stable_version %}
<div style="background-color:#9ce37d;color:#344d2a;padding:8px 20px 8px;">
You're viewing the current stable version of the Web Security Testing Guide project.
</div>
{% endif %}

{% if page.url contains "/v" %}
<div style="background-color:#f7ee7f;color:#666334;padding:8px 20px 8px;">
You're viewing a past version of the Web Security Testing Guide project. For the latest stable version, <a href="/stable">visit /stable</a>.
</div>
{% unless page.url contains site.stable_version %}
<div style="background-color:#f7ee7f;color:#666334;padding:8px 20px 8px;">
You're viewing a past version of the Web Security Testing Guide project. For the latest stable version, <a href="{{ site.base_url }}/stable/">visit /stable</a>.
</div>
{% endunless %}
{% endif %}
</div>
</div>
8 changes: 6 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ Any contributions to the guide itself should be made via the [guide's project re

## Stable

View the always-current stable version at [/stable](/www-project-web-security-testing-guide/stable).
View the always-current stable version at [stable](stable/).

## Latest

We are currently developing release version 5.0.

You can [read the latest development documents in our official GitHub repository](https://github.com/OWASP/wstg/tree/master/document) or view the bleeding-edge content at [/latest](/www-project-web-security-testing-guide/latest).
You can [read the latest development documents in our official GitHub repository](https://github.com/OWASP/wstg/tree/master/document) or view the bleeding-edge content at [latest](latest/).

## Versioned Releases

Only [v4.1](v41/) is currently available as a web-hosted release. Previous releases are available as PDFs on the **Release Versions** tab.
2 changes: 1 addition & 1 deletion info.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

### Project Links

* [Latest](/www-project-web-security-testing-guide/latest/)
* [Latest](latest/)
* [GitHub Repository](https://github.com/OWASP/wstg)

### Getting Involved
Expand Down
8 changes: 5 additions & 3 deletions tab_downloads.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ tags: wstg

## Stable

View the always-current stable version at [/stable](/www-project-web-security-testing-guide/stable).
View the always-current stable version at [stable](stable/).

## [Unreleased 4.1] - 2020
## [Unreleased 4.2]

Version 4.1 serves as a post-migration stable version under the new GitHub repository workflow.
## [Version 4.1] - 2020-04-21

[Version 4.1](v41/) serves as a post-migration stable version under the new GitHub repository workflow.

## [Version 4.0] - 2014-09-17

Expand Down

0 comments on commit d099a28

Please sign in to comment.