diff --git a/docusaurus.config.js b/docusaurus.config.js index 66258c8c..a4d492c3 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -4,6 +4,9 @@ const lightCodeTheme = require('prism-react-renderer/themes/github'); const darkCodeTheme = require('prism-react-renderer/themes/dracula'); +// Load our package so we can show metadata like the version. +const package = require('./package.json'); + const title = 'Effective Shell'; const organizationName = 'dwmkerr'; const projectName = 'effective-shell'; @@ -115,7 +118,7 @@ const config = { ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} Dave Kerr. Website built with Docusaurus.`, + copyright: `Effective Shell v${package.version}. Copyright © ${new Date().getFullYear()} Dave Kerr. Website built with Docusaurus.`, }, prism: { theme: lightCodeTheme, diff --git a/samples/.version.txt b/samples/.version.txt deleted file mode 100644 index 39e898a4..00000000 --- a/samples/.version.txt +++ /dev/null @@ -1 +0,0 @@ -0.7.1 diff --git a/scripts/build-samples.sh b/scripts/build-samples.sh index 1ddf82d9..5f32c064 100755 --- a/scripts/build-samples.sh +++ b/scripts/build-samples.sh @@ -5,9 +5,8 @@ # This file builds the 'samples' folder. Means it will: # # 1. Copy all of the files from 'samples' -# 2. Add the .version.txt file to the samples -# 3. Clone the sample repositories, which are hosted at github.com/effective-shell -# 4. Create a zip archive and tar.gz archive +# 2. Clone the sample repositories, which are hosted at github.com/effective-shell +# 3. Create a zip archive and tar.gz archive # # The samples will be created in the './artifacts' folder.