Anthony Fok
c9526f6e3f
Revise format for "Unable to locate Config file" error
2015-12-03 00:28:09 -07:00
Bjørn Erik Pedersen
df85e5a0aa
Switch to container-based Travis
2015-12-02 23:52:56 +01:00
Bjørn Erik Pedersen
be28d9d943
Fix some errors with format patterns
...
See #1502
2015-12-02 23:37:40 +01:00
Anthony Fok
f363faadab
Add a number sign "#" before a GitHub issue number
...
to make it more readily recognizable.
2015-12-02 13:11:24 -07:00
Cameron Moore
6812229bb8
Add gh shortcode to docs site
...
The `gh` shortcode has two modes: users and issues. For user mode, pass a list
of `@username` arguments. For the issues/PR mode, pass a list of issue or PR
numbers. PRs link to the "issues/" URL since Github redirects to the correct
URL.
Thanks to @ryanclarke for suggesting an improved template.
2015-12-02 12:18:04 -07:00
Anthony Fok
d48781badf
One more error fix in the server command
...
And some other small code clean-up.
See #1502
2015-12-02 11:56:36 -07:00
Bjørn Erik Pedersen
c5287e7817
Some more error fixes in commands
...
See #1502
2015-12-02 16:27:08 +01:00
Bjørn Erik Pedersen
3f0f7eed68
Improve error handling in commands
...
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-12-02 07:07:05 -07:00
tryer3000
6959b7fa80
Update external tutorial links in usage.md
2015-12-02 07:03:54 -07:00
Anthony Fok
75c61236f1
Move import jekyll
functions to import_jekyll.go
...
Also rename import_test.go to import_jekyll_test.go
2015-12-02 03:39:10 -07:00
Anthony Fok
666ddd2377
Enable dirname and filename completion for more flags
...
These flags are:
* --source (-s), --cacheDir, --destination (-d) and --logFile
* --completionfile and --dir.
2015-12-02 02:24:49 -07:00
Anthony Fok
0d1d33d7f3
Print error when /index.html is zero-length
...
Also print warning (in verbose mode) for other empty pages.
See #947
2015-12-01 21:03:17 -07:00
Anthony Fok
f8302768c7
Run go fmt hugolib/site.go
2015-12-01 21:01:19 -07:00
Anthony Fok
afbc18c09a
Bump min_version to 0.15 for hugo new theme
2015-12-01 10:27:36 -07:00
Tatsushi Demachi
e989468341
Make noTimes command flag work
...
Hugo command provides "noTimes" flag but it doesn't affect synced files
timestamp regardless of whether the flag is specified or not.
This fixes it by adding a flag check and overwriting configuration if it
is specified.
Fix #1583
2015-12-01 10:01:44 -07:00
Tatsushi Demachi
6c8103144f
Copy static dir files without theme's static dir
...
Hugo command doesn't copy site's "static" directory files to "public"
directory if a specified theme doesn't have "static" directory because
theme's "static" directory checking always returns an error.
This fixes it by just showing a warning message about theme's "static"
directory absence and not skipping following processes.
Fix #1655
2015-12-01 10:01:21 -07:00
Takeru Naito
c5e68ba197
Fix typo in "Creating a New Theme"
...
the the skeleton's ->
the theme skeleton's
2015-12-01 00:13:48 -07:00
David Oliver
91771ee3b6
Add Draft page variable to docs
...
Also tweaks language used in page params sentence.
2015-11-30 23:38:34 -07:00
Gustav Näslund
b0b6a8c7ac
Use .Site.Pages in the documentation examples instead of .Site.Recent
2015-11-30 23:31:18 -07:00
Valentin Vago
d7ef272a23
Add Camunda blog and docs showcases
2015-11-30 23:16:58 -07:00
Anthony Fok
b557f6249f
Change plainIdAnchors to plainIDAnchors in docs
...
Also add a note saying that these blackfriday flags are
very case-sensitive as of Hugo v0.15.
Thanks to @ryanclarke for noticing the change in behaviour.
See also spf13/hugo@5838420
2015-11-30 00:19:04 -07:00
Anthony Fok
249cd62541
Copyedit the shortcodes documentation some more
2015-11-29 23:23:25 -07:00
digitalcraftsman
2e3d5c2df6
Docs: improve shortcodes page
...
See #1613
2015-11-29 22:01:31 -07:00
Anthony Fok
cf732940a3
Remove an erroneous "$" prompt in quickstart guide
2015-11-29 21:43:49 -07:00
Doug Horner
c83e10a48e
Added the command in the documentation.
...
It was confusing that the command was not in step 5, while it is in step 6.
2015-11-29 21:38:52 -07:00
Anthony Fok
50b5d0af29
Support setting target directory in hugo gen man
...
Fixes #1627
2015-11-28 07:32:02 -07:00
Michael Henderson
09379e893e
Update for version 0.16
...
Updated output of commands. Removed unneeded flags such as
--watch. Didn't resist the temptation to reword some parts.
2015-11-28 07:09:42 -07:00
digitalcraftsman
2519b70793
Docs: remove note about config changes and manual livereload
2015-11-27 15:40:17 -07:00
digitalcraftsman
ffb1a96e76
Docs: improve usage.md
2015-11-27 15:40:17 -07:00
digitalcraftsman
37676a25c6
Docs: improve quickstart guide
...
Fixes #1553
2015-11-27 15:40:16 -07:00
ChristophFloat
72a66972b6
Update press.md
...
Include my Blogpost about using Hugo together with git to automatically
generate the site when you push it into your Repo using a Git Hook (German).
2015-11-26 16:41:44 -07:00
Bjørn Erik Pedersen
26af48a596
Add note in doc about Jekyll import
2015-11-25 23:18:20 +01:00
Bjørn Erik Pedersen
f77a899ddd
Regenerate the commands section of doc
2015-11-25 23:11:16 +01:00
Steve Francia
d356720f74
Version bump to 0.16-DEV
2015-11-25 09:49:03 -05:00
Steve Francia
6faf1d01e0
version bump to v0.15
2015-11-25 09:33:53 -05:00
Steve Francia
9c1319cdea
Update license file in the docs/website to apache
2015-11-25 08:33:38 -05:00
Cameron Moore
9410d25e96
Update release notes with additional new features
2015-11-25 09:30:17 +01:00
Steve Francia
171fb883de
Update and reorganize 0.15 release notes
2015-11-24 16:51:01 -05:00
Bjørn Erik Pedersen
0f11eb4f12
Make the release note about renderToDisk more consise
...
See #1611
2015-11-24 21:13:02 +01:00
digitalcraftsman
234fac4a45
Update release notes
2015-11-24 21:10:35 +01:00
digitalcraftsman
311307c9e4
Add IsNamedParams property in shortcodes
2015-11-24 08:59:32 +01:00
digitalcraftsman
86dcac614b
Add documentation for built-in shortcodes
...
Fixes #1576
2015-11-24 08:59:32 +01:00
digitalcraftsman
7d31d5f59d
Add shortcode for tweets
2015-11-24 08:59:32 +01:00
digitalcraftsman
e03f27ccf8
Add shortcode for github gists
2015-11-24 08:59:32 +01:00
digitalcraftsman
3027b15176
Add shortcode for vimeo
2015-11-24 08:59:32 +01:00
digitalcraftsman
4424288d9b
Add shortcode for youtube
2015-11-24 08:59:32 +01:00
digitalcraftsman
cc3f52b9c1
Add shortcode for speakerdeck
2015-11-24 08:59:31 +01:00
Cameron Moore
fe2a9fa21d
Update shortcode docs with .IsNamedParams
...
There are some minor cleanups included here as well.
Fixes #1607
2015-11-24 08:47:06 +01:00
Steve Francia
f045d7a611
Change the license to Apache 2.0
2015-11-23 22:16:36 -05:00
Bjørn Erik Pedersen
b00771ca14
Simplify ExtractRootPaths
2015-11-23 22:35:54 +01:00