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/overview section #346

Merged
merged 2 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
54 changes: 54 additions & 0 deletions .github/workflows/capture-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Capture website

on:
workflow_dispatch:

schedule:
- cron: "0 0 * * 0"

concurrency:
group: capture-website-${{ github.ref }}
cancel-in-progress: true

jobs:
capture-website:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
token: ${{ secrets.OKP4_TOKEN }}

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.OKP4_BOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.OKP4_BOT_GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true

- name: Setup node environment
uses: actions/setup-node@v4
with:
node-version: 18.12
cache: npm

- name: Screenshot Website
run: |
npx [email protected] \
--type webp \
--quality=0.7 \
--launch-options='{"headless": "new"}' \
ccamel marked this conversation as resolved.
Show resolved Hide resolved
ccamel marked this conversation as resolved.
Show resolved Hide resolved
--output screenshot.webp \
ccamel marked this conversation as resolved.
Show resolved Hide resolved
--overwrite \
ccamel marked this conversation as resolved.
Show resolved Hide resolved
--dark-mode \
https://docs.okp4.network/

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: ${{ secrets.OKP4_BOT_GIT_COMMITTER_NAME }}
commit_user_email: ${{ secrets.OKP4_BOT_GIT_COMMITTER_EMAIL }}
commit_author: ${{ secrets.OKP4_BOT_GIT_AUTHOR_NAME }} <${{ secrets.OKP4_BOT_GIT_AUTHOR_EMAIL }}>
commit_message: "docs: update website screenshot"
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
[![license][bsd-3-clause-image]][bsd-3-clause]
[![cc-by-sa-4.0][cc-by-sa-image]][cc-by-sa]

## Overview

This repository contains the source code for the OKP4 documentation portal, which is hosted at <https://docs.okp4.network>.

![[docs.okp4.network](https://docs.okp4.network)](./screenshot.webp)

## Developing & contributing

### Installation
Expand Down
Binary file added screenshot.webp
Binary file not shown.
Loading