Skip to content
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

feat: add gohugoio/hugo/hugo-extended #7243

Merged
merged 7 commits into from Oct 20, 2022

Conversation

corrupt952
Copy link
Sponsor Contributor

@corrupt952 corrupt952 commented Oct 20, 2022

gohugoio/hugo/hugo-extended: The world’s fastest framework for building websites

$ aqua g -i gohugoio/hugo/hugo-extended

How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

# The version output includes '+extended'
$ hugo version
hugo v0.104.3-58b824581360148f2d91f5cc83f69bd22c1aa331+extended darwin/arm64 BuildDate=2022-10-04T14:25:23Z VendorInfo=gohugoio

$ hugo --help
hugo is the main command, used to build your Hugo site.

Hugo is a Fast and Flexible Static Site Generator
built with love by spf13 and friends in Go.

Complete documentation is available at https://gohugo.io/.

Usage:
  hugo [flags]
  hugo [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  config      Print the site configuration
  convert     Convert your content to different formats
  deploy      Deploy your site to a Cloud provider.
  env         Print Hugo version and environment info
  gen         A collection of several useful generators.
  help        Help about any command
  import      Import your site from others.
  list        Listing out various types of content
  mod         Various Hugo Modules helpers.
  new         Create new content for your site
  server      A high performance webserver
  version     Print the version number of Hugo

Flags:
  -b, --baseURL string             hostname (and path) to the root, e.g. https://spf13.com/
  -D, --buildDrafts                include content marked as draft
  -E, --buildExpired               include expired content
  -F, --buildFuture                include content with publishdate in the future
      --cacheDir string            filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
      --cleanDestinationDir        remove files from destination not found in static directories
      --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
      --config string              config file (default is path/config.yaml|json|toml)
      --configDir string           config dir (default "config")
  -c, --contentDir string          filesystem path to content directory
      --debug                      debug output
  -d, --destination string         filesystem path to write files to
      --disableKinds strings       disable different kind of pages (home, RSS etc.)
      --enableGitInfo              add Git revision, date, author, and CODEOWNERS info to the pages
  -e, --environment string         build environment
      --forceSyncStatic            copy all files when static is changed.
      --gc                         enable to run some cleanup tasks (remove unused cache files) after the build
  -h, --help                       help for hugo
      --ignoreCache                ignores the cache directory
      --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
  -l, --layoutDir string           filesystem path to layout directory
      --log                        enable Logging
      --logFile string             log File path (if set, logging enabled automatically)
      --minify                     minify any supported output format (HTML, XML etc.)
      --noBuildLock                don't create .hugo_build.lock file
      --noChmod                    don't sync permission mode of files
      --noTimes                    don't sync modification time of files
      --panicOnWarning             panic on first WARNING log
      --poll string                set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes
      --printI18nWarnings          print missing translations
      --printMemoryUsage           print memory usage to screen at intervals
      --printPathWarnings          print warnings on duplicate target paths etc.
      --printUnusedTemplates       print warnings on unused templates.
      --quiet                      build in quiet mode
      --renderToMemory             render to memory (only useful for benchmark testing)
  -s, --source string              filesystem path to read files relative from
      --templateMetrics            display metrics about template executions
      --templateMetricsHints       calculate some improvement hints when combined with --templateMetrics
  -t, --theme strings              themes to use (located in /themes/THEMENAME/)
      --themesDir string           filesystem path to themes directory
      --trace file                 write trace to file (not useful in general)
  -v, --verbose                    verbose output
      --verboseLog                 verbose logging
  -w, --watch                      watch filesystem for changes and recreate as needed

Use "hugo [command] --help" for more information about a command.

If files such as configuration file are needed, please share them.

Create new site.

$ hugo new site quickstart

Setup new site.

$ cd quickstart
$ git init
$ git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
$ echo theme = \"ananke\" >> config.toml

Run hugo server

$ hugo server

Reference

[gohugoio/hugo-extended](https://github.com/gohugoio/hugo-extended): The world’s fastest framework for building websites

```console
$ aqua g -i gohugoio/hugo-extended
```

## How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

```console
$
```

If files such as configuration file are needed, please share them.

```
```

Reference

-
@corrupt952 corrupt952 marked this pull request as draft October 20, 2022 11:46
@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Oct 20, 2022
@suzuki-shunsuke
Copy link
Member

Thank you for your contribution!

pkgs/gohugoio/hugo-extended/registry.yaml Outdated Show resolved Hide resolved
registry.yaml Outdated Show resolved Hide resolved
pkgs/gohugoio/hugo-extended/registry.yaml Outdated Show resolved Hide resolved
registry.yaml Outdated Show resolved Hide resolved
pkgs/gohugoio/hugo-extended/registry.yaml Outdated Show resolved Hide resolved
registry.yaml Outdated Show resolved Hide resolved
format: zip
- goos: darwin
asset: hugo_extended_{{trimV .Version}}_{{.OS}}-universal.tar.gz
replacements: &hugo_replacements_1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

registry.yaml in pkgs are merged into registry.yaml in the repository root directory, so the anchor is conflicted.

replacements: &hugo_replacements_1

- goos: darwin
asset: hugo_extended_{{trimV .Version}}_{{.OS}}-universal.tar.gz
replacements: *hugo_extended_replacements_1
- version_constraint: "true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition is never used, because every version matches either semver("< 0.102.0") or semver(">= 0.102.0").

overrides:
- goos: windows
format: zip
- version_constraint: semver(">= 0.102.0")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@suzuki-shunsuke
Copy link
Member

suzuki-shunsuke commented Oct 20, 2022

  • Since v0.103.0, replacements was changed.
  • Since v0.102.0, macOS archives have replaced with universal binaries. And linux/arm64 has been supported
  • In v0.88.0, macOS/arm64 was missing
  • Since v0.81.0, macOS/arm64 has been supported
  • extended has been supported since v0.43
hugo_extended_0.103.0_darwin-universal.tar.gz
hugo_extended_0.103.0_linux-amd64.tar.gz
hugo_extended_0.103.0_linux-arm64.tar.gz
hugo_extended_0.103.0_windows-amd64.zip
hugo_extended_0.102.3_Linux-64bit.tar.gz
hugo_extended_0.102.3_Linux-ARM64.tar.gz
hugo_extended_0.102.3_macOS-universal.tar.gz
hugo_extended_0.102.3_Windows-64bit.zip
hugo_extended_0.102.0_Linux-64bit.tar.gz
hugo_extended_0.102.0_Linux-ARM64.tar.gz
hugo_extended_0.102.0_macOS-universal.tar.gz
hugo_extended_0.102.0_Windows-64bit.zip
hugo_extended_0.101.0_Linux-64bit.tar.gz
hugo_extended_0.101.0_macOS-64bit.tar.gz
hugo_extended_0.101.0_macOS-ARM64.tar.gz
hugo_extended_0.101.0_Windows-64bit.zip
hugo_extended_0.88.0_Linux-64bit.tar.gz
hugo_extended_0.88.0_macOS-64bit.tar.gz
hugo_extended_0.88.0_Windows-64bit.zip
hugo_extended_0.81.0_Linux-64bit.tar.gz
hugo_extended_0.81.0_macOS-64bit.tar.gz
hugo_extended_0.81.0_macOS-ARM64.tar.gz
hugo_extended_0.81.0_Windows-64bit.zip
hugo_extended_0.43_Linux-64bit.tar.gz
hugo_extended_0.43_macOS-64bit.tar.gz
hugo_extended_0.43_Windows-64bit.zip

@suzuki-shunsuke suzuki-shunsuke changed the title feat: add gohugoio/hugo-extended feat: add gohugoio/hugo/hugo-extended Oct 20, 2022
@suzuki-shunsuke suzuki-shunsuke added this to the v3.78.1 milestone Oct 20, 2022
@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review October 20, 2022 13:58
@suzuki-shunsuke suzuki-shunsuke merged commit 67f27dd into aquaproj:main Oct 20, 2022
@corrupt952 corrupt952 deleted the feat/gohugoio/hugo-extended branch October 20, 2022 14:17
@corrupt952
Copy link
Sponsor Contributor Author

Thank you for reviewing and fixed 👍
You've been very helpful.

@suzuki-shunsuke
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants