-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
.
committed
Oct 30, 2024
1 parent
21d6671
commit f1c761d
Showing
2 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
#!/bin/bash | ||
#################################################################### | ||
# PROJECT: Macro Core Docs Build # | ||
# To execute, use the npm command (npm run docs) # | ||
# PROJECT: SASjs Core Docs Build | ||
# To execute, use the npm command (npm run docs) | ||
# Target repo will have github action to create sitemap | ||
# https://github.com/marketplace/actions/generate-sitemap | ||
#################################################################### | ||
|
||
# refresh github pages site | ||
rm -rf sasjsbuild/docsite | ||
git clone [email protected]:sasjs/core.github.io.git sasjsbuild/docsite | ||
rm -rf sasjsbuild/docsite/* | ||
rm -rf sasjsbuild/docsite/*.html | ||
rm -rf sasjsbuild/docsite/*.js | ||
rm -rf sasjsbuild/docsite/*.png | ||
rm -rf sasjsbuild/docsite/*.dot | ||
rm -rf sasjsbuild/docsite/*.css | ||
rm -rf sasjsbuild/docsite/*.svg | ||
rm -rf search | ||
mv sasjsbuild/docs/* sasjsbuild/docsite/ | ||
cd sasjsbuild/docsite/ | ||
echo 'core.sasjs.io' > CNAME | ||
git add . | ||
git commit -m "build.sh build on $(date +%F:%H:%M:%S)" | ||
git push | ||
npx sitemap-generator-cli https://core.sasjs.io | ||
git add . | ||
git commit -m "adding sitemap" | ||
git push | ||
|
||
echo "check it out: https://sasjs.github.io/core.github.io/files.html" |