For general support questions, please refer to the Community Forums.
Swagger Open Source Documentation
Welcome to the Swagger Open Source Documentation repository. This repository contains all the documentation for Swagger, an open-source suite of tools for API development, and OpenAPI Specification (FKA Swagger). The content of this repository is published at https://swagger.io/docs/.
Tech Stack
We use Astro to build and maintain our documentation. Astro is a powerful static site generator that allows us to create performant, content-rich documentation sites with ease.
Contributing
We welcome contributions from the community! To contribute:
- Fork the repository by clicking the "Fork" button on the top right of the repo page (this creates a copy under your GitHub account).
- Clone your fork (
git clone https://github.com/your-username/swagger.io-docs.git). - Create a new branch for your feature (
git checkout -b feature-branch-name). - Make your changes locally.
- Commit your changes (
git commit -m 'Add some feature'). - Push to your fork (
git push origin feature-branch-name). - Open a pull request from your fork on GitHub.
- A maintainer will review your changes and merge them if approved.
Please ensure your change adheres to best practices and is well-documented.
Running the Documentation Locally
Getting Started
To get started with contributing to the Swagger Open Source Docs, follow these steps:
Prerequisites
Ensure you have the following installed on your machine:
Installation
-
Clone the repository:
git clone https://github.com/swagger-api/swagger.io-docs.git cd swagger.io -
Install dependencies:
npm install # or yarn install
Running the Development Server
To start the development server and view the documentation locally:
npm run dev
# or
yarn devThis will start the development server at http://localhost:4321, where you can view and edit the documentation.
Building the Documentation
To build the documentation for production:
npm run build
# or
yarn buildThe built files will be output to the dist directory.
