From 0697911b7c388aa4078ca8bcaf721e6d2fe230bc Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Sun, 20 Nov 2022 11:15:55 +0100 Subject: [PATCH] docs: configure gh-pages deployment --- .github/workflows/docs.yml | 46 +++++++++++++++++++++++++++++++++++ .github/workflows/rustfmt.yml | 1 + .github/workflows/test.yml | 28 +++++++++++++++++++++ jay-config/src/input.rs | 6 ++--- 4 files changed, 78 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/docs.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..751d95f5 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,46 @@ +name: docs + +on: + push: + branches: [ master ] + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Show env + run: | + uname -a + ldd --version + - name: Install + run: | + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly + rustup toolchain install nightly --allow-downgrade -c rustfmt + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + - name: Build + run: | + cd jay-config + cargo doc + - name: Setup Pages + uses: actions/configure-pages@v2 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: './target/doc' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index 1d62498b..a306a676 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -5,6 +5,7 @@ on: branches: [ master ] pull_request: branches: [ master ] + workflow_dispatch: env: CARGO_TERM_COLOR: always diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..55c0108e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Show env + run: | + uname -a + ldd --version + - name: Install + run: | + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly + rustup toolchain install nightly --allow-downgrade -c rustfmt + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + - name: Test + run: cargo +nightly test diff --git a/jay-config/src/input.rs b/jay-config/src/input.rs index ae185f1e..e79c1952 100644 --- a/jay-config/src/input.rs +++ b/jay-config/src/input.rs @@ -86,21 +86,21 @@ impl InputDevice { /// Sets whether tap-to-click is enabled for this device. /// - /// See https://wayland.freedesktop.org/libinput/doc/latest/tapping.html + /// See pub fn set_tap_enabled(self, enabled: bool) { get!().set_input_tap_enabled(self, enabled); } /// Sets whether tap-and-drag is enabled for this device. /// - /// See https://wayland.freedesktop.org/libinput/doc/latest/tapping.html + /// See pub fn set_drag_enabled(self, enabled: bool) { get!().set_input_drag_enabled(self, enabled); } /// Sets whether drag lock is enabled for this device. /// - /// See https://wayland.freedesktop.org/libinput/doc/latest/tapping.html + /// See pub fn set_drag_lock_enabled(self, enabled: bool) { get!().set_input_drag_lock_enabled(self, enabled); }