Skip to content

Commit 8cff8e7

Browse files
committed
🎨 moving documentation below contributors
1 parent 3234701 commit 8cff8e7

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

.ci/scripts/updateContributors.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/bin/bash
2-
2+
echo $(pwd)
3+
SCRIPT_DIR=$(pwd)
34
# Assign the filename
4-
README_TPL=".ci/templates/README.hbs"
5-
README_TPL_TEMP=".ci/templates/README.temp.hbs"
5+
README_TPL="$SCRIPT_DIR/.ci/templates/README.hbs"
6+
README_TPL_TEMP="$SCRIPT_DIR/.ci/templates/README.temp.hbs"
67
# Create temporary files
7-
CONTRIBUTORS_FILE=".ci/templates/contributors.temp.md"
8+
CONTRIBUTORS_FILE="$SCRIPT_DIR/.ci/templates/contributors.temp.md"
89
cp $README_TPL $README_TPL_TEMP
910
touch $CONTRIBUTORS_FILE
1011

1112
# Run contributor update to contributor temp file
12-
npx contributor-table --dirname "./" --readme $CONTRIBUTORS_FILE
13+
npx contributor-table --dirname "$SCRIPT_DIR" --readme $CONTRIBUTORS_FILE
1314

1415
# Add our emoji back to header
1516
sed -i "" s/"## Contributors"/"## 👥 Contributors"/ $CONTRIBUTORS_FILE
@@ -18,6 +19,8 @@ sed -i "" s/"## Contributors"/"## 👥 Contributors"/ $CONTRIBUTORS_FILE
1819
README_OUTPUT=$(<$README_TPL)
1920
CONTRIBUTOR_OUTPUT=$(<$CONTRIBUTORS_FILE)
2021
# Merge files replacing pointer in TPL file
22+
echo $README_OUTPUT
23+
echo $CONTRIBUTOR_OUTPUT
2124
echo "${README_OUTPUT//"{{Contributors}}"/$CONTRIBUTOR_OUTPUT}" >$README_TPL_TEMP
2225

2326
# Clean up contributor temp file

.ci/templates/README.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ Azure yaml pipeline files are provided in [`.ci/workflows`](./.ci/workflows).
6363
- [`azure-pipelines-docs.yml`](./.ci/workflows/azure-pipelines-docs.yml) -- Generates documentation, commits,and pushes back to current PR/branch
6464
- [`azure-pipelines-build-deploy.yml`](./.ci/workflows/azure-pipelines-build-deploy.yml) -- Runs Jest tests, generates a change based deploy.xml, updates manifest dependencies, and uses SuiteCloud CLI to deploy projects
6565
66-
## 📝 Documentation
67-
6866
{{CONTRIBUTORS}}
6967
68+
## 📝 Documentation
69+
7070
{{>main}}
7171
7272
Happy Coding! 🥳

0 commit comments

Comments
 (0)