Skip to content

Commit

Permalink
Fix licenseUrl for demos
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Feb 21, 2024
1 parent 7a2ccbb commit 130b9a0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Generated files
.docusaurus
.cache-loader
static/theoplayer-license
static/theoplayer-license.txt

# Misc
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Generated files
.docusaurus
.cache-loader
static/theoplayer-license
static/theoplayer-license.txt

# Submodules
theoplayer/external/
Expand Down
4 changes: 2 additions & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { version as webUiVersion } from './open-video-ui/external/web-ui/package
import path from 'path';
import fs from 'fs';

// THEOplayer license URL: /docs/theoplayer-license
// THEOplayer license URL: /docs/theoplayer-license.txt
const theoplayerLicense = process.env.THEOPLAYER_LICENSE || '';
fs.writeFileSync(path.join(__dirname, 'static/theoplayer-license'), theoplayerLicense);
fs.writeFileSync(path.join(__dirname, 'static/theoplayer-license.txt'), theoplayerLicense);

const docsConfigBase = {
include: [
Expand Down
2 changes: 1 addition & 1 deletion theoplayer/static/theoplayer-examples/v6/basic/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// to point to THEOplayer's location on your own website.
libraryLocation: 'https://unpkg.com/theoplayer@6/',
// Change this property to point to your THEOplayer license file:
licenseUrl: '/docs/theoplayer-license',
licenseUrl: '/docs/theoplayer-license.txt',
// Alternatively, uncomment this, change its value to your THEOplayer license, and remove "licenseUrl":
// license: 'your_theoplayer_license',
});
Expand Down

0 comments on commit 130b9a0

Please sign in to comment.