diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 00000000..dadccf0c --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -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 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. 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: {