Skip to content

Commit 85e7d61

Browse files
Feature/idp 1987 update docs (#27)
* improve documentation * fix type * fix diagram namings
1 parent f2f35a7 commit 85e7d61

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"bierner.markdown-mermaid",
4+
],
5+
}

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Tools to generate TypeScript schemas from OpenAPI. It leverage [openapi-typescri
1212
| [@workleap/create-schemas](https://www.npmjs.org/package/@workleap/create-schemas)| [![NPM Version](http://img.shields.io/npm/v/@workleap/create-schemas.svg?style=flat)](https://www.npmjs.org/package/@workleap/create-schemas) |
1313

1414

15+
1516
## Usages
1617

1718
Add a script in package.json to call `@workleap/create-schemas`
@@ -188,6 +189,13 @@ export type Endpoints = keyof paths;
188189

189190
For more details on how to use see [openapi-typescript documentation](https://openapi-ts.pages.dev/introduction)
190191

192+
## Documentation
193+
194+
For documentations, please visit [our website](https://gsoft-inc.github.io/wl-openapi-typescript/).
195+
196+
The documentation is automatically generated on each release from the files in the docs directory.
197+
198+
191199
## 🤝 Contributing
192200

193201
View the [contributor's documentation](./CONTRIBUTING.md).

docs/retype.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ edit:
2020
base: ./apps/docs/src
2121
branch: main
2222

23+
links:
24+
- text: Github
25+
icon: mark-github
26+
link:https://gsoft-inc.github.io/wl-openapi-typescript
27+
target: blank
28+
2329
footer:
2430
copyright: "© Copyright {{ year }} - Workleap"
2531

docs/src/using-plugins.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ The Plugin API is currently marked as **unstable**. It may change at any time.
142142
If you desire a specific plugin, please [open an issue on Github](https://github.com/gsoft-inc/wl-openapi-typescript/issues).
143143
!!!
144144

145+
!!!
146+
This work is inspired by [Rollup plugin development](https://rollupjs.org/plugin-development/).
147+
!!!
148+
145149
A plugin is an object with a `name` and one or more [build hooks](#build-hooks), which follows our conventions. A plugin should export a function that can be called with plugin specific options and returns such an object.
146150

147151
Plugins allow you to customize `@workleap/create-schemas` behavior by, for example, modifying code before writing the files to disk.
@@ -186,8 +190,10 @@ flowchart TB
186190
classDef parallel fill:#FFB3B3,color:black
187191
classDef sequential fill:#FFD2B3,color:black
188192
189-
parallel(parallel):::parallel
190-
sequential(sequential):::sequential
193+
subgraph Legend
194+
parallel(parallel):::parallel
195+
sequential(sequential):::sequential
196+
end
191197
192198
subgraph generate
193199
direction TB
@@ -196,7 +202,9 @@ flowchart TB
196202
--> gen_C(buildEnd):::parallel
197203
end
198204
199-
A[start] --> B(resolveConfig) --> generate --> E[write files]
205+
subgraph  
206+
A[start] --> B(resolveConfig) --> generate --> E[write files]
207+
end
200208
```
201209

202210
### buildStart

0 commit comments

Comments
 (0)