Skip to content

Commit

Permalink
More docu (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu authored Feb 24, 2023
1 parent e5c6351 commit 4eca14f
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 10 deletions.
4 changes: 4 additions & 0 deletions docs/_navbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

* ---
* [Connectors](/articles/connectors/README.md)
* [Dummy](/articles/connectors/Dummy.md)
* [WebAPI](/articles/connectors/WebAPI.md)
* ---
* [Documenation compiler](/articles/ixd/IXD.md)
* ---
* [Blazor rendering](/articles/blazor/README.md)
* [Blazor layouts](/articles/blazor/LAYOUTS.md)
Expand Down
5 changes: 4 additions & 1 deletion docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
* [Added members](/articles/compiler/ADDED_MEMBERS.md)
* [Config file](/articles/compiler/CONFIG_FILE.md)
* [Packaging and dependencies](/articles/compiler/PACKAGING.md)

* ---
* [Documenation compiler](/articles/ixd/IXD.md)
* ---
* [Connectors](/articles/connectors/README.md)
* [Dummy](/articles/connectors/Dummy.md)
* [WebAPI](/articles/connectors/WebAPI.md)
* ---
* [Blazor rendering](/articles/blazor/README.md)
* [Blazor layouts](/articles/blazor/LAYOUTS.md)
Expand Down
9 changes: 9 additions & 0 deletions docs/articles/connectors/Dummy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Dummy

### [API](../../api/Ix.Connector/Ix.Connector/DummyConnector.md)

Provides the possibility to work with PLC twins without target system.

~~~C#
public static <PLC_TWIN_TYPE> Plc { get; } = new(ConnectorAdapterBuilder.Build().CreateDummy());
~~~
8 changes: 3 additions & 5 deletions docs/articles/connectors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,8 @@ HumanReadable property is the concatenation of AttributeName properties in the t

HumanReadable from `TurnLightsOff` is `App.Settings.Lights off`

## [Dummy](../../api/Ix.Connector/Ix.Connector/DummyConnector.md)

Provides the possibility to work with PLC twins without target system.
See also

## [WebAPI](../../api/Ix.Connector.Sax.WebAPI/Ix.Connector.Sax.WebAPI.md)
[Dummy Connector](Dummy.md)

Provides connectivity to S7-15XX PLC systems using WebAPI interface.
[WebAPI Connector](WebAPI.md)
9 changes: 9 additions & 0 deletions docs/articles/connectors/WebAPI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# WebAPI Connector

## [API](../../api/Ix.Connector.S71500.WebAPI/Ix.Connector.S71500.WebAPI.md)

Provides connectivity to S7-15XX PLC systems using WebAPI interface.

~~~C#
public static <PLC_TWIN_TYPE> Plc { get; } = new (ConnectorAdapterBuilder.Build().CreateWebApi(Environment.GetEnvironmentVariable("AXTARGET") ?? "10.10.101.1", "Everybody", "", true));
~~~
15 changes: 11 additions & 4 deletions docs/articles/ixd/IXD.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,26 @@ Docfx project will be generated with following folder structure:
```


### 3. Generate documentation with ixd
### 3. Install ixd tool

~~~
dotnet tool install Ix.ixd --prerelease --local
~~~

### 4. Generate documentation with ixd



```
ixd -x $PATH_TO_AX_PROJECT -o $PATH_TO_API_FOLDER
```
dotnet ixd -x $PATH_TO_AX_PROJECT -o $PATH_TO_API_FOLDER
=======
where:
`$PATH_TO_AX_PROJECT` -- is path to AX project, which contains apax.yml file
`$PATH_TO_API_FOLDER` -- is path to `api` output folder, which is located in docfx project
### 4. Build and run docfx docset
### 5. Build and run docfx docset
Enter following command in `docfx_project` project directory:
Expand Down

0 comments on commit 4eca14f

Please sign in to comment.