Skip to content

Commit

Permalink
Upgrade to Hugo Modules (#1884)
Browse files Browse the repository at this point in the history
* Upgrade to Hugo Modules

Change-Id: Ic0faac6327a9efbb38b8ccd9a8b29d799752bb01

* Remove deprecated kind
  • Loading branch information
alculquicondor committed Mar 22, 2024
1 parent 3c4d99f commit fec6bb7
Show file tree
Hide file tree
Showing 12 changed files with 1,145 additions and 1,100 deletions.
11 changes: 10 additions & 1 deletion Makefile
Expand Up @@ -281,6 +281,10 @@ prometheus:
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -

.PHONY: site-server
site-server: hugo
(cd site; $(HUGO) server)

##@ Release
.PHONY: artifacts
artifacts: kustomize yq helm
Expand All @@ -303,7 +307,7 @@ artifacts: kustomize yq helm

.PHONY: prepare-release-branch
prepare-release-branch: yq kustomize
sed -r 's/v[0-9]+\.[0-9]+\.[0-9]+/$(RELEASE_VERSION)/g' -i README.md -i site/config.toml
sed -r 's/v[0-9]+\.[0-9]+\.[0-9]+/$(RELEASE_VERSION)/g' -i README.md -i site/hugo.toml
$(YQ) e '.appVersion = "$(RELEASE_VERSION)"' -i charts/kueue/Chart.yaml
@$(call clean-manifests)

Expand Down Expand Up @@ -372,6 +376,11 @@ GENREF = $(PROJECT_DIR)/bin/genref
genref: ## Download genref locally if necessary.
@GOBIN=$(PROJECT_DIR)/bin $(GO_CMD) install github.com/kubernetes-sigs/reference-docs/genref@v0.28.0

HUGO = $(PROJECT_DIR)/bin/hugo
.PHONY: hugo
hugo:
@GOBIN=$(PROJECT_DIR)/bin CGO_ENABLED=1 $(GO_CMD) install -tags extended github.com/gohugoio/hugo@v0.124.1

MPIROOT = $(shell $(GO_CMD) list -m -f "{{.Dir}}" github.com/kubeflow/mpi-operator)
.PHONY: mpi-operator-crd
mpi-operator-crd:
Expand Down
16 changes: 8 additions & 8 deletions netlify.toml
Expand Up @@ -3,15 +3,15 @@
publish = "public"
command = "npm install && hugo --gc --minify"

[context.deploy-preview.environment]
HUGO_VERSION = "0.92.0"
NODE_VERSION = "16"
[build.environment]
HUGO_VERSION = "0.124.1"

[context.production.environment]
HUGO_VERSION = "0.92.0"
HUGO_ENV = "production"
NODE_VERSION = "16"
HUGO_BASEURL = "https://kueue.sigs.k8s.io/"

[context.branch-deploy.environment]
HUGO_VERSION = "0.92.0"
NODE_VERSION = "16"
[context.deploy-preview]
command = "hugo --enableGitInfo --buildFuture -b $DEPLOY_PRIME_URL"

[context.branch-deploy]
command = "hugo --enableGitInfo --buildFuture -b $DEPLOY_PRIME_URL"
5 changes: 0 additions & 5 deletions site/archetypes/default.md

This file was deleted.

4 changes: 4 additions & 0 deletions site/assets/scss/_styles_project.scss
@@ -1,3 +1,7 @@
a {
text-decoration: none;
}

// --------------------------------------------------
// remove whitespace after footer
// --------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions site/assets/scss/_variables_project.scss
Expand Up @@ -12,6 +12,7 @@ $secondary: #fff;
$dark: #213d7a;
$info: #adb5bd;
$light: #dee2e6;
$link-color: #3176d9;

// Nav bar colors
$white: #fff;
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/_index.html
Expand Up @@ -32,7 +32,7 @@ <h1 class="text-center">Use Kueue to build a multi-tenant batch service with quo
<h1 class="text-center">Kueue works in combination with standard kube-scheduler, cluster-autoscaler, and the rest of the kubernetes ecosystem. This combination allows Kueue to run both on-prem and in the cloud, where resources can be heterogeneous, fungible, and dynamically provisioned. </h1>
{{% /blocks/lead %}}

{{< blocks/section color="light" >}}
{{< blocks/section color="light" type="row">}}

{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/kubernetes-sigs/kueue" %}}
We do a [Pull Request](https://github.com/kubernetes-sigs/kueue/pulls) contributions workflow on **GitHub**. New users are always welcome!
Expand Down
5 changes: 5 additions & 0 deletions site/go.mod
@@ -0,0 +1,5 @@
module sigs.k8s.io/kueue/site

go 1.21

require github.com/google/docsy v0.9.1 // indirect
4 changes: 4 additions & 0 deletions site/go.sum
@@ -0,0 +1,4 @@
github.com/FortAwesome/Font-Awesome v0.0.0-20240108205627-a1232e345536/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.9.1 h1:+jqges1YCd+yHeuZ1BUvD8V8mEGVtPxULg5j/vaJ984=
github.com/google/docsy v0.9.1/go.mod h1:saOqKEUOn07Bc0orM/JdIF3VkOanHta9LU5Y53bwN2U=
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
13 changes: 9 additions & 4 deletions site/config.toml → site/hugo.toml
Expand Up @@ -3,9 +3,6 @@ title = "Kueue"

enableRobotsTXT = true

theme = "docsy"
themesDir = "node_modules"

###############################################################################
# Docsy
###############################################################################
Expand All @@ -19,7 +16,7 @@ defaultContentLanguageInSubdir = false
# useful when translating
enableMissingTranslationPlaceholders = true
# disable taxonomies
disableKinds = ["taxonomy", "taxonomyTerm"]
disableKinds = ["taxonomy"]
# deprecated directories
ignoreFiles = []
###############################################################################
Expand Down Expand Up @@ -159,3 +156,11 @@ ignoreFiles = []
url = "https://kubernetes.slack.com/"
icon = "fab fa-slack"
desc = "Chat with other project developers"

[module]
proxy = "direct"
[module.hugoVersion]
extended = true
[[module.imports]]
path = "github.com/google/docsy"
disable = false
61 changes: 0 additions & 61 deletions site/layouts/partials/feedback.html

This file was deleted.

0 comments on commit fec6bb7

Please sign in to comment.