-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Bump Docsy to 0.4.x #48722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump Docsy to 0.4.x #48722
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,3 @@ | ||
| [submodule "themes/docsy"] | ||
| path = themes/docsy | ||
| url = https://github.com/google/docsy.git | ||
| branch = v0.2.0 | ||
| [submodule "api-ref-generator"] | ||
| path = api-ref-generator | ||
| url = https://github.com/kubernetes-sigs/reference-docs |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -34,7 +34,7 @@ module-init: ## Initialize required submodules. | |||||
| all: build ## Build site with production settings and put deliverables in ./public | ||||||
|
|
||||||
| build: module-check ## Build site with non-production settings and put deliverables in ./public | ||||||
| hugo --cleanDestinationDir --minify --environment development | ||||||
| hugo --cleanDestinationDir --minify --environment development --themesDir node_modules | ||||||
|
|
||||||
| build-preview: module-check ## Build site with drafts and future posts enabled | ||||||
| hugo --cleanDestinationDir --buildDrafts --buildFuture --environment preview | ||||||
|
|
@@ -56,7 +56,7 @@ non-production-build: module-check ## Build the non-production site, which adds | |||||
| GOMAXPROCS=1 hugo --cleanDestinationDir --enableGitInfo --environment nonprod | ||||||
|
|
||||||
| serve: module-check ## Boot the development server. | ||||||
| hugo server --buildFuture --environment development | ||||||
| hugo server --buildFuture --environment development --themesDir node_modules | ||||||
|
|
||||||
| docker-image: | ||||||
| @echo -e "$(CCRED)**** The use of docker-image is deprecated. Use container-image instead. ****$(CCEND)" | ||||||
|
|
@@ -97,11 +97,11 @@ docker-push: ## Build a multi-architecture image and push that into the registry | |||||
| rm Dockerfile.cross | ||||||
|
|
||||||
| container-build: module-check | ||||||
| $(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 $(CONTAINER_IMAGE) sh -c "npm ci && hugo --minify --environment development" | ||||||
| $(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 $(CONTAINER_IMAGE) sh -c "npm ci && hugo --minify --environment development --themesDir /usr/local/lib/node_modules" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure of the original intent, but typically people want the build output kept. This doesn't look like it would do that. |
||||||
|
|
||||||
| # no build lock to allow for read-only mounts | ||||||
| container-serve: module-check ## Boot the development server using container. | ||||||
| $(CONTAINER_RUN) --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/hugo --cleanDestinationDir --noBuildLock | ||||||
| $(CONTAINER_RUN) --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --environment development --themesDir /usr/local/lib/node_modules --bind 0.0.0.0 --destination /tmp/hugo --cleanDestinationDir --noBuildLock | ||||||
|
|
||||||
| test-examples: | ||||||
| scripts/test_examples.sh install | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually found a better way (IMHO), which copies the project's packages files rather that duplicating dependencies here. I'll share that tomorrow, I'm calling it a day.