From 082c3dfc2b1f82a7fe29584fc455a588f71e205a Mon Sep 17 00:00:00 2001 From: "U. N. Owen" <15646950+MM2-0@users.noreply.github.com> Date: Sun, 9 Oct 2022 22:23:14 +0200 Subject: [PATCH 1/5] Create deploy-docs --- .github/workflows/deploy-docs | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/deploy-docs diff --git a/.github/workflows/deploy-docs b/.github/workflows/deploy-docs new file mode 100644 index 00000000..618db73d --- /dev/null +++ b/.github/workflows/deploy-docs @@ -0,0 +1,49 @@ + +# 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"] + + # 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 From 5fc8fd623b465bf970f53727367f541957fc7956 Mon Sep 17 00:00:00 2001 From: "U. N. Owen" <15646950+MM2-0@users.noreply.github.com> Date: Sun, 9 Oct 2022 22:23:48 +0200 Subject: [PATCH 2/5] Rename deploy-docs to deploy-docs.yml --- .github/workflows/{deploy-docs => deploy-docs.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{deploy-docs => deploy-docs.yml} (100%) diff --git a/.github/workflows/deploy-docs b/.github/workflows/deploy-docs.yml similarity index 100% rename from .github/workflows/deploy-docs rename to .github/workflows/deploy-docs.yml From cc88727e5926b2ef490ff74c12433577a981a5dc Mon Sep 17 00:00:00 2001 From: "U. N. Owen" <15646950+MM2-0@users.noreply.github.com> Date: Sun, 9 Oct 2022 22:47:20 +0200 Subject: [PATCH 3/5] Fix docs edit path --- docs/docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 98f4ff27..f3ec4c15 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -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: { From 372ca07520c6231052c66a964f987f0a92359cc6 Mon Sep 17 00:00:00 2001 From: "U. N. Owen" <15646950+MM2-0@users.noreply.github.com> Date: Sun, 9 Oct 2022 22:49:39 +0200 Subject: [PATCH 4/5] Only redeploy docs when docs have actually changed --- .github/workflows/deploy-docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 618db73d..dadccf0c 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -6,6 +6,7 @@ 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: From 5031c260bb36dbea8d6482cba7bf7c3f7d747f06 Mon Sep 17 00:00:00 2001 From: "U. N. Owen" <15646950+MM2-0@users.noreply.github.com> Date: Sun, 9 Oct 2022 22:51:54 +0200 Subject: [PATCH 5/5] Update websearches.md --- docs/docs/user-guide/search/websearches.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/user-guide/search/websearches.md b/docs/docs/user-guide/search/websearches.md index b974fd56..5e4e1847 100644 --- a/docs/docs/user-guide/search/websearches.md +++ b/docs/docs/user-guide/search/websearches.md @@ -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.