Merge branch 'main' of github.com:MM2-0/Kvaesitso
This commit is contained in:
commit
f7e56cd9d5
50
.github/workflows/deploy-docs.yml
vendored
Normal file
50
.github/workflows/deploy-docs.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
|
||||
# Simple workflow for deploying static content to GitHub Pages
|
||||
name: Deploy static content to Pages
|
||||
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths: docs/**/*
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
# Allow one concurrent deployment
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
# Single deploy job since we're just deploying
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm ci
|
||||
working-directory: docs
|
||||
- run: npm run build --if-present
|
||||
working-directory: docs
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
# Upload entire repository
|
||||
path: 'docs/build'
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
||||
@ -12,7 +12,7 @@ There are two ways of creating a websearch shortcut:
|
||||
|
||||
Some websearches can be imported automatically (if they support the [OpenSearch description format](https://developer.mozilla.org/en-US/docs/Web/OpenSearch)
|
||||
|
||||
- In the create websearch dialog, click the download icon in the top left-corner
|
||||
- In the create websearch dialog, click the download icon in the top right corner
|
||||
- Enter the base URL of the website you are trying to import (for example: `github.com`)
|
||||
- Click the arrow next to the text field
|
||||
- If the website is supported, all the required fields will be filled automatically.
|
||||
|
||||
@ -35,7 +35,7 @@ const config = {
|
||||
docs: {
|
||||
sidebarPath: require.resolve('./sidebars.js'),
|
||||
editUrl:
|
||||
'https://github.com/MM2-0/Kvaesitso/tree/main/docs/docs/',
|
||||
'https://github.com/MM2-0/Kvaesitso/tree/main/docs/',
|
||||
},
|
||||
blog: false,
|
||||
theme: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user