Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ $(WEBSITE_OPERATOR_UI): $(GO_FILES)

.PHONY: frontend
frontend:
cd ui/frontend && pnpm install && pnpm run build
cd ui/frontend && pnpm install --frozen-lockfile && pnpm run build

.PHONY: setup
setup: setup-envtest
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ spec:
git clone $REPO_URL
cd $REPO_NAME
git checkout $REVISION
npm install
npm run build
pnpm install --frozen-lockfile
pnpm run build
rm -rf $OUTPUT/*
cp -r _book/* $OUTPUT/
afterBuildScript:
Expand Down Expand Up @@ -96,8 +96,8 @@ rm -rf $REPO_NAME
git clone $REPO_URL
cd $REPO_NAME
git checkout $REVISION
npm install
npm run build
pnpm install --frozen-lockfile
pnpm run build
rm -rf $OUTPUT/*
cp -r _book/* $OUTPUT/
```
Expand Down
5 changes: 2 additions & 3 deletions config/samples/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ data:
git clone $REPO_URL
cd $REPO_NAME
git checkout $REVISION

npm install
npm run build
pnpm install --frozen-lockfile
pnpm run build

rm -rf $OUTPUT/*
cp -r _book/* $OUTPUT/
Expand Down
4 changes: 2 additions & 2 deletions config/samples/docusaurus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ spec:
cd $REPO_NAME
git checkout $REVISION

npm install
npm run build
pnpm install --frozen-lockfile
pnpm run build

rm -rf $OUTPUT/*
cp -r build/* $OUTPUT/
Expand Down
8 changes: 4 additions & 4 deletions controllers/website_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ cd $HOME
git clone $REPO_URL
cd $REPO_NAME
git checkout $REVISION
npm install && npm run build
pnpm install --frozen-lockfile && pnpm run build
cp -r _book/* $OUTPUT/
`
bsCm := &corev1.ConfigMap{}
Expand Down Expand Up @@ -553,7 +553,7 @@ cd $HOME
git clone $REPO_URL
cd $REPO_NAME
git checkout $REVISION
npm install && npm run build
pnpm install --frozen-lockfile && pnpm run build
cp -r _book/* $OUTPUT/
`
b.website.Spec.BuildScript = websitev1beta1.DataSource{
Expand All @@ -572,8 +572,8 @@ func (b *websiteBuilder) withAfterBuildScript() *websiteBuilder {
git checkout $REVISION
sed -i -e "/host/c\ \"host\": \"http://${RESOURCE_NAME}.${RESOURCE_NAMESPACE}.example.com/es\"," book.js
sed -i -e "/index/c\ \"index\": \"${RESOURCE_NAME}-${REVISION}\"," book.js
npm install
npm run build
pnpm install --frozen-lockfile
pnpm run build
curl -X DELETE ${ELASTIC_HOST}/${RESOURCE_NAME}-${REVISION}
curl -X PUT ${ELASTIC_HOST}/${RESOURCE_NAME}-${REVISION} -H 'Content-Type: application/json' -d @mappings.json
curl -X POST ${ELASTIC_HOST}/${RESOURCE_NAME}-${REVISION}/_bulk -H 'Content-Type: application/json' --data-binary @_book/search_index.json
Expand Down
4 changes: 2 additions & 2 deletions e2e/manifests/manager/after-build-honkit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ git clone $REPO_URL
cd $REPO_NAME
git checkout $REVISION

npm install
npm run build
pnpm install --frozen-lockfile
pnpm run build
4 changes: 2 additions & 2 deletions e2e/manifests/manager/build-honkit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ git clone $REPO_URL
cd $REPO_NAME
git checkout $REVISION

npm install
npm run build
pnpm install --frozen-lockfile
pnpm run build

rm -rf $OUTPUT/*
cp -r _book/* $OUTPUT/
4 changes: 2 additions & 2 deletions e2e/manifests/manager/create-honkit-es-index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ git checkout $REVISION
sed -i -e "/host/c\ \"host\": \"http://${RESOURCE_NAME}.${RESOURCE_NAMESPACE}.example.com/es\"," book.js
sed -i -e "/index/c\ \"index\": \"${RESOURCE_NAME}-${REVISION}\"," book.js

npm install
npm run build
pnpm install --frozen-lockfile
pnpm run build

curl -X DELETE ${ELASTIC_HOST}/${RESOURCE_NAME}-${REVISION}
curl -X PUT ${ELASTIC_HOST}/${RESOURCE_NAME}-${REVISION} -H 'Content-Type: application/json' -d @mappings.json
Expand Down
1 change: 1 addition & 0 deletions ui/frontend/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
minimumReleaseAge: 20160
Loading