-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add autogenerated documentation site
- Loading branch information
Showing
17 changed files
with
619 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
on: | ||
push: | ||
branches: [main, docs] | ||
|
||
name: Build documentation site | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- uses: swatinem/rust-cache@v2 | ||
with: | ||
workspaces: | | ||
mm-protocol | ||
mm-client-common | ||
- name: install protoc | ||
run: | | ||
sudo apt update | ||
sudo apt install protobuf-compiler | ||
- name: install zola | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: generate config reference | ||
run: | | ||
mkdir -p docs/content/reference | ||
cargo run --manifest-path mm-docgen/Cargo.toml --bin config-docgen \ | ||
mmserver.default.toml > docs/content/reference/config.md | ||
- name: generate protocol reference | ||
run: | | ||
cargo run --manifest-path mm-docgen/Cargo.toml --bin protocol-docgen \ | ||
mm-protocol/src/messages.proto > docs/content/reference/protocol.md | ||
- name: zola build | ||
run: zola -r docs build -o docs/build | ||
|
||
- name: generate rustdoc for mm-protocol | ||
run: | | ||
cargo doc --manifest-path mm-protocol/Cargo.toml \ | ||
--no-deps --target-dir docs/build | ||
- name: generate rustdoc for mm-client-common | ||
run: | | ||
cargo doc --manifest-path mm-client-common/Cargo.toml \ | ||
--no-deps --target-dir docs/build | ||
- name: Upload static files | ||
id: deployment | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: docs/build | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
needs: build | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "docs/themes/anemone"] | ||
path = docs/themes/anemone | ||
url = https://github.com/Speyll/anemone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# autogenerated | ||
content/reference | ||
build/ | ||
public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
base_url = "https://colinmarc.github.io/magic-mirror" | ||
theme = "anemone" | ||
compile_sass = false | ||
build_search_index = false | ||
|
||
[markdown] | ||
highlight_code = true | ||
|
||
[extra] | ||
twitter_card = false | ||
header_nav = [ | ||
{ url = "/", name_en = "/home/"}, | ||
{ url = "https://github.com/colinmarc/magic-mirror", name_en = "/github/"}, | ||
{ url = "", name_en = "/discord/"}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
+++ | ||
+++ | ||
|
||
# Magic Mirror 🪞✨ | ||
|
||
<picture> | ||
<source srcset="header_dark.png" media="(prefers-color-scheme: dark)" /> | ||
<img src="header_light.png" /> | ||
</picture> | ||
|
||
This page contains documentation for [Magic Mirror](github.com/colinmarc/magic-mirror), | ||
an open-source game streaming and remote desktop tool for linux hosts. | ||
|
||
### Download | ||
|
||
These links always point to the latest release. | ||
|
||
- 💾 [Server [mmserver-0.5.6]](https://github.com/colinmarc/magic-mirror/releases/tag/mmserver-v0.5.6) | ||
- 💾 [Command-Line Client [mmclient-0.4.1]](https://github.com/colinmarc/magic-mirror/releases/tag/mmclient-v0.4.1) | ||
- 💾 [macOS GUI Client](https://github.com/colinmarc/magic-mirror-swiftui/releases/latest) | ||
|
||
### Setup Guides | ||
|
||
Start here to get things up and running. | ||
|
||
- ⚙️ [Server Setup](@/setup/server.md) | ||
- ⚙️ [Client Setup](@/setup/client.md) | ||
<!-- - ⚙️ [Running on a Cloud VPS](./setup/vps.md) --> | ||
<!-- - ⚙️ [Troubleshooting and Known Issues](@/setup/troubleshooting.md) --> | ||
|
||
### Reference | ||
|
||
Autogenerated from the code. | ||
|
||
- 📖 [Configuration Reference](@/reference/config.md) | ||
- 📖 [Protocol Reference](@/reference/protocol.md) | ||
- 📖 [Rustdoc for `mm-protocol`](./doc/mm_protocol) | ||
- 📖 [Rustdoc for `mm-client-common`](./doc/mm_client_common) | ||
|
||
### Resources | ||
|
||
Get help, report issues, make friends. | ||
|
||
- ⁉️ [Issue Tracker](https://github.com/colinmarc/magic-mirror/issues) | ||
- 💬 [Discord Chat](https://discord.gg/v22G644DzS) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
+++ | ||
title = "Client Setup" | ||
|
||
[extra] | ||
toc = true | ||
+++ | ||
|
||
## macOS GUI Client | ||
|
||
The native macOS client can be downloaded from [the releases page](https://github.com/colinmarc/magic-mirror-swiftui/releases/latest). | ||
|
||
It should work out of the box on ARM and Intel Macs running macOS 10.14 or | ||
later. | ||
|
||
## Installing the commandline client | ||
|
||
There is also a cross-platform commandline client, `mmclient`. You can download | ||
it [here](https://github.com/colinmarc/magic-mirror/releases/tag/mmclient-v0.4.1). | ||
|
||
The commandline client requires `ffmpeg` 6.0 or later to be installed on the | ||
system. It also requires up-to-date Vulkan drivers. | ||
|
||
## Building mmclient | ||
|
||
The following are required to build the client and its dependencies: | ||
|
||
``` | ||
rust (MSRV 1.77.2) | ||
nasm | ||
cmake | ||
protoc | ||
libxkbcommon (linux only) | ||
libwayland-client (linux only) | ||
alsa (linux only) | ||
ffmpeg 6.x | ||
``` | ||
|
||
Besides Rust itself, the following command will install everything on ubuntu: | ||
|
||
``` | ||
apt install \ | ||
nasm cmake protobuf-compiler libxkbcommon-dev libwayland-dev libasound2-dev \ | ||
ffmpeg libavutil-dev libavformat-dev libavdevice-dev libavfilter-dev | ||
``` | ||
|
||
Or using homebrew on macOS: | ||
|
||
``` | ||
brew install nasm cmake ffmpeg@6 protobuf | ||
``` |
Oops, something went wrong.