-
Notifications
You must be signed in to change notification settings - Fork 826
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
Upgrade Docsy #3382
Upgrade Docsy #3382
Changes from all commits
f56d6c9
3c1b6d2
1a7852f
b7a54f4
8c189bb
9bc06bf
b352020
8d33b7a
5af2895
309d7b9
c28c58b
b00129c
b1576a0
f1699b2
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 |
---|---|---|
|
@@ -44,7 +44,7 @@ site-static: ensure-build-image | |
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) \ | ||
bash -c "npm list autoprefixer || npm install [email protected]" | ||
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) bash -c \ | ||
"git config --global --add safe.directory /go/src/agones.dev/agones && $(ENV) hugo --config=config.toml $(ARGS)" | ||
"git config --global --add safe.directory /go/src/agones.dev/agones && $(ENV) hugo --config=hugo.toml $(ARGS)" | ||
|
||
site-gen-app-yaml: SERVICE ?= default | ||
site-gen-app-yaml: | ||
|
@@ -128,7 +128,7 @@ del-data-proofer-ignore: ensure-build-image | |
docker run --rm $(common_mounts) --workdir=$(mount_path) $(DOCKER_RUN_ARGS) $(build_tag) \ | ||
go run build/scripts/remove-data-proofer-ignore/main.go -file=$(FILENAME) | ||
|
||
# update release version and replicate data between dev and prod in site/config.toml | ||
# update release version and replicate data between dev and prod in site/hugo.toml | ||
site-config-update-version: ensure-build-image | ||
docker run --rm $(common_mounts) --workdir=$(mount_path) $(DOCKER_RUN_ARGS) $(build_tag) \ | ||
go run build/scripts/site-config-update-version/main.go | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ module github.com/agones/agones/site | |
go 1.20 | ||
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. Apache header please. |
||
|
||
require gopkg.in/yaml.v2 v2.2.8 | ||
markmandel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
require github.com/google/docsy v0.7.1 // indirect |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright 2018 Google LLC All Rights Reserved. | ||
# Copyright 2023 Google LLC All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -17,7 +17,7 @@ title = "Agones" | |
enableRobotsTXT = true | ||
|
||
# Hugo allows theme composition (and inheritance). The precedence is from left to right. | ||
theme = ["docsy"] | ||
theme = ["github.com/google/docsy", "github.com/google/docsy/dependencies"] | ||
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. Should we delete the |
||
|
||
# Will give values to .Lastmod etc. | ||
enableGitInfo = true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{{ with .Site.Params.gcs_engine_id }} | ||
<input id="agones-search" type="search" class="form-control td-search-input" placeholder=" {{ T "ui_search" }}" aria-label="{{ T "ui_search" }}" autocomplete="off"> | ||
{{ end }} | ||
{{ if .Site.Params.gcs_engine_id -}} | ||
|
||
<div class="td-search"> | ||
<div class="td-search__icon"></div> | ||
<input id="agones-search" type="search" class="td-search__input form-control td-search-input" placeholder="{{ T "ui_search" }}" aria-label="{{ T "ui_search" }}" autocomplete="off"> | ||
</div> | ||
|
||
{{- end -}} |
This file was deleted.
This file was deleted.
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.
Is this value in the hugo.toml? Looks like it's still in config.toml?