Skip to content

Commit

Permalink
Merge pull request #8 from sunilarjun/update-product-docs
Browse files Browse the repository at this point in the history
Updating Makefile/lunr Extension
  • Loading branch information
sunilarjun authored Sep 9, 2024
2 parents 11d0f46 + 1564de9 commit 04a9e67
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 27 deletions.
30 changes: 9 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,19 @@ local:
turtles-local-playbook.yml \
2>&1 | tee tmp/local-build.log 2>&1

# Below configuration is not set up for Turtles Product Documentation Repository
# netlify:
# mkdir -p tmp
# npm install && npm update
# npx antora --version
# npx antora --stacktrace --log-format=pretty \
# turtles-netlify-playbook.yml \
# 2>&1 | tee tmp/netlify-build.log 2>&1
remote:
mkdir -p tmp
npm install && npm update
npx antora --version
npx antora --stacktrace --log-format=pretty \
playbook-remote.yml \
2>&1 | tee tmp/remote-build.log 2>&1

clean:
rm -rf build

environment:
npm install && npm update

after_clone: environment
git branch --remotes
@git branch --remotes \
| sed 's/remotes\///' \
| grep -Ev 'HEAD|main' \
| while read b; do \
v=$$(echo $$b | sed 's/origin\///'); \
git checkout $$b; \
git switch -c $$v; \
git switch main; \
done > /dev/null 2>&1
@echo Local branches created
git branch
preview:
npx http-server build/site -c-1
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 04a9e67

Please sign in to comment.