Skip to content

Commit 614b7e5

Browse files
committed
Bump version to v1.0.3-canary.2
1 parent 73ce29e commit 614b7e5

30 files changed

+12733
-3
lines changed

desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "badger-desktop",
33
"productName": "Badger Desktop",
4-
"version": "1.0.3-canary.1",
4+
"version": "1.0.3-canary.2",
55
"description": "My Electron application description",
66
"main": "./out/main/index.js",
77
"scripts": {

handbook/.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*
21+
22+
.pnp.*
23+
.yarn/*
24+
!.yarn/patches
25+
!.yarn/plugins
26+
!.yarn/releases
27+
!.yarn/sdks
28+
!.yarn/versions

handbook/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Badger Handbook
2+
3+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

handbook/babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
3+
};

handbook/blog/authors.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
markspolakovs:
2+
name: Marks Polakovs
3+
title: Badger developer
4+
url: https://github.com/markspolakovs
5+
image_url: https://github.com/markspolakovs.png

handbook/docs/Badger.png

58.1 KB
Loading

handbook/docs/data_model.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
sidebar_order: 3
3+
---
4+
5+
# Data Model
6+
7+
:::warning
8+
9+
This structure may be subject to change.
10+
Follow issue [BDGR-145](https://github.com/ystv/badger/issues/277) for updates.
11+
12+
:::
13+
14+
Badger's top-level concept is a _show_, which is broken down into _rundowns_ and/or _continuity items_. Rundowns, in turn, have _rundown items_, which can be ether segments or VTs (video tapes, pre-recorded content) as well as _assets_. Both shows and rundowns can also have _metadata_. VTs, continuity items, and assets have _media_ attached.

handbook/docs/intro.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Introduction to Badger
6+
7+
Badger is a tool to help with media management and automation for live broadcast.
8+
9+
It provides a web-based tool to set up show rundowns and upload media files, and a desktop app to interface with [OBS](https://obsproject.com/), [vMix](https://www.vmix.com/), and [Ontime](https://getontime.no/).
10+
11+
## Architecture
12+
13+
Badger has three primary components: Server, Jobrunner, and Desktop.
14+
15+
Server provides the web interface for setting up shows.
16+
17+
Jobrunner handles media processing, including checking file quality and normalising loudness.
18+
19+
Desktop interfaces with Server to automatically import media into OBS and vMix, and load the running order into Ontime.
20+
21+
Badger also requires a few other services to function:
22+
23+
- A [PostgreSQL](https://www.postgresql.org/) database
24+
- [Minio](https://min.io/) (or other S3-compatible) file storage
25+
- [Tusd](https://github.com/tus/tusd) (or other [Tus](https://tus.io)-compatible) file upload server
26+
27+
![Badger architecture diagram](./Badger.png)

handbook/docs/requirements.mdx

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import composeFile from "!!raw-loader!../../docker-compose-example.yml";
2+
import CodeBlock from "@theme/CodeBlock";
3+
4+
export const sidebar_position = 2;
5+
export const sidebar_label = "Installation";
6+
7+
# Requirements
8+
9+
Badger has three primary components: Server, Jobrunner, and Desktop.
10+
11+
Server must be accessible from the internet or your local network. Jobrunner runs as a stand-alone service and does not need to be accessible from the internet.
12+
13+
Server and Jobrunner are distributed as Docker images and must be run in a Docker environment. Desktop is distributed as a Windows installer.
14+
15+
Desktop must be installed on the same computer as OBS/vMix, and currently only officially supports Windows (it can be built for macOS and Linux, but official builds are not provided).
16+
17+
Badger also requires a few other services to function:
18+
19+
- A [PostgreSQL](https://www.postgresql.org/) database
20+
- [Minio](https://min.io/) (or other S3-compatible) file storage (which could be S3 itself)
21+
- [Tusd](https://github.com/tus/tusd) (or other [Tus](https://tus.io)-compatible) file upload server
22+
23+
## Docker Installation
24+
25+
Badger Server and Jobrunner are distributed as Docker images. You can run them using Docker Compose. Here is an example `docker-compose.yml` file:
26+
27+
<CodeBlock language="yaml" metastring="docker-compose.yml">
28+
{composeFile}
29+
</CodeBlock>
30+
31+
### Access
32+
33+
Once you have Badger running, you can access the web interface at `http://localhost:3000` (or the IP address of the server if you are running it remotely).
34+
35+
## Desktop
36+
37+
The Badger Desktop app is distributed as a Windows installer. You can download it from the [Badger releases page](https://github.com/ystv/badger/releases).
38+
39+
:::note[What's a YSTV build?]
40+
41+
On the releases page you will see `ystv` in some of the build names.
42+
These are builds of Badger Desktop that are connected to [YSTV](https://ystv.co.uk)'s Sentry instance.
43+
We'd suggest you only use these if you are a member of YSTV, otherwise use the non-`ystv` builds.
44+
45+
:::
46+
47+
### Configuration
48+
49+
When running Badger Desktop, you will be asked for a server URL and a password.
50+
The server URL is the address of your Badger Server, and the password is the value of the `API_SHARED_SECRET` environment variable.

handbook/docusaurus.config.ts

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
import { themes as prismThemes } from "prism-react-renderer";
2+
import type { Config } from "@docusaurus/types";
3+
import type * as Preset from "@docusaurus/preset-classic";
4+
5+
const config: Config = {
6+
title: "Badger",
7+
tagline: "Media management for live broadcast",
8+
favicon: "img/favicon.ico",
9+
10+
// Set the production url of your site here
11+
url: "https://ystv.github.io",
12+
// Set the /<baseUrl>/ pathname under which your site is served
13+
// For GitHub pages deployment, it is often '/<projectName>/'
14+
baseUrl: "/badger/",
15+
16+
// GitHub pages deployment config.
17+
// If you aren't using GitHub pages, you don't need these.
18+
organizationName: "ystv", // Usually your GitHub org/user name.
19+
projectName: "badger", // Usually your repo name.
20+
21+
onBrokenLinks: "throw",
22+
onBrokenMarkdownLinks: "warn",
23+
24+
// Even if you don't use internationalization, you can use this field to set
25+
// useful metadata like html lang. For example, if your site is Chinese, you
26+
// may want to replace "en" with "zh-Hans".
27+
i18n: {
28+
defaultLocale: "en",
29+
locales: ["en"],
30+
},
31+
32+
presets: [
33+
[
34+
"classic",
35+
{
36+
docs: {
37+
sidebarPath: "./sidebars.ts",
38+
// Please change this to your repo.
39+
// Remove this to remove the "edit this page" links.
40+
editUrl: "https://github.com/ystv/badger/tree/main/handbook/",
41+
},
42+
blog: {
43+
showReadingTime: true,
44+
// Please change this to your repo.
45+
// Remove this to remove the "edit this page" links.
46+
editUrl: "https://github.com/ystv/badger/tree/main/handbook/",
47+
},
48+
theme: {
49+
customCss: "./src/css/custom.css",
50+
},
51+
} satisfies Preset.Options,
52+
],
53+
],
54+
55+
themeConfig: {
56+
// Replace with your project's social card
57+
image: "img/docusaurus-social-card.jpg",
58+
navbar: {
59+
title: "Badger",
60+
logo: {
61+
alt: "Badger Logo",
62+
src: "img/logo.svg",
63+
},
64+
items: [
65+
{
66+
type: "docSidebar",
67+
sidebarId: "docsSidebar",
68+
position: "left",
69+
label: "Docs",
70+
},
71+
{ to: "/blog", label: "Blog", position: "left" },
72+
{
73+
href: "https://github.com/ystv/badger",
74+
label: "GitHub",
75+
position: "right",
76+
},
77+
],
78+
},
79+
footer: {
80+
style: "dark",
81+
links: [
82+
{
83+
title: "Docs",
84+
items: [
85+
{
86+
label: "Tutorial",
87+
to: "/docs/intro",
88+
},
89+
],
90+
},
91+
{
92+
title: "More",
93+
items: [
94+
{
95+
label: "Blog",
96+
to: "/blog",
97+
},
98+
{
99+
label: "GitHub",
100+
href: "https://github.com/ystv/badger",
101+
},
102+
],
103+
},
104+
],
105+
copyright: `Copyright © ${new Date().getFullYear()} York Student Television. Built with Docusaurus.`,
106+
},
107+
prism: {
108+
theme: prismThemes.github,
109+
darkTheme: prismThemes.dracula,
110+
},
111+
} satisfies Preset.ThemeConfig,
112+
};
113+
114+
export default config;

0 commit comments

Comments
 (0)