Skip to content

Commit

Permalink
README to documentation synchro
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-lando committed Nov 13, 2023
1 parent 132c263 commit 78fafe4
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/create-documentation-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create documentation PR
on:
# Trigger the workflow on pull requests targeting the main branch
pull_request:
types: [assigned, unassigned, opened, reopened, synchronize, edited, labeled, unlabeled, edited, closed]
branches:
- main

jobs:
create_documentation_pr:
if: github.event.action != 'closed'

runs-on: ubuntu-latest

steps:
- name: Check out current repository code
uses: actions/checkout@v2

- name: Create the documentation pull request
uses: apivideo/api.video-create-readme-file-pull-request-action@main
with:
source-file-path: "README.md"
destination-repository: apivideo/api.video-api-client-generator
destination-path: templates/documentation/sdks/player
destination-filename: apivideo-videojs-analytics.md
pat: "${{ secrets.PAT }}"

28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--<documentation_excluded>-->
[![badge](https://img.shields.io/twitter/follow/api_video?style=social)](https://twitter.com/intent/follow?screen_name=api_video) &nbsp; [![badge](https://img.shields.io/github/stars/apivideo/api.video-videojs-analytics?style=social)](https://github.com/apivideo/api.video-videojs-analytics) &nbsp; [![badge](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.api.video)](https://community.api.video)
![](https://github.com/apivideo/.github/blob/main/assets/apivideo_banner.png)
![npm](https://img.shields.io/npm/v/@api.video/videojs-player-analytics) ![ts](https://badgen.net/badge/-/TypeScript/blue?icon=typescript&label)
Expand All @@ -6,7 +7,7 @@
[api.video](https://api.video) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.


# Table of contents
## Table of contents

- [Table of contents](#table-of-contents)
- [Project description](#project-description)
Expand All @@ -16,15 +17,28 @@
- [Method #2: typescript](#method-2-typescript)
- [Method #3: simple include in a javascript project](#method-3-simple-include-in-a-javascript-project)

# Project description
<!--</documentation_excluded>-->
<!--<documentation_only>
---
title: api.video video.js analytics plugin
meta:
description: The official api.video video.js analytics plugin for api.video. [api.video](https://api.video/) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.
---
# api.video video.js analytics plugin
[api.video](https://api.video/) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.
</documentation_only>-->
## Project description

video.js plugin to call the api.video analytics collector.

# Getting started
## Getting started

## Installation
### Installation

### Method #1: requirejs
#### Method #1: requirejs

If you use requirejs you can add the plugin as a dependency to your project with

Expand All @@ -43,7 +57,7 @@ const player = videojs('my-video');
player.apiVideoAnalytics();
```

### Method #2: typescript
#### Method #2: typescript

If you use Typescript you can add the plugin as a dependency to your project with

Expand All @@ -64,7 +78,7 @@ player.apiVideoAnalytics();

```

### Method #3: simple include in a javascript project
#### Method #3: simple include in a javascript project

Include the plugin in your HTML file like so:

Expand Down

0 comments on commit 78fafe4

Please sign in to comment.