Skip to content

Commit

Permalink
Adding mkdocs files wherever necessary and correcting names
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridx committed Sep 1, 2023
1 parent d5596c4 commit 2ee60be
Show file tree
Hide file tree
Showing 15 changed files with 137 additions and 9 deletions.
9 changes: 9 additions & 0 deletions catalog/systems/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
site_name: 'One Platform'

nav:
- What's One Platform: overview.md
- One Platform Architecture: op-architecture.md
- OP Service Deployment Guideline: service-deployment-guideline.md
- SPA Deployment Guideline: spa-deployment-guidelines.md
- How to Contribute: how-to-contribute.md
- Code Of Conduct: code-of-conduct.md


plugins:
- techdocs-core
2 changes: 1 addition & 1 deletion packages/analytics-service/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# analytics Microservice
# Analytics Microservice

Analytics microservice is used for providing analytics api information for SPAs deployed in One Platform by connecting with Sentry and Pendo

Expand Down
1 change: 0 additions & 1 deletion packages/api-catalog-spa/catalog-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
annotations:
lighthouse.com/website-url: https://one.redhat.com/developers/api-catalog
github.com/project-slug: '1-Platform/one-platform'
backstage.io/techdocs-ref: dir:.
servicenow.com/appcode: ONEP-007
spaship.io/property-id: 'one-platform'
spaship.io/app-id: 'op-api-catalog'
Expand Down
2 changes: 1 addition & 1 deletion packages/api-gateway-service/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
site_name: 'Analytics Service'
site_name: 'API Gateway Service'

nav:
- Getting Started: index.md
Expand Down
49 changes: 49 additions & 0 deletions packages/apps-service/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Apps Microservice

Apps Microservice provides the essential GraphQL APIs required for the Developer Console. It provides graphql queries for creating and managing apps.

## Features

- Allows creation of apps/projects
- Allows configuration of databases (Requires a couchdb instance)

## Local Development

### 1. Switch to the working directory

1. Switch to the working directory `cd apps-service`
2. Copy the `.env.example` to the `.env`
3. Change the values as needed, keeping the unneeded values as undefined

### 2. Start Microservice

Run `npm start` to run your microservice for dev env

To build the microservice, use `npm run build`.

## Using docker-compose (Recommended)

1. Follow the first 2 steps from above
2. Then execute the following command to start a standalone instance of `apps-service`

```bash
docker-compose up -d apps-service
```

**Note:** Some features of the App Service might not work without the API Gateway.

3. To start the entire cluster of microservices, use the following command

```bash
docker-compose up -d api-gateway
```

## Runnninng Tests

```bash
npm test
```

## Contributors:

👤 **Mayur Deshmukh** [@deshmukhmayur](https://github.com/deshmukhmayur)
51 changes: 51 additions & 0 deletions packages/component-catalog-spa/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
id: component-lib-overview
title: OP Components
slug: /op-components
sidebar_label: Overview
---

One platform component library is a collection of web components which are built using lit-element, each component following the red hat brand guideline. LitElement follows the Web Components standards, so your components will work with any framework.

## Guides

### Component creation

1. Go to `https://github.com/1-Platform/op-components` and fork this repository

2. Clone the forked repository

```sh
git clone git@github.com:1-Platform/op-components.git
```

3. Install Packages

```sh
npm i
```

4. To create a new package run

```sh
npm run new
```

5. Alternatively to run a component

```sh
npm run dev <component-name>
```

6. OP-Styles

Which includes the common style, which can be used in other components.
Documentation Link

### Quick Start Guide

To Use the component from the library go packages into GitHub Repo or its corresponding [npm package](https://1-platform.github.io/op-components).

All of the packages are published on [npmjs](https://www.npmjs.com/org/one-platform)

The usage for all of the components is mentioned in their respective README, which is also available on npmjs. [(example)](https://www.npmjs.com/package/@one-platform/opc-footer)
6 changes: 6 additions & 0 deletions packages/component-catalog-spa/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
site_name: 'Component Catalog'

nav:
- Getting Started: index.md
plugins:
- techdocs-core
1 change: 0 additions & 1 deletion packages/developer-console-spa/catalog-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
annotations:
lighthouse.com/website-url: https://one.redhat.com/console
github.com/project-slug: '1-Platform/one-platform'
backstage.io/techdocs-ref: dir:.
servicenow.com/appcode: ONEP-001
spaship.io/property-id: 'one-platform'
spaship.io/app-id: 'developer-console'
Expand Down
1 change: 0 additions & 1 deletion packages/doc-spa/catalog-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
annotations:
lighthouse.com/website-url: https://one.redhat.com/get-started
github.com/project-slug: '1-Platform/one-platform'
backstage.io/techdocs-ref: dir:.
servicenow.com/appcode: ONEP-001
spaship.io/property-id: 'one-platform'
spaship.io/app-id: 'op-docs'
Expand Down
1 change: 0 additions & 1 deletion packages/feedback-spa/catalog-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
annotations:
lighthouse.com/website-url: https://one.redhat.com/feedback
github.com/project-slug: '1-Platform/one-platform'
backstage.io/techdocs-ref: dir:.
servicenow.com/appcode: ONEP-004
spaship.io/property-id: 'one-platform'
spaship.io/app-id: 'developer-console'
Expand Down
1 change: 0 additions & 1 deletion packages/home-spa/catalog-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
annotations:
lighthouse.com/website-url: https://one.redhat.com
github.com/project-slug: '1-Platform/one-platform'
backstage.io/techdocs-ref: dir:.
servicenow.com/appcode: ONEP-001
spaship.io/property-id: 'one-platform'
spaship.io/app-id: 'home-spa'
Expand Down
1 change: 0 additions & 1 deletion packages/lighthouse-spa/catalog-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
annotations:
lighthouse.com/website-url: https://one.redhat.com/lighthouse
github.com/project-slug: '1-Platform/one-platform'
backstage.io/techdocs-ref: dir:.
servicenow.com/appcode: ONEP-008
spaship.io/property-id: 'one-platform'
spaship.io/app-id: 'lighthouse-spa'
Expand Down
13 changes: 13 additions & 0 deletions packages/reverse-proxy-service/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Reverse Proxy

A simple express server that acts as a reverse-proxy/authentication layer for some internal services and APIs.

Currently, the reverse-proxy contains middleware rules for:

- CouchDB: An open-source document-oriented NoSQL database.
- Keycloak Auth: An auth middleware to apply Keycloak SSO Auth to some restricted URLs
- A no-cors proxy middleware: Used for API Catalog

## License

This sub-package, like it's parent monorepository, is licensed under [MIT License](../../LICENSE).
7 changes: 7 additions & 0 deletions packages/reverse-proxy-service/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
site_name: 'Analytics Service'

nav:
- Getting Started: index.md

plugins:
- techdocs-core
1 change: 0 additions & 1 deletion packages/search-spa/catalog-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
annotations:
lighthouse.com/website-url: https://one.redhat.com/search
github.com/project-slug: '1-Platform/one-platform'
backstage.io/techdocs-ref: dir:.
servicenow.com/appcode: ONEP-001
spaship.io/property-id: 'one-platform'
spaship.io/app-id: 'search'
Expand Down

0 comments on commit 2ee60be

Please sign in to comment.