summaryrefslogtreecommitdiffstats
path: root/commands
AgeCommit message (Collapse)Author
2018-05-23Fix some recently broken embedded templatesBjørn Erik Pedersen
And add tests for them. Fixes #4757
2018-05-22commands: Avoid ANSI character output on WindowsLorenz Cuno Klopfenstein
Fixes #4462
2018-05-14commands: Do not show empty BuildDate in versionAnthony Fok
2018-04-16commands: Re-add the missing releaser commandBjørn Erik Pedersen
2018-04-15commands: Remove accidental and breaking space in baseURL flagBjørn Erik Pedersen
And added key-trimming to prevent future mishaps. See #4607
2018-04-14commands: Properly handle CLI slice argumentsBjørn Erik Pedersen
Like `--disableKinds` -- this handling was kind of broken when we recently moved this from global vars See #4607
2018-04-14commands: Correctly handle destination and i18n-warningsBjørn Erik Pedersen
And add some more CLI tests. See #4607
2018-04-13commands: Fix handling of persistent CLI flagsBjørn Erik Pedersen
See #4607
2018-04-12commands: Fix failing Travis server testBjørn Erik Pedersen
2018-04-11commands: Make commands.Execute return a Response objectBjørn Erik Pedersen
We have no global `Hugo` object no more (yay!), and there are some external tools that depends on that value. These tools need to use get that value from `Response.Result`. Note that `commands.Execute` now also takes the arguments as a string slice. This should also make it easier to use, not having to modify `os.Args`. This commit also wraps up this particular issue. Phew! Test coverage in /commands before: 14.4% Now: 53.5% Still work to do, now it is at least possible. Closes #4598
2018-04-11commands: Remove some TODOsBjørn Erik Pedersen
See #4598
2018-04-11commands: Fix the config commandBjørn Erik Pedersen
It now also accepts the `-s` (source) flag. See #4598
2018-04-11commands: Fix some flag diffBjørn Erik Pedersen
The CLI docs output is now identical with the master version. See #4598
2018-04-11commands: Add basic server testBjørn Erik Pedersen
See #4598
2018-04-11commands: Fix TestFixURLBjørn Erik Pedersen
See #4598
2018-04-11commands: Remove the Hugo globalBjørn Erik Pedersen
There are still some cleaning to do, but that felt good. See #4598
2018-04-11commands: Make the limit command work againBjørn Erik Pedersen
See #4598
2018-04-11commands: Move the commands related logic to its own fileBjørn Erik Pedersen
See #4598
2018-04-11commands: Add CLI testsBjørn Erik Pedersen
See #4598
2018-04-11commands: Make the hugo command non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Extract some common types into its own fileBjørn Erik Pedersen
See #4598
2018-04-11commands: Make the server command non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Make the gen commands non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Make the list commands non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Make the import commands non-globalBjørn Erik Pedersen
See #4598
2018-04-11comands: Make the config command non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Make the new commands non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Make convert command non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Make more commands non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Make benchmark non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Start of flag cleaningBjørn Erik Pedersen
See #4598
2018-04-11commands: Use short date format in CLI docsBjørn Erik Pedersen
To make it possible to compare the output. See #4598
2018-04-09releaser: Prepare repository for 0.39-DEVhugoreleaser
[ci skip]
2018-04-09releaser: Bump versions for release of 0.38.2hugoreleaser
[ci skip]
2018-04-08Bump the debouncer dependencyBjørn Erik Pedersen
No practical difference.
2018-04-07Fix handling of --contentDir etc. flagBjørn Erik Pedersen
We need to revisit the commands package re globals and tests, but this should fix the init order of flags and languages. Fixes #4589
2018-04-05releaser: Prepare repository for 0.39-DEVhugoreleaser
[ci skip]
2018-04-05releaser: Bump versions for release of 0.38.1hugoreleaser
[ci skip]
2018-04-04commands: Handle mass content etc. edits in server modeBjørn Erik Pedersen
Fixes #4563
2018-04-02releaser: Bump versions for release of 0.38hugoreleaser
[ci skip]
2018-04-02Add support for a content dir set per languageBjørn Erik Pedersen
A sample config: ```toml defaultContentLanguage = "en" defaultContentLanguageInSubdir = true [Languages] [Languages.en] weight = 10 title = "In English" languageName = "English" contentDir = "content/english" [Languages.nn] weight = 20 title = "På Norsk" languageName = "Norsk" contentDir = "content/norwegian" ``` The value of `contentDir` can be any valid path, even absolute path references. The only restriction is that the content dirs cannot overlap. The content files will be assigned a language by 1. The placement: `content/norwegian/post/my-post.md` will be read as Norwegian content. 2. The filename: `content/english/post/my-post.nn.md` will be read as Norwegian even if it lives in the English content folder. The content directories will be merged into a big virtual filesystem with one simple rule: The most specific language file will win. This means that if both `content/norwegian/post/my-post.md` and `content/english/post/my-post.nn.md` exists, they will be considered duplicates and the version inside `content/norwegian` will win. Note that translations will be automatically assigned by Hugo by the content file's relative placement, so `content/norwegian/post/my-post.md` will be a translation of `content/english/post/my-post.md`. If this does not work for you, you can connect the translations together by setting a `translationKey` in the content files' front matter. Fixes #4523 Fixes #4552 Fixes #4553
2018-03-21Allow themes to define output formats, media types and paramsBjørn Erik Pedersen
This allows a `config.toml` (or `yaml`, ´yml`, or `json`) in the theme to set: 1) `params` (but cannot override params in project. Will also get its own "namespace", i.e. `{{ .Site.Params.mytheme.my_param }}` will be the same as `{{ .Site.Params.my_param }}` providing that the main project does not define a param with that key. 2) `menu` -- but cannot redefine/add menus in the project. Must create its own menus with its own identifiers. 3) `languages` -- only `params` and `menu`. Same rules as above. 4) **new** `outputFormats` 5) **new** `mediaTypes` This should help with the "theme portability" issue and people having to copy and paste lots of setting into their projects. Fixes #4490
2018-03-20hugolib: Add ConfigSourceDescriptorBjørn Erik Pedersen
To prepare for config in themes See #4490
2018-03-20Bump some deprecationsBjørn Erik Pedersen
2018-03-18commands: Recover from error in serverBjørn Erik Pedersen
Issue introduced some days ago. Fixes #4516
2018-03-07releaser: Prepare repository for 0.38-DEVhugoreleaser
[ci skip]
2018-03-07releaser: Bump versions for release of 0.37.1hugoreleaser
[ci skip]
2018-02-27commands: Do not print build total when --quiet is setBjørn Erik Pedersen
Fixes #4456
2018-02-27releaser: Bump versions for release of 0.37hugoreleaser
[ci skip]
2018-02-21commands: Remove ERROR on missing baseURLBjørn Erik Pedersen
That logic fails in multi-host mode when no baseURL is set on top level. Fixes #4397