Skip to content

Commit

Permalink
Release v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjb committed Sep 9, 2021
1 parent 4a1b577 commit 6cef66b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.1.0] - 2021-09-09

### Added

* Enable underlining on links to match default Bootstrap 5
Expand Down Expand Up @@ -233,6 +235,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
lists
* Use theme colours from microsite layout (fixes #10).

[3.1.0]: https://github.com/jcu/cookbook/releases/tag/v3.1.0
[3.0.0]: https://github.com/jcu/cookbook/releases/tag/v3.0.0
[2.0.0]: https://github.com/jcu/cookbook/releases/tag/v2.0.0
[2.0.0-alpha.13]: https://github.com/jcu/cookbook/releases/tag/v2.0.0-alpha.13
Expand Down
35 changes: 21 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ into your project:

```html
<!-- In the <head> of your project -->
<link rel="stylesheet" href="https://cdn.jcu.edu.au/cookbook/3.0/css/cookbook.min.css">
<link rel="stylesheet" href="https://cdn.jcu.edu.au/cookbook/3.0/css/fonts.min.css">
<link rel="stylesheet" href="https://cdn.jcu.edu.au/cookbook/3.1/css/cookbook.min.css">
<link rel="stylesheet" href="https://cdn.jcu.edu.au/cookbook/3.1/css/fonts.min.css">
```

```html
<!-- Before the closing </body> tag in your project -->
<script src="https://cdn.jcu.edu.au/cookbook/3.0/js/popper.min.js"></script>
<script src="https://cdn.jcu.edu.au/cookbook/3.0/js/bootstrap.min.js"></script>
<script src="https://cdn.jcu.edu.au/cookbook/3.1/js/popper.min.js"></script>
<script src="https://cdn.jcu.edu.au/cookbook/3.1/js/bootstrap.min.js"></script>
```

Refer to the official [User documentation](#user-content-user-documentation)
Expand All @@ -76,8 +76,8 @@ links above for how to build pages using Bootstap.
Images can be used from the CDN like so:

```html
<link rel="icon" href="https://cdn.jcu.edu.au/cookbook/3.0/img/favicon.ico" />
<img src="https://cdn.jcu.edu.au/cookbook/3.0/img/logos/jcu-logo-horizontal.svg" alt="James Cook University (JCU) Australia logo">
<link rel="icon" href="https://cdn.jcu.edu.au/cookbook/3.1/img/favicon.ico" />
<img src="https://cdn.jcu.edu.au/cookbook/3.1/img/logos/jcu-logo-horizontal.svg" alt="James Cook University (JCU) Australia logo">
```

Available resources and their corresponding paths can be found by referrring
Expand All @@ -92,7 +92,7 @@ following into your page or app as well:

```html
<!-- In the <head> of your project -->
<link rel="stylesheet" href="https://cdn.jcu.edu.au/cookbook/3.0/css/materialdesignicons.min.css">
<link rel="stylesheet" href="https://cdn.jcu.edu.au/cookbook/3.1/css/materialdesignicons.min.css">
```

You can now use icons by following the instructions at
Expand All @@ -107,8 +107,8 @@ Different versions of CookBook are available on the CDN depending on your
desired stability and level of control over the resources:

* `3` – always use the latest release under this major version; or
* `3.0` – always use the latest release under this minor version; or
* `3.0.0` – A specific version number; or
* `3.1` – always use the latest release under this minor version; or
* `3.1.0` – A specific version number; or
* `latest` *(Not Recommended)* – always use the latest release, including
major versions that may have backwards incompatible changes; or
* `master` *(Not Recommended)* - the most recent commit's build on the master
Expand Down Expand Up @@ -209,19 +209,26 @@ published accordingly online (coming shortly).
* `AWS_ACCESS_KEY_ID`: AWS Access Key
* `AWS_SECRET_ACCESS_KEY`: AWS Secret Access Key

1. Update `CHANGELOG.md` and CDN URLs inside `README.md` with the current date and released version
1. Given the types of changes that have occurred since the last release,
decide on the new version based upon [SemVer rules](https://semver.org).

1. Commit and create a release tag (e.g. v3.0.1)
1. With the new version number known, update the following:

* `CHANGELOG.md`: current release version, date and tag URL
* `README.md`: CDN URLs
* `src/scss/cookbook.scss`: version message

1. Commit and create a release tag (e.g. `v99.0.1`)

```sh
git commit CHANGELOG.md README.md -m "Release v3.0.1"
git tag v3.0.1
git commit CHANGELOG.md README.md -m "Release v99.0.1"
git tag v99.0.1
```

1. Update the working version number in the source code:

```sh
yarn release-version [current-version eg 3.0.1] [development-version eg 3.0.2]
yarn release-version [current-version eg 99.0.1] [development-version eg 99.0.2]
```

When using `yarn release-version`, ensure you omit any `v` prefix for
Expand Down
2 changes: 1 addition & 1 deletion src/scss/cookbook.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* JCU CookBook v3.0.0 (https://cookbook.jcu.io)
* JCU CookBook v3.1.0 (https://cookbook.jcu.io)
* Copyright 2017-2021 James Cook University
*/

Expand Down

0 comments on commit 6cef66b

Please sign in to comment.