-
Notifications
You must be signed in to change notification settings - Fork 19
fix(docs): export clean selected-language markdown from Copy page button #460
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d9796bc
fix(docs): export clean selected-language markdown from Copy page button
g-despot e0ef610
fix(docs): exclude feedback cards partial from Copy page markdown
g-despot 7e25eaf
fix(docs): clean up Copy page output on component-rich pages
g-despot f39af56
fix(docs): handle tables, math, admonitions, details & content tabs i…
g-despot 3aa7f72
fix(docs): address Copilot review on Copy page (badge selector, gfm i…
g-despot c38c873
test(docs): add live-site Copy page button check + scheduled workflow
g-despot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| name: Docs Functionalities Tests | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| schedule: | ||
| # Run every Sunday at 23:00 UTC (offset from indexability's 22:00 slot) | ||
| - cron: "0 23 * * 0" | ||
| workflow_dispatch: | ||
| inputs: | ||
| base_url: | ||
| description: "Base URL to test against (e.g. a Netlify deploy preview)" | ||
| required: false | ||
| default: "https://docs.weaviate.io" | ||
|
|
||
| env: | ||
| PYTHON_VERSION: "3.11" | ||
|
|
||
| jobs: | ||
| test-functionalities: | ||
| name: Test Functionalities | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up test environment | ||
| uses: ./.github/actions/setup-test-env | ||
| with: | ||
| python-version: ${{ env.PYTHON_VERSION }} | ||
|
|
||
| - name: Install Playwright browser | ||
| run: uv run playwright install --with-deps chromium | ||
|
|
||
| - name: Record test start time | ||
| run: echo "TEST_START_TIME=$(date +%s)" >> $GITHUB_ENV | ||
|
|
||
| - name: Run functionalities tests | ||
| id: functionalities-tests | ||
| continue-on-error: true | ||
| env: | ||
| DOCS_BASE_URL: ${{ github.event.inputs.base_url || 'https://docs.weaviate.io' }} | ||
| # Tell tests/conftest.py to skip its Weaviate docker-compose startup — | ||
| # this Playwright-only suite doesn't need a local Weaviate instance. | ||
| DOCS_GITHUB_ENV: "true" | ||
| run: | | ||
| echo "Running Copy-page functionalities tests against ${DOCS_BASE_URL} ..." | ||
| uv run pytest -m "functionalities" -v --tb=short --junitxml=pytest-results.xml | ||
|
|
||
| - name: Handle test results | ||
| if: always() | ||
| uses: ./.github/actions/handle-test-results | ||
| with: | ||
| test-outcome: ${{ steps.functionalities-tests.outcome == 'success' && 'success' || 'failure' }} | ||
| test-type: 'Functionalities' | ||
| slack-bot-token: ${{ secrets.TESTING_CI_SLACK_BOT }} | ||
| test-results-xml: 'pytest-results.xml' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.