Skip to content

Commit

Permalink
Feature/idp 1987 update docs (#27)
Browse files Browse the repository at this point in the history
* improve documentation

* fix type

* fix diagram namings
  • Loading branch information
mahmoudmoravej authored Jul 31, 2024
1 parent f2f35a7 commit 85e7d61
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"bierner.markdown-mermaid",
],
}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Tools to generate TypeScript schemas from OpenAPI. It leverage [openapi-typescri
| [@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) |



## Usages

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

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

## Documentation

For documentations, please visit [our website](https://gsoft-inc.github.io/wl-openapi-typescript/).

The documentation is automatically generated on each release from the files in the docs directory.


## 🤝 Contributing

View the [contributor's documentation](./CONTRIBUTING.md).
6 changes: 6 additions & 0 deletions docs/retype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ edit:
base: ./apps/docs/src
branch: main

links:
- text: Github
icon: mark-github
link:https://gsoft-inc.github.io/wl-openapi-typescript
target: blank

footer:
copyright: "© Copyright {{ year }} - Workleap"

Expand Down
14 changes: 11 additions & 3 deletions docs/src/using-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ The Plugin API is currently marked as **unstable**. It may change at any time.
If you desire a specific plugin, please [open an issue on Github](https://github.com/gsoft-inc/wl-openapi-typescript/issues).
!!!

!!!
This work is inspired by [Rollup plugin development](https://rollupjs.org/plugin-development/).
!!!

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.

Plugins allow you to customize `@workleap/create-schemas` behavior by, for example, modifying code before writing the files to disk.
Expand Down Expand Up @@ -186,8 +190,10 @@ flowchart TB
classDef parallel fill:#FFB3B3,color:black
classDef sequential fill:#FFD2B3,color:black
parallel(parallel):::parallel
sequential(sequential):::sequential
subgraph Legend
parallel(parallel):::parallel
sequential(sequential):::sequential
end
subgraph generate
direction TB
Expand All @@ -196,7 +202,9 @@ flowchart TB
--> gen_C(buildEnd):::parallel
end
A[start] --> B(resolveConfig) --> generate --> E[write files]
subgraph  
A[start] --> B(resolveConfig) --> generate --> E[write files]
end
```

### buildStart
Expand Down

0 comments on commit 85e7d61

Please sign in to comment.