hugo/commands
Bjørn Erik Pedersen 59af05cabc Add HUGO_PUBLISHDIR to the Node environment
So you can do  `process.env.HUGO_PUBLISHDIR` in your `postcss.config.js` to figure out where Hugo publishes
its files.

Note that the value will always be an absolute file path and will point to a directory on disk even when running `hugo server` in memory mode.

If you write to this folder from PostCSS when running the server, you could run the server with one of these flags:

```
hugo server --renderToDisk
hugo server --renderStaticToDisk
```

Fixes #10554
2022-12-22 12:43:50 +01:00
..
commandeer.go Add HUGO_PUBLISHDIR to the Node environment 2022-12-22 12:43:50 +01:00
commands.go basefs: add noBuildLock flag 2022-05-24 13:57:23 +02:00
commands_test.go commands: Create assets directory with new site 2022-11-21 09:42:40 +01:00
config.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
convert.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
deploy.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
env.go Make the hugo env non verbose output slightly more verbose 2022-12-06 13:37:08 +01:00
gen.go Remove hugo gen autocomplete 2022-02-01 23:23:30 +01:00
genchromastyles.go deps: Udpate to github.com/alecthomas/chroma/v2 2022-06-14 14:08:40 +02:00
gendoc.go commands: Change link protocol to https 2022-03-25 15:29:50 +01:00
gendocshelper.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
genman.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00
helpers.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
hugo.go Add any configured Go Workspace file to the config watcher 2022-12-19 20:17:33 +01:00
hugo_test.go Use configured timeZone for the clock 2022-05-08 16:56:26 +02:00
hugo_windows.go Import time/tzdata on Windows 2021-08-14 12:09:41 +02:00
import_jekyll.go import: Fix importing jekyll site 2022-05-21 23:44:40 +02:00
import_jekyll_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
limit_darwin.go Adjust rlimit logic 2019-04-07 00:53:55 +02:00
limit_others.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
list.go Add clock cli flag 2022-05-08 16:56:26 +02:00
list_test.go Add clock cli flag 2022-05-08 16:56:26 +02:00
mod.go Misc depreation updates 2022-01-04 17:10:39 +01:00
mod_npm.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
new.go Fix usage description 2022-09-08 15:35:11 +02:00
new_content_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
new_site.go commands: Create assets directory with new site 2022-11-21 09:42:40 +01:00
new_theme.go Add clock cli flag 2022-05-08 16:56:26 +02:00
nodeploy.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
release.go Add linux/arm64 extended to release setup 2022-08-28 18:23:01 +02:00
release_noop.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
server.go server: Fix 404 redirects on Windows 2022-09-23 13:07:56 +02:00
server_errors.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
server_test.go Skip flakey server tests on GitHub Action on Windows 2022-10-26 09:29:55 +02:00
static_syncer.go Also consider wrapped errors when checking for file IsNotExist errors 2022-12-14 13:51:06 +01:00
version.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00