-
Notifications
You must be signed in to change notification settings - Fork 8
Added link checker #412
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
base: 5.0
Are you sure you want to change the base?
Added link checker #412
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| name: "Check documentation links" | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - "[0-9]+.[0-9]+" | ||
| workflow_dispatch: | ||
| inputs: | ||
| force_recheck: | ||
| description: "Clear lychee cache and recheck all links from scratch" | ||
| type: boolean | ||
| default: false | ||
| devdoc_50_branch: | ||
| description: "ibexa/documentation-developer branch for 5.0" | ||
| type: string | ||
| default: "5.0" | ||
| devdoc_46_branch: | ||
| description: "ibexa/documentation-developer branch for 4.6" | ||
| type: string | ||
| default: "4.6" | ||
| userdoc_50_branch: | ||
| description: "ibexa/documentation-user branch for 5.0" | ||
| type: string | ||
| default: "5.0" | ||
| userdoc_46_branch: | ||
| description: "ibexa/documentation-user branch for 4.6" | ||
| type: string | ||
| default: "4.6" | ||
| connect_branch: | ||
| description: "ibexa/documentation-connect branch" | ||
| type: string | ||
| default: "main" | ||
| pull_request: ~ | ||
| schedule: | ||
| - cron: "0 6 * * *" | ||
|
|
||
| jobs: | ||
| link-check: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: [3.13] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Generate token | ||
| id: generate_token | ||
| uses: actions/create-github-app-token@v2 | ||
| with: | ||
| app-id: ${{ secrets.AUTOMATION_CLIENT_ID }} | ||
| private-key: ${{ secrets.AUTOMATION_CLIENT_SECRET }} | ||
| owner: ${{ github.repository_owner }} | ||
|
|
||
| - name: Configure git credentials for private repositories | ||
| run: | | ||
| git config --global url."https://x-access-token:${{ steps.generate_token.outputs.token }}@github.com/ibexa/documentation-connect".insteadOf \ | ||
| "https://github.com/ibexa/documentation-connect" | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install MkDocs dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r requirements.txt | ||
|
|
||
| - name: Build documentation | ||
| run: mkdocs build --strict | ||
|
|
||
| - name: Clone and build versioned repositories for link remap | ||
| run: >- | ||
| bash tools/clone-repositories.sh | ||
| "${{ inputs.devdoc_50_branch || '5.0' }}" | ||
| "${{ inputs.devdoc_46_branch || '4.6' }}" | ||
| "${{ inputs.userdoc_50_branch || '5.0' }}" | ||
| "${{ inputs.userdoc_46_branch || '4.6' }}" | ||
| "${{ inputs.connect_branch || 'main' }}" | ||
|
|
||
| - name: Restore lychee cache | ||
| if: ${{ !inputs.force_recheck }} | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: .lycheecache | ||
| key: lychee-${{ github.ref_name }}-${{ github.sha }} | ||
| restore-keys: | | ||
| lychee-${{ github.ref_name }}- | ||
| lychee- | ||
|
|
||
| - name: Check links | ||
| uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0 | ||
Check failureCode scanning / SonarCloud External GitHub Actions and workflows should be pinned to a commit hash High
Use full commit SHA hash for this dependency. See more on SonarQube Cloud
|
||
| with: | ||
| args: >- | ||
| --config lychee.toml | ||
| --cache | ||
| --cache-exclude-status "400.." | ||
| site | ||
| output: lychee-report.md | ||
| jobSummary: true | ||
| fail: true | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Comment broken links | ||
| if: always() && github.event_name == 'pull_request' | ||
| uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 | ||
| with: | ||
| path: lychee-report.md | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,13 @@ | ||
| /vendor/ | ||
| **/.DS_Store | ||
| __pycache__/* | ||
| hooks/__pycache__/* | ||
| /site/ | ||
| **/.idea/ | ||
| /node_modules/ | ||
| yarn.lock | ||
| **.css.map | ||
| .lycheecache | ||
| lychee.toml | ||
| /repositories/ | ||
| lychee-report.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Hosts that block automated requests (403) | ||
| ^https?://help\.openai\.com | ||
| ^https?://support\.qualifio\.com |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,12 +26,12 @@ | |
| - **Refine text** - used by default in [online editor](create_edit_content_items.md#ai-assistant) for refining text, for example: "Rewrite text in formal tone" | ||
| - **Generate alternative text** - used by default in the [image asset editing screen](upload_images.md#ai) to generate alternative text, for example: "Generate short alternative description of an image" | ||
|
|
||
| It may happen that a set of sample AI actions has been [installed with the AI actions package]([[= developer_doc =]]/ai_actions/install_ai_actions/#install-sample-ai-action-configurations-optional), and there is already a number of existing AI actions that you can modify and clone. | ||
| It may happen that a set of sample AI actions has been installed with the AI actions package, and there is already a number of existing AI actions that you can modify and clone. | ||
|
Check notice on line 29 in docs/ai_actions/work_with_ai_actions.md
|
||
|
|
||
| !!! note "Custom action types" | ||
|
|
||
| In your specific case, the types available can be different, and your organization's development team can create custom AI action types. | ||
| For more information, see [developer documentation]([[= developer_doc =]]/ai_actions/ai_actions/). | ||
| For more information, see [developer documentation]([[= developer_doc =]]/ai/ai_actions/ai_actions/). | ||
|
|
||
| ### View AI action details | ||
|
|
||
|
|
@@ -68,7 +68,7 @@ | |
| - **Temperature** - controls the randomness of the response. | ||
| Takes a value between 0 and 2, but the usual range is between 0 and 1. | ||
| The output is more random at higher temperatures. | ||
| For more information, see the parameter's description in [OpenAI API reference](https://platform.openai.com/docs/api-reference/chat/create#chat-create-temperature) or [Anthropic's glossary](https://docs.claude.com/en/docs/about-claude/glossary#temperature) | ||
| For more information, see the parameter's description in [Anthropic's glossary](https://docs.claude.com/en/docs/about-claude/glossary#temperature) | ||
|
Check failure on line 71 in docs/ai_actions/work_with_ai_actions.md
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Temperature as a parameter is being hidden by model providers, having a single link here is enough |
||
|
|
||
|  | ||
|
|
||
|
|
@@ -82,7 +82,7 @@ | |
|
|
||
| Before you can work with AI actions, models must be configured and enabled by your organization's development team. | ||
| If there are more AI service connectors available, you might be able to create AI actions that perform the same type of actions but use different models. | ||
| For more information, see [developer documentation]([[= developer_doc =]]/ai_actions/ai_actions_guide/#model). | ||
| For more information, see [developer documentation]([[= developer_doc =]]/ai/ai_actions/ai_actions_guide/#model). | ||
|
|
||
| 1. Navigate to the Admin Panel and select **AI actions**. | ||
|
|
||
|
|
@@ -145,7 +145,7 @@ | |
|
|
||
| !!! note "[[= product_name_connect =]] configuration required" | ||
|
|
||
| To use AI actions that interface with [[= product_name_connect =]], you must first [configure and initiate the connection]([[= developer_doc =]]/ai_actions/install_ai_actions/#configure-access-to-ibexa-connect), and [define templates](https://doc.ibexa.co/projects/connect/en/latest/scenarios/scenario_templates/#creating-templates) and/or [scenarios](https://doc.ibexa.co/projects/connect/en/latest/scenarios/creating_a_scenario/) in [[= product_name_connect =]]. | ||
| To use AI actions that interface with [[= product_name_connect =]], you must first [configure and initiate the connection]([[= developer_doc =]]/ai/ai_actions/configure_ai_actions/#configure-access-to-ibexa-connect), and [define templates](https://doc.ibexa.co/projects/connect/en/latest/scenarios/scenario_templates/#creating-templates) and/or [scenarios](https://doc.ibexa.co/projects/connect/en/latest/scenarios/creating_a_scenario/) in [[= product_name_connect =]]. | ||
|
|
||
| 1\. Navigate to the Admin Panel and select **AI actions**. | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import os | ||
|
|
||
| def on_config(config, **kwargs): | ||
| if os.environ.get("READTHEDOCS_VERSION_TYPE") == "external": | ||
| ref = os.environ.get("READTHEDOCS_GIT_COMMIT_HASH") | ||
| else: | ||
| ref = os.environ.get("GITHUB_HEAD_REF") | ||
|
|
||
| if ref: | ||
| config["edit_uri"] = f"blob/{ref}/docs/" | ||
|
|
||
| return config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were optional in v4.6, but this optional step is not part of v5 where AI Actions is no longer an lts update.