Skip to content

Commit

Permalink
Add playbook changer script
Browse files Browse the repository at this point in the history
  • Loading branch information
andreslucena committed Jul 10, 2023
1 parent e3d2e5f commit e162b68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/playbook-changer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/env node

const scriptName = process.argv[1];
const environment = process.argv[2];

function helpMessage () {
console.log(`${scriptName} - Antora playbook changer script for Decidim documentation
Changes the playbook accordingly to its environment`);
console.log(process.env);
}

helpMessage();
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "decidim-documentation",
"private": true,
"scripts": {
"prebuild": "./bin/playbook-changer.js",
"build": "antora antora-playbook.yml $@",
"test": "./bin/test"
},
Expand Down

0 comments on commit e162b68

Please sign in to comment.