Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: initialize docusaurus #66

Merged
merged 5 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/deploy_docusaurus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#
# This workflow is based on the example workflow from the docusaurus documentation:
# https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
# The Docusaurus documentation is licensed under the CC-BY-4.0 license. See
# https://github.com/facebook/docusaurus/blob/6c7f2fde20b2448a1b966dd5f674205c0a08eeba/LICENSE-docs
# for more information.
#

name: "Deploy: Docusaurus Documentation"

on:
push:
branches:
- main

jobs:
build-docusaurus:
name: Build Docusaurus
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./docs

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
cache-dependency-path: './docs/package-lock.json'

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: yarn build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/build

deploy-docusaurus:
name: Deploy to GitHub Pages
needs: build-docusaurus

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

defaults:
run:
working-directory: ./docs

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
# that can be found in the LICENSE file.
#

name: "Watermarker: Generate API docs"
name: "Deploy: Watermarker API docs"

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# that can be found in the LICENSE file.
#

name: "CLI: Test"
name: "Test: CLI"

on:
push:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/test_docusaurus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#
# This workflow is based on the example workflow from the docusaurus documentation:
# https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
# The Docusaurus documentation is licensed under the CC-BY-4.0 license. See
# https://github.com/facebook/docusaurus/blob/6c7f2fde20b2448a1b966dd5f674205c0a08eeba/LICENSE-docs
# for more information.
#

name: "Test: Docusaurus Documentation Deployment"

on:
pull_request:
branches:
- main

jobs:
test-deploy-docusaurus:
name: Test deployment
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./docs

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
cache-dependency-path: './docs/package-lock.json'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Test build website
run: yarn build
2 changes: 1 addition & 1 deletion .github/workflows/test_watermarker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# that can be found in the LICENSE file.
#

name: "Watermarker: Test"
name: "Test: Watermarker"

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_webinterface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# that can be found in the LICENSE file.
#

name: "Webinterface: Test"
name: "Test: Webinterface"

on:
push:
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Created by https://www.toptal.com/developers/gitignore/api/intellij+iml,gradle,maven,kotlin,java,git
#
# Copyright (c) 2024 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
#
# This work is licensed under the Fraunhofer License (on the basis of the MIT license)
# that can be found in the LICENSE file.
#
# The initial version of this file was created by .gitignore from Toptal.
# See https://www.toptal.com/developers/gitignore/api/intellij+iml,gradle,maven,kotlin,java,git
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij+iml,gradle,maven,kotlin,java,git

### Git ###
Expand Down
1 change: 1 addition & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,26 @@ information.

There are third-party content used by and shipped with this project with different licenses.

This project uses Gradle and the Gradle Wrapper
### Gradle & Gradle Wrapper
This project uses Gradle and the Gradle Wrapper.
- GitHub project: https://github.com/gradle/gradle
- License: [Apache-2.0 license](https://github.com/gradle/gradle/blob/master/LICENSE)

### unDraw Illustrations
This project uses illustrations from unDraw.
- Source URL: https://undraw.co/illustrations
- License: https://undraw.co/license

### Docusaurus
The documentation uses the Docusaurus framework with its autogenerated files.
- GitHub project: https://github.com/facebook/docusaurus
- License (code): [MIT license](https://github.com/facebook/docusaurus/blob/main/LICENSE)
- License (documentation): [CC-BY-4.0](https://github.com/facebook/docusaurus/blob/main/LICENSE-docs)

### Dependencies
This project uses different dependencies. See the specific subfolders of each component for more
information.

## Source Code

The source code is located in the following GitHub project: https://github.com/FraunhoferISST/TREND
31 changes: 31 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Copyright (c) 2024 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
#
# This work is licensed under the Fraunhofer License (on the basis of the MIT license)
# that can be found in the LICENSE file.
#
# The initial version of this file was auto-generated by Docusaurus. Docusaurus is published under
# the MIT license.
# See https://github.com/facebook/docusaurus/blob/main/LICENSE for more information.
#

# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
40 changes: 40 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!--
Copyright (c) 2024 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.

This work is licensed under the Fraunhofer License (on the basis of the MIT license)
that can be found in the LICENSE file.

The initial version of this file was auto-generated by Docusaurus. Docusaurus is published under
the MIT license.
See https://github.com/facebook/docusaurus/blob/main/LICENSE for more information.
-->

# Documentation

This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.

### Installation

```
$ yarn
```

### Local Development

```
$ yarn start
```

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. The local deployment is published at http://localhost:3000/.

### Build

```
$ yarn build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.

### Deployment

On every commit on the main branch, the documentation is automatically updated by an automated deployment.
13 changes: 13 additions & 0 deletions docs/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (c) 2024 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
*
* This work is licensed under the Fraunhofer License (on the basis of the MIT license)
* that can be found in the LICENSE file.
*
* The initial version of this file was auto-generated by Docusaurus. Docusaurus is published under
* the MIT license.
* See https://github.com/facebook/docusaurus/blob/main/LICENSE for more information.
*/
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
7 changes: 7 additions & 0 deletions docs/Trendmark.md → docs/docs/Trendmark.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<!--
Copyright (c) 2024 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.

This work is licensed under the Fraunhofer License (on the basis of the MIT license)
that can be found in the LICENSE file.
-->

# Trendmark
The watermarker library uses bytes as the watermark content. This approach is very flexible and
allows almost any content to be inserted as a watermark. However, when extracting a watermark, it is
Expand Down
Loading