summaryrefslogtreecommitdiffstats
path: root/commands/benchmark.go
AgeCommit message (Collapse)Author
2017-03-27all: Propagate baseURL error to the callersBjørn Erik Pedersen
2017-02-17all: Refactor to nonglobal Viper, i18n etc.Bjørn Erik Pedersen
This is a final rewrite that removes all the global state in Hugo, which also enables the use if `t.Parallel` in tests. Updates #2701 Fixes #3016
2017-02-04all: Refactor to nonglobal file systemsBjørn Erik Pedersen
Updates #2701 Fixes #2951
2017-01-07all: Refactor to non-global loggerBjørn Erik Pedersen
Note that this looks like overkill for just the logger, and that is correct, but this will make sense once we start with the template handling etc. Updates #2701
2017-01-02commands: Fix case in names of some methodsbogem
2016-11-19commands: Make benchmark command more usefulAlbert Nigmatzianov
* Add information about average time, memory consumption and allocations. * Fix situation, when user provides memprofile and cpuprofile, but cpuprofile will not created. Fixes #2432
2016-09-06Make it possible to add a language in server modeBjørn Erik Pedersen
See #2309
2016-09-06Introduce HugoSites typeBjørn Erik Pedersen
And a Hugo global variable which contains the site under build. This is really needed to get some level of control of the "multiple languages" in play. There are still work related to this scattered around, but that will come. With this commit, the multilingual feature is starting to work.
2016-09-06Rename MainSites to SitesBjørn Erik Pedersen
Having many *main* sites doesn't make much sense.
2016-09-06Add multilingual support in HugoAlexandre Bourget
Implements: * support to render: * content/post/whatever.en.md to /en/2015/12/22/whatever/index.html * content/post/whatever.fr.md to /fr/2015/12/22/whatever/index.html * gets enabled when `Multilingual:` is specified in config. * support having language switchers in templates, that know where the translated page is (with .Page.Translations) (when you're on /en/about/, you can have a "Francais" link pointing to /fr/a-propos/) * all translations are in the `.Page.Translations` map, including the current one. * easily tweak themes to support Multilingual mode * renders in a single swift, no need for two config files. Adds a couple of variables useful for multilingual sites Adds documentation (content/multilingual.md) Added language prefixing for all URL generation/permalinking see in the code base. Implements i18n. Leverages the great github.com/nicksnyder/go-i18n lib.. thanks Nick. * Adds "i18n" and "T" template functions..
2016-06-09Change hugo to Hugo in help textBjørn Erik Pedersen
2016-02-14Export MainSite varHenrique Dias
Fixes hacdias/caddy-hugo#46
2016-02-05Add renderToMemory flagBjørn Erik Pedersen
Only useful for benchmark testing as the rendered content will be ... invisible.
2016-02-05Clean flagsBjørn Erik Pedersen
* Reduce the amount of global flags * Unexport all flag vars and commands vars * Some other minor flag cleaning
2016-01-27Fix hugo benchmarkBjørn Erik Pedersen
Appending to the site 13 times doesn't sound realistic.
2015-12-07Fix copyright headers in source filesBjørn Erik Pedersen
Still need to add some missing headers and an AUTHORS file. See #1646
2015-12-03Change most global flags into local onesAnthony Fok
This is to ensure that only the relevant command-line flags for a certain Hugo subcommand is shown to the end user, reducing clutter and improving user experience. Fixes #1624 - CLI UX: Flags shouldn't be global
2015-12-02One more error fix in the server commandAnthony Fok
And some other small code clean-up. See #1502
2015-12-02Improve error handling in commandsBjørn Erik Pedersen
Cobra, the CLI commander in use in Hugo, has some long awaited improvements in the error handling department. This enables a more centralized error handling approach. This commit introduces that by changing all the command funcs to `RunE`: * The core part of the error logging, usage logging and `os.Exit(-1)` is now performed in one place and that one place only. * The usage text is now only shown on invalid arguments etc. (user errors) Fixes #1502
2015-11-23Change the license to Apache 2.0Steve Francia
2015-08-04Improve formatting of Hugo command descriptionsAnthony Fok
Trying to make them look good both in the terminal (`hugo help [command]`) and in the web browser (http://gohugo.io/commands/). :-)
2015-02-05Add memprofile to pprof benchmarkbep
2014-12-24Fix long descriptions of `benchmark` and `serve` commandsAnthony Fok
2013-11-01Fix benchmark panicNoah Campbell
Need to initialize the Config with InitializeConfig().
2013-10-09simplified buildSite & better error handling around itspf13
2013-09-29Change the interface to use commands and flags instead of just flags.spf13
Better organization of main (controller style) code.