From 6ae044e50fe8a3444f6cb9f05496db5b188f45d2 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sat, 27 Apr 2024 11:18:30 +0200 Subject: [PATCH] Fix npm dependencies, update outdated npm lockfile --- .gitignore | 1 + go.mod | 9 ++++++++ go.sum | 12 +++++++++++ config.toml => hugo.toml | 46 ++++++++++++++++++++++++++++------------ 4 files changed, 54 insertions(+), 14 deletions(-) create mode 100644 go.mod create mode 100644 go.sum rename config.toml => hugo.toml (93%) diff --git a/.gitignore b/.gitignore index 9443796bd..96655cdd4 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ public resources node_modules +.hugo_build.lock \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 000000000..0e69b2a75 --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module github.com/gin-gonic/website + +go 1.22.2 + +require ( + github.com/google/docsy v0.9.2-0.20240426161215-e9eca0fcb3b5 // indirect + github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7 // indirect + github.com/twbs/bootstrap v5.3.3+incompatible // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 000000000..9b580b446 --- /dev/null +++ b/go.sum @@ -0,0 +1,12 @@ +github.com/FortAwesome/Font-Awesome v0.0.0-20240108205627-a1232e345536/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= +github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7 h1:2aWEKCRLqQ9nPyXaz4/IYtRrDr3PzEiX0DUSUr2/EDs= +github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= +github.com/FortAwesome/Font-Awesome v4.7.0+incompatible h1:3trjm7NtX5NXlju1AxSWSzedDMq2hsfH78Qtqrc8EgY= +github.com/FortAwesome/Font-Awesome v4.7.0+incompatible/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/google/docsy v0.9.2-0.20240426161215-e9eca0fcb3b5 h1:EDs9FRTZ75agHdnMeO3HjfqJV10jKpdsM6XEARy/FsM= +github.com/google/docsy v0.9.2-0.20240426161215-e9eca0fcb3b5/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc= +github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= +github.com/twbs/bootstrap v5.3.3+incompatible h1:goFoqinzdHfkeegpFP7pvhbd0g+A3O2hbU3XCjuNrEQ= +github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= diff --git a/config.toml b/hugo.toml similarity index 93% rename from config.toml rename to hugo.toml index bcc8b1fbd..92b14e394 100644 --- a/config.toml +++ b/hugo.toml @@ -3,9 +3,6 @@ title = "Gin Web Framework" enableRobotsTXT = true -# Hugo allows theme composition (and inheritance). The precedence is from left to right. -theme = "docsy" - # Will give values to .Lastmod etc. enableGitInfo = true @@ -61,84 +58,93 @@ id = "UA-42425385-2" [languages] [languages.en] title = "Gin Web Framework" -description = "Gin Web Framework" languageName = "English" # Weight used for sorting. weight = 1 +[languages.en.params] +description = "Gin Web Framework" [languages.zh-cn] title = "Gin Web Framework" -description = "Gin Web Framework" languageName = "简体中文" contentDir = "content/zh-cn" +[languages.zh-cn.params] +description = "Gin Web Framework" time_format_default = "02.01.2006" time_format_blog = "02.01.2006" [languages.zh-tw] title = "Gin Web Framework" -description = "Gin Web Framework" languageName = "繁體中文" contentDir = "content/zh-tw" +[languages.zh-tw.params] +description = "Gin Web Framework" time_format_default = "02.01.2006" time_format_blog = "02.01.2006" [languages.ja] title = "Gin Web Framework" -description = "Gin Web Framework" languageName = "日本語" contentDir = "content/ja" +[languages.ja.params] +description = "Gin Web Framework" time_format_default = "02.01.2006" time_format_blog = "02.01.2006" [languages.ko-kr] title = "Gin Web Framework" -description = "Gin Web Framework" languageName = "한국어" contentDir = "content/ko-kr" +[languages.ko-kr.params] +description = "Gin Web Framework" time_format_default = "02.01.2006" time_format_blog = "02.01.2006" [languages.es] title = "Gin Web Framework" -description = "Gin Web Framework" languageName = "Español" contentDir = "content/es" +[languages.es.params] +description = "Gin Web Framework" time_format_default = "02.01.2006" time_format_blog = "02.01.2006" [languages.fa] title = "Gin Web Framework" -description = "Gin Web Framework" languageName = "Persian" contentDir = "content/fa" +[languages.fa.params] +description = "Gin Web Framework" time_format_default = "02.01.2006" time_format_blog = "02.01.2006" [languages.tr] title = "Gin Web Framework" -description = "Gin Web Framework" languageName = "Turkish" contentDir = "content/tr" +[languages.tr.params] +description = "Gin Web Framework" time_format_default = "02.01.2006" time_format_blog = "02.01.2006" [languages.pt] title = "Gin Web Framework" -description = "A Abstração de Web Gin" languageName = "Português" contentDir = "content/pt" +[languages.pt.params] +description = "A Abstração de Web Gin" time_format_default = "02.01.2006" time_format_blog = "02.01.2006" [languages.ru] title = "Gin Web Framework" -description = "Gin Web Framework" languageName = "Russian" contentDir = "content/ru" +[languages.ru.params] +description = "Gin Web Framework" time_format_default = "02.01.2006" time_format_blog = "02.01.2006" - [markup] [markup.goldmark] [markup.goldmark.renderer] @@ -248,3 +254,15 @@ no = 'Sorry to hear that. Please