From dead7ba3f91ca22e9740d5e5e5b12113e6026ee3 Mon Sep 17 00:00:00 2001 From: Yuki KIRII Date: Wed, 8 Jun 2016 20:34:47 +0900 Subject: [PATCH 1/2] Improve table --- manual/config/layer2/index.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/manual/config/layer2/index.md b/manual/config/layer2/index.md index 2fde64e..b29ebd7 100644 --- a/manual/config/layer2/index.md +++ b/manual/config/layer2/index.md @@ -59,21 +59,21 @@ Variables of the actions are given by the _event_ field. It has following fields |Field|Meaning| |:----|:----| | event.config | the configuration as called with sync{} | -| event.inlet | see [layer 1](Layer 1 Config) about inlets | +| event.inlet | see [layer 1](https://axkibe.github.io/lsyncd/manual/config/layer1/) about inlets | | event.etype | the event type. Can be 'ATTRIB', 'CREATE', 'MODIFY', 'DELETE', 'MOVE' | | event.status | the status of the event. 'wait' when it is ready to be spawned and 'active' if there is a process running associated with this event | | event.isdir | true if the event relates to a directory | -|event.name | the filename, directories end with a slash | +| event.name | the filename, directories end with a slash | | event.basename | the filename, directories do not end with a slash | -| event.path | see ^path of [Layer 3][l3-all-vars] | -|event.pathname | see ^pathname of [Layer 3][l3-all-vars] | -| event.source | see ^source of [Layer 3][l3-all-vars] | -| event.sourcePath | see ^sourcePath of [Layer 3][l3-all-vars] | -|event.sourcePathname | see ^sourcePathname of [Layer 3][l3-all-vars] | -|event.target | see ^target of [Layer 3][l3-all-vars] | -|event.targetPath | see ^targetPath of [Layer 3][l3-all-vars] | -|event.targetPathname | see ^targetPathname of [Layer 3][l3-all-vars] | -[l3-all-vars]:../wiki/Lsyncd-2.1.x-‖-Layer-3-Config-‖-Simple-onAction#all-possible-variables +| event.path | see ^path of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | +| event.pathname | see ^pathname of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | +| event.source | see ^source of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | +| event.sourcePath | see ^sourcePath of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | +| event.sourcePathname | see ^sourcePathname of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | +| event.target | see ^target of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | +| event.targetPath | see ^targetPath of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | +| event.targetPathname | see ^targetPathname of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | + onMove actions have two events as parameter, the origin and the destination of the move. This example will tattle about all moves within the observed directory tree. From 9b31b8c2e91b5132851709ec6f78333b3fcb8811 Mon Sep 17 00:00:00 2001 From: shiftky Date: Wed, 8 Jun 2016 23:18:45 +0900 Subject: [PATCH 2/2] Use site.url variable --- manual/config/layer2/index.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/manual/config/layer2/index.md b/manual/config/layer2/index.md index b29ebd7..4bfc043 100644 --- a/manual/config/layer2/index.md +++ b/manual/config/layer2/index.md @@ -59,20 +59,20 @@ Variables of the actions are given by the _event_ field. It has following fields |Field|Meaning| |:----|:----| | event.config | the configuration as called with sync{} | -| event.inlet | see [layer 1](https://axkibe.github.io/lsyncd/manual/config/layer1/) about inlets | +| event.inlet | see [layer 1]({{ site.url }}/manual/config/layer1/) about inlets | | event.etype | the event type. Can be 'ATTRIB', 'CREATE', 'MODIFY', 'DELETE', 'MOVE' | | event.status | the status of the event. 'wait' when it is ready to be spawned and 'active' if there is a process running associated with this event | | event.isdir | true if the event relates to a directory | | event.name | the filename, directories end with a slash | | event.basename | the filename, directories do not end with a slash | -| event.path | see ^path of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | -| event.pathname | see ^pathname of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | -| event.source | see ^source of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | -| event.sourcePath | see ^sourcePath of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | -| event.sourcePathname | see ^sourcePathname of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | -| event.target | see ^target of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | -| event.targetPath | see ^targetPath of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | -| event.targetPathname | see ^targetPathname of [Layer 3](https://axkibe.github.io/lsyncd/manual/config/layer3/#all-possible-variables) | +| event.path | see ^path of [Layer 3]({{ site.url }}/manual/config/layer3/#all-possible-variables) | +| event.pathname | see ^pathname of [Layer 3]({{ site.url }}/manual/config/layer3/#all-possible-variables) | +| event.source | see ^source of [Layer 3]({{ site.url }}/manual/config/layer3/#all-possible-variables) | +| event.sourcePath | see ^sourcePath of [Layer 3]({{ site.url }}/manual/config/layer3/#all-possible-variables) | +| event.sourcePathname | see ^sourcePathname of [Layer 3]({{ site.url }}/manual/config/layer3/#all-possible-variables) | +| event.target | see ^target of [Layer 3]({{ site.url }}/manual/config/layer3/#all-possible-variables) | +| event.targetPath | see ^targetPath of [Layer 3]({{ site.url }}/manual/config/layer3/#all-possible-variables) | +| event.targetPathname | see ^targetPathname of [Layer 3]({{ site.url }}/manual/config/layer3/#all-possible-variables) | onMove actions have two events as parameter, the origin and the destination of the move.