### Project Setup and Dependencies
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
Installs Node.js packages required for the project using Yarn. Ensure you have Yarn 2.x or newer installed.
```bash
yarn install
```
--------------------------------
### Serving Release Files
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
Starts a simple HTTP server in the `docs` folder to serve the generated release files.
```bash
yarn server
```
--------------------------------
### Previewing API Documentation
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
Starts a local development server to preview the API documentation. Access the live preview at http://localhost:8080.
```bash
yarn preview
```
--------------------------------
### Live Reloading Documentation Changes
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
Starts a file watcher that automatically reloads the documentation pages in the browser after a 2-second delay upon file changes.
```bash
yarn reload
```
--------------------------------
### Building API Documentation Files
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
Compiles the OpenAPI source files into master JSON and YAML files. This process includes bundling the YAML and JSON outputs.
```bash
yarn build
```
--------------------------------
### RapiDoc Integration in index.html
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
The `index.html` file in the `docs` folder utilizes RapiDoc for rendering the API documentation.
```html
PodcastIndex API Docs
```
--------------------------------
### Redoc Integration in template.html
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
The `template.html` file is used by Redoc for previewing the API documentation when running `yarn preview`.
```html
PodcastIndex API Docs
```
--------------------------------
### Generating Master OpenAPI YAML File
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
Creates the `pi_api.yaml` file in the `docs` folder, which is the master OpenAPI specification in YAML format.
```bash
yarn bundle_yaml
```
--------------------------------
### Linting OpenAPI Source Files
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
Runs the Redoc linter against the source YAML files to check for compliance and potential issues.
```bash
yarn lint
```
--------------------------------
### OpenAPI Specification Structure
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
Describes the recommended folder structure for OpenAPI projects, including `api_src` for source files and `docs` for generated output.
```yaml
api_src:
root.yaml
paths/
components/
callbacks/
examples/
headers/
links/
parameters/
requestBodies/
responses/
schemas/
securitySchemes/
docs:
index.html
template.html
```
--------------------------------
### Generating Master OpenAPI JSON File
Source: https://github.com/podcastindex-org/docs-api/blob/master/README.md
Creates the `pi_api.json` file in the `docs` folder, which is the master OpenAPI specification in JSON format.
```bash
yarn bundle_json
```
--------------------------------
### Podcast Index API Specification Formats
Source: https://github.com/podcastindex-org/docs-api/blob/master/docs/index.html
Provides links to download the Podcast Index API documentation in standard OpenAPI specification formats. This allows developers to easily integrate with the API using tools that understand these formats.
```APIDOC
OpenAPI Specification:
- Format: JSON
Link: pi_api.json
- Format: YAML
Link: pi_api.yaml
```
--------------------------------
### Podcast Index API Documentation Source
Source: https://github.com/podcastindex-org/docs-api/blob/master/docs/index.html
Provides a link to the GitHub repository where the API documentation is hosted and managed. This allows users to view the source, contribute, or find additional information about the documentation's development.
```APIDOC
Source Repository:
- Platform: GitHub
URL: https://github.com/Podcastindex-org/docs-api
```
--------------------------------
### Podcast Index API Documentation Requirements
Source: https://github.com/podcastindex-org/docs-api/blob/master/docs/index.html
Indicates that JavaScript is a necessary requirement for viewing and interacting with the API documentation on this page. This suggests that dynamic content or interactive elements are utilized.
```APIDOC
Requirements:
- JavaScript: Enabled (required for documentation access)
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.