Skip to content

Commit

Permalink
docs: switch doc engine to Docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
zavakid committed Apr 27, 2024
1 parent 2d321c9 commit c6f3c2a
Show file tree
Hide file tree
Showing 21 changed files with 43 additions and 648 deletions.
14 changes: 0 additions & 14 deletions docs.old/book.toml

This file was deleted.

6 changes: 0 additions & 6 deletions docs.old/src/SUMMARY.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs.old/src/pipeline-direction.md

This file was deleted.

148 changes: 0 additions & 148 deletions docs.old/src/quick-start.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs.old/src/readme.md

This file was deleted.

26 changes: 26 additions & 0 deletions docs/docs/tutorial-advanced/01-direction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
sidebar_position: 1
---
# Pipeline Direction

The auto-pipeline also introduced the `@PipelineDirection` annotation for the pipeline.

## Specify the direction

We can specify the direction on methods or interfaces.

The default direction is `@Direction.FORWARD`, here's the rules:

- Rule1: in the `@AutoPipelin` interface's method, we can:
- add `Direction.FORWARD` to apply the interface's method, the annotated method will be called from head to tail
- add `Direction.REVERSE` to apply the interface's method, the annotated method will be called from tail to head
- if there's no `Direction annotation` to the method, the direction of pipeline will follow the `Direction` in the in the `@AutoPipeline` interface, see rule2
- `Direction.FORWARD` and `Direction.REVERSE` are mutually exclusive, they cannot coexist
- Rule2: in the `@AutoPipeline` interface, we can:
- add `Direction.FORWARD` to the `@AutoPipeline` interface, the methods declared in this interface will be called from head to tail unless the method is annotated with `Direction` in the method level
- add `Direction.REVERSE` to the `@AutoPipeline` interface, the methods declared in this interface will be called from tail to head unless the method is annotated with `Direction` in the method level
- if no `Direction` annotation to the `@AutoPipeline` interface, it equals to add `Direction.FORWARD` to the `@AutoPipeline` interface
- `Direction.FORWARD` and `Direction.REVERSE` are mutually exclusive, they cannot coexist

## Direction example
For examples, please check the [RPC example](https://github.com/foldright/auto-pipeline/blob/main/auto-pipeline-examples/src/main/java/com/foldright/examples/duplexing/RPC.java) and the [test case](https://github.com/foldright/auto-pipeline/blob/main/auto-pipeline-examples/src/test/java/com/foldright/examples/duplexing/pipeline/RPCTest.kt).
File renamed without changes.
1 change: 1 addition & 0 deletions docs/docs/tutorial-basics/01-quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,4 @@ That's all, the `@AutoPipeline` help you generate the Pipeline Design Pattern Co

## What's next?
- check the runnable [test case](https://github.com/foldright/auto-pipeline/blob/main/auto-pipeline-examples/src/test/java/com/foldright/examples/config/pipeline/ConfigSourceTest.kt) for details.
- check out the [example project](https://github.com/foldright/auto-pipeline/tree/main/auto-pipeline-examples/src/main/java/com/foldright/examples)
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
sidebar_position: 2
---
# Examples

check out the [example project](https://github.com/foldright/auto-pipeline/tree/main/auto-pipeline-examples/src/main/java/com/foldright/examples)


23 changes: 0 additions & 23 deletions docs/docs/tutorial-basics/congratulations.md

This file was deleted.

34 changes: 0 additions & 34 deletions docs/docs/tutorial-basics/create-a-blog-post.md

This file was deleted.

57 changes: 0 additions & 57 deletions docs/docs/tutorial-basics/create-a-document.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/docs/tutorial-basics/deploy-your-site.md

This file was deleted.

Loading

0 comments on commit c6f3c2a

Please sign in to comment.