Code Monkey home page Code Monkey logo

elegant-api-docs's Introduction

elegant-api-docs

An elegant and simple OpenAPI Documentation project based on VuePress + MarkDown

Hint

Through the capabilities provided by vuepress, This is an online web document that can be quickly built by focusing on writing markdown documents. We use it to build project manuals and OpenAPI documents.

  • If you are keen on maintaining API documentation by hand, this repo may be for you. If you prefer Swagger UI-like simplicity, well...

  • Imitation of the API interface document layout of the Feishu open platform

  • Since it is written in standard MarkDown (HTML), it is easy to integrate your own projects

Directory tree

  • List the key file contents. If it is deeply integrated, it is recommended to learn about vuepress
.
├── .gitignore
├── README.md
├── docs
│   ├── .vuepress
│   │   ├── client.ts
│   │   ├── config.ts            // configuration management
│   │   └── public
│   ├── index.md
│   ├── infra
│   │   ├── assets
│   │   │   └── images
│   │   ├── note
│   │   │   ├── 01.md
│   │   │   ├── 02.md
│   │   │   └── 03.md
│   │   ├── open-api             // your api docs
│   │   │   ├── access-token.md
│   │   │   ├── create-project.md
│   │   │   ├── delete-project.md
│   │   │   ├── list-project.md
│   │   │   ├── overview.md
│   │   │   ├── query-project.md
│   │   │   └── update-project.md
│   │   └── project.md
│   └── zh
├── package.json
└── yarn.lock

How to run

  • Run the perl script in the root path of the project
➜  elegant-api-docs git:(master)  ./start.pl
1. Build Environment
yarn install v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
✨  Done in 1.55s.

2. Startup project
yarn run v1.22.19
$ vuepress dev docs --config docs/.vuepress/config.ts
✔ Initializing and preparing data - done in 175ms
Port 8080 is in use, trying another one...

  vite v3.1.8 dev server running at:

  ➜  Local:   http://localhost:8081/docs/

Web screenshot

  • API documentation style

image

  • A multi-level request body display example

image

  • Standard and unified response body format, as well as troubleshooting suggestions

image

elegant-api-docs's People

Contributors

pokeyaro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.