diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..3cf8912ff --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,106 @@ +name: Docs + +on: + pull_request: + branches: + - master + paths: + - 'docs/**' + - 'mkdocs.yml' + - 'gradle/docs.gradle' + - '.github/workflows/docs.yml' + # Publishes the `dev` version of the docs + push: + branches: + - master + paths: + - 'docs/**' + - 'mkdocs.yml' + - 'gradle/docs.gradle' + - '.github/workflows/docs.yml' + workflow_dispatch: + inputs: + version: + description: 'Docs version to publish (e.g. dev, 12.0)' + required: true + default: 'dev' + alias: + description: 'Optional alias for the version (e.g. latest)' + required: false + # Called by release.yml to publish the docs of a release + workflow_call: + inputs: + version: + description: 'Docs version to publish (e.g. 12.0)' + required: true + type: string + alias: + description: 'Optional alias for the version (e.g. latest)' + required: false + type: string + default: '' + ref: + description: 'Git ref to build the docs from (default: the triggering ref)' + required: false + type: string + default: '' + +permissions: + contents: read + +jobs: + check: + runs-on: ubuntu-latest + concurrency: + group: docs-check-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + steps: + - uses: actions/checkout@v7 + with: + ref: ${{ inputs.ref }} + fetch-depth: 0 + - uses: actions/setup-java@v6 + with: + java-version: '17' + distribution: 'zulu' + - uses: astral-sh/setup-uv@v10.4.1 + - uses: gradle/actions/setup-gradle@v6.4.1 + - name: Build docs (strict) + run: ./gradlew docsCheck + + deploy: + # Never from pull requests or other branches + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' + needs: check + runs-on: ubuntu-latest + # One deploy at a time: they all push to the same branch + concurrency: + group: docs-deploy + cancel-in-progress: false + permissions: + contents: write + steps: + - uses: actions/checkout@v7 + with: + ref: ${{ inputs.ref }} + fetch-depth: 0 + - uses: actions/setup-java@v6 + with: + java-version: '17' + distribution: 'zulu' + - uses: astral-sh/setup-uv@v10.4.1 + - uses: gradle/actions/setup-gradle@v6.4.1 + - name: Configure git identity for mike + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Deploy docs version + env: + DOCS_VERSION: ${{ inputs.version || 'dev' }} + DOCS_ALIAS: ${{ inputs.alias }} + run: | + args=(-PdocsVersion="$DOCS_VERSION") + if [ -n "$DOCS_ALIAS" ]; then args+=(-PdocsAlias="$DOCS_ALIAS"); fi + ./gradlew docsDeploy "${args[@]}" + # The site root redirects to the latest release + if [ "$DOCS_ALIAS" = "latest" ]; then ./gradlew docsSetDefault -PdocsDefault=latest; fi diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b088ae3aa..2a9c17e9d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,9 @@ concurrency: jobs: release: + outputs: + version: ${{ steps.result.outputs.version }} + docs_version: ${{ steps.result.outputs.docs_version }} # Appium TC members (GOVERNANCE.md in appium/appium) and the java-client reviewers (CODEOWNERS); # keep in sync with them if: >- @@ -60,6 +63,8 @@ jobs: cp build/release/notes.md "$RUNNER_TEMP/release-notes.md" echo "notes=$RUNNER_TEMP/release-notes.md" >> "$GITHUB_OUTPUT" echo "version=$(cat build/release/version.txt)" >> "$GITHUB_OUTPUT" + # .: patch releases update the same docs version + echo "docs_version=$(cut -d. -f1,2 build/release/version.txt)" >> "$GITHUB_OUTPUT" { echo "## Release v$(cat build/release/version.txt)"; cat build/release/notes.md; } >> "$GITHUB_STEP_SUMMARY" else echo "Nothing to release" >> "$GITHUB_STEP_SUMMARY" @@ -95,3 +100,16 @@ jobs: gh release create "v${{ steps.result.outputs.version }}" \ --title "v${{ steps.result.outputs.version }}" \ --notes-file "${{ steps.result.outputs.notes }}" --verify-tag + + # Only after the tag is pushed and the artifacts are published (the job is skipped if `release` fails); + # a failed run can be repeated with "Re-run failed jobs" + docs: + needs: release + if: needs.release.outputs.version != '' && !inputs.dry_run + uses: ./.github/workflows/docs.yml + permissions: + contents: write + with: + version: ${{ needs.release.outputs.docs_version }} + alias: latest + ref: refs/tags/v${{ needs.release.outputs.version }} diff --git a/.gitignore b/.gitignore index da44d7acb..1bd7dc0db 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,6 @@ classes/ .classpath .project .vscode + +# MkDocs / mike scratch output +/site/ diff --git a/build.gradle b/build.gradle index 55214902b..bd17047c2 100644 --- a/build.gradle +++ b/build.gradle @@ -112,6 +112,7 @@ tasks.withType(JacocoReport).configureEach { jacocoTestReport.dependsOn test apply plugin: 'checkstyle' +apply from: 'gradle/docs.gradle' checkstyle { toolVersion = '10.23.1' diff --git a/docs/Advanced-By.md b/docs/Advanced-By.md index 3fb3ee284..4c33641f2 100644 --- a/docs/Advanced-By.md +++ b/docs/Advanced-By.md @@ -107,10 +107,10 @@ to learn more about the general concept. ## Android's Predicate String and Class Chain Queries -Available when using [AndroidBy](AndroidBy) and [AndroidFindBy](AndroidFindBy) with +Available when using [AndroidBy](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/pagefactory/AndroidBy.java) and [AndroidFindBy](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/pagefactory/AndroidFindBy.java) with [appium-uiautomator2-driver](https://github.com/appium/appium-uiautomator2-driver) 10.1.0 (class chain) and 10.2.0 (predicate string) or newer. They are evaluated directly on the accessibility tree, are about as fast as -`UiSelector` and faster than XPath, and replace the deprecated [uiAutomator](#androids-uiautomator-string) strategy. +`UiSelector` and faster than XPath, and replace the deprecated [uiAutomator](#androids-uiautomator-string-deprecated) strategy. Read the [Class Chain Locator Strategy](https://appium.github.io/appium-uiautomator2-driver/latest/guides/android-class-chain/) guide for the syntax. @@ -136,7 +136,7 @@ this strategy is going to stop working. Use the predicate string and class chain [Migrating from UiScrollable and UiSelector](https://appium.github.io/appium-uiautomator2-driver/latest/guides/migrating-from-uiscrollable/) for the equivalents. -Available when using [AndroidBy](AndroidBy) and [AndroidFindBy](AndroidFindBy) with +Available when using [AndroidBy](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/pagefactory/AndroidBy.java) and [AndroidFindBy](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/pagefactory/AndroidFindBy.java) with [appium-uiautomator2-server](https://github.com/appium/appium-uiautomator2-server). This string will be used by the server to construct a UiSelector or UiScrollable object. diff --git a/docs/Note-for-developers.md b/docs/Note-for-developers.md index d6182196d..27e6906fb 100644 --- a/docs/Note-for-developers.md +++ b/docs/Note-for-developers.md @@ -39,4 +39,17 @@ It is needed to go to the directory where `java_client` is located. You can do i `gradle check`. If everything is ok then all checks should be passed. Otherwise you can open reports at `JAVA_CLIENT_DIRECTORY/build/reports` -**The adding of new tests is required when new feature is added or some bug is fixed.** \ No newline at end of file +**The adding of new tests is required when new feature is added or some bug is fixed.** + +# Documentation + +The documentation site is built with [Zensical](https://zensical.org) from the `docs` folder and the `mkdocs.yml` +config (Zensical reads the MkDocs format). Versions are published with the Zensical-compatible `mike` fork. Only +[uv](https://docs.astral.sh/uv/) and git are required; uv installs the tools pinned in `docs/requirements.txt` into its +cache (and fetches Python if needed), so there is no virtual environment to manage. + +- `./gradlew docsServe` serves the site with live reload at . +- `./gradlew docsCheck` builds the site in strict mode; broken links, anchors and pages missing from the `nav` fail it. + Pull requests that touch the docs run this check. +- Use `-PdocsPython=3.13` (or a path) to pick the Python interpreter, `-PdocsUv=/path/to/uv` if `uv` is not on the PATH. +- Link to sources and other repository files with absolute `https://github.com/appium/java-client/blob/master/...` URLs. diff --git a/docs/The-event_firing.md b/docs/The-event_firing.md index ff77c1247..5c7570b3d 100644 --- a/docs/The-event_firing.md +++ b/docs/The-event_firing.md @@ -153,7 +153,7 @@ This proxy is not tied to WebDriver descendants and could be used to any classes **public** constructors. It also allows to intercept exceptions thrown by **public** class methods and/or change/replace the original methods behavior. It is important to know that callbacks are **not** invoked for methods derived from the standard `Object` class, like `toString` or `equals`. -Check [unit tests](../src/test/java/io/appium/java_client/proxy/ProxyHelpersTest.java) for more examples. +Check [unit tests](https://github.com/appium/java-client/blob/master/src/test/java/io/appium/java_client/proxy/ProxyHelpersTest.java) for more examples. #### ElementAwareWebDriverListener diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 000000000..81c86be8f --- /dev/null +++ b/docs/index.md @@ -0,0 +1,14 @@ +# Appium Java Client + +Java language bindings for writing [Appium](https://appium.io) tests that conform to the +[WebDriver protocol](https://w3c.github.io/webdriver/). + +- Installation, compatibility matrix and quick start: see the + [README](https://github.com/appium/java-client#readme). +- API reference: [Javadoc](https://www.javadoc.io/doc/io.appium/java-client). +- Upgrading between major versions: see the **Migration** section. +- Changes between versions: [CHANGELOG](https://github.com/appium/java-client/blob/master/CHANGELOG.md). + +!!! note + This site is being rebuilt. Most pages are carried over from the repository's `docs` folder and + will be rewritten. diff --git a/docs/release.md b/docs/release.md index a04bd9531..ded67616e 100644 --- a/docs/release.md +++ b/docs/release.md @@ -5,7 +5,7 @@ Its target auditory is project maintainers. ## Release Steps -The release is one run of the [Release](../.github/workflows/release.yml) workflow +The release is one run of the [Release](https://github.com/appium/java-client/blob/master/.github/workflows/release.yml) workflow (Actions > Release > Run workflow, branch `master`). Only Appium TC members and the java-client reviewers (see `CODEOWNERS`) can run it; for anyone else the job is skipped. The list is in the workflow file, update it when the TC or the reviewers change. @@ -18,11 +18,14 @@ when the TC or the reviewers change. bumps are listed under `DEPENDENCY CHANGE`, but a release is not created for them (or for `ci`, `test` and `build` commits) alone. 1. Run the workflow again with `dry_run` disabled. It then: - 1. updates `appiumClient.version` in [gradle.properties](../gradle.properties) and adds the notes to the - [Changelog](../CHANGELOG.md), + 1. updates `appiumClient.version` in [gradle.properties](https://github.com/appium/java-client/blob/master/gradle.properties) and adds the notes to the + [Changelog](https://github.com/appium/java-client/blob/master/CHANGELOG.md), 1. commits `chore: release ` and pushes it to `master` together with the `v` tag, 1. publishes the artifacts to Maven Central, - 1. creates the GitHub release with the same notes. + 1. creates the GitHub release with the same notes, + 1. publishes the documentation of the released `.` version to the + [site](https://appium.github.io/java-client/) as `latest` (the [Docs](https://github.com/appium/java-client/blob/master/.github/workflows/docs.yml) workflow, + see [Development notes](Note-for-developers.md#documentation)). 1. Open [Maven Central Repository](https://central.sonatype.com/) and log in using the credentials stored in 1Password (contact the Appium maintainers for access). Under `Publish` > `Deployments` the new deployment goes through the `publishing` state, which sometimes takes a while but eventually completes. @@ -55,7 +58,7 @@ when the TC or the reviewers change. - After the push, when the artifacts were not published (the publishing step failed or never started): create the GitHub release for the `v` tag by hand (web UI, or `gh release create v --notes-file ...`, the notes are in `CHANGELOG.md`). That alone starts the - [Publish package](../.github/workflows/publish.yml) workflow (`release: published`, so saving a draft is not enough, publish it); do not also run it manually and + [Publish package](https://github.com/appium/java-client/blob/master/.github/workflows/publish.yml) workflow (`release: published`, so saving a draft is not enough, publish it); do not also run it manually and do not run the Release workflow again, the version is already tagged. - If Maven Central already accepted the deployment and only the GitHub release step failed: wait until both `https://repo1.maven.org/maven2/io/appium/java-client//java-client-.pom` and @@ -66,10 +69,14 @@ when the TC or the reviewers change. the version again. To re-publish a version that is not on Central yet, start Publish package manually with the tag, without creating a release. +- If only the `docs` job of the Release run failed, the release itself is complete: use "Re-run failed jobs" on the + run. Docs of a release are built from its `v` tag. The `dev` version is published from `master` on + every change to `docs/**`, so it needs no release step. + ### Manual release (fallback) -1. Update the [Changelog](../CHANGELOG.md) for the given version based on previous commits. -1. Bump the `appiumClient.version` number in [gradle.properties](../gradle.properties). +1. Update the [Changelog](https://github.com/appium/java-client/blob/master/CHANGELOG.md) for the given version based on previous commits. +1. Bump the `appiumClient.version` number in [gradle.properties](https://github.com/appium/java-client/blob/master/gradle.properties). 1. Create a pull request to approve the changelog and version bump and merge it. 1. Create and push the `v..` tag. 1. Create a [Release](https://github.com/appium/java-client/releases/new) in GitHub with the changelog in the diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 000000000..88266d255 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,3 @@ +zensical==0.1.4 +# Zensical-compatible fork of mike (tag 2.2.0+zensical-0.1.0), pinned by commit +mike @ git+https://github.com/squidfunk/mike.git@0f62791256ebeba60d20d2f1d8fe6ec3b7d1e2b3 diff --git a/docs/v10-to-v11-migration-guide.md b/docs/v10-to-v11-migration-guide.md index 4f728e374..2d4e4fa86 100644 --- a/docs/v10-to-v11-migration-guide.md +++ b/docs/v10-to-v11-migration-guide.md @@ -20,7 +20,7 @@ classes that the client does not extend or expose anymore, and the usages of the ## Migration steps 1. Update the client to `11.x` and Selenium to `4.50.0` or newer. Selenium versions below 4.50.0 won't work with -Appium java client 11+. Check the [Compatibility Matrix](../README.md#compatibility-matrix) for more details. +Appium java client 11+. Check the [Compatibility Matrix](https://github.com/appium/java-client#compatibility-matrix) for more details. Use Appium server 3 or newer and the drivers and plugins that are compatible with it, see [the Appium server](#the-appium-server). 2. Declare the Selenium modules your own code uses. They are not brought by the client anymore: diff --git a/docs/v8-to-v9-migration-guide.md b/docs/v8-to-v9-migration-guide.md index 7940ad8e4..4ecda04e9 100644 --- a/docs/v8-to-v9-migration-guide.md +++ b/docs/v8-to-v9-migration-guide.md @@ -11,29 +11,29 @@ with Java compilers below this version. ## The minimum supported Selenium version is set to 4.14.1 - Selenium versions below 4.14.1 won't work with Appium java client 9+. -Check the [Compatibility Matrix](../README.md#compatibility-matrix) for more +Check the [Compatibility Matrix](https://github.com/appium/java-client#compatibility-matrix) for more details about versions compatibility. ## Removed previously deprecated items - `MobileBy` class has been removed. Use -[AppiumBy](../src/main/java/io/appium/java_client/AppiumBy.java) instead +[AppiumBy](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/AppiumBy.java) instead - `launchApp`, `resetApp` and `closeApp` methods along with their `SupportsLegacyAppManagement` container. Use [the corresponding extension methods](https://github.com/appium/appium/issues/15807) instead. - `WindowsBy` class and related location strategies. - `ByAll` class has been removed in favour of the same class from Selenium lib. - `AndroidMobileCapabilityType` interface. Use -[UIAutomator2 driver options](../src/main/java/io/appium/java_client/android/options/UiAutomator2Options.java) -or [Espresso driver options](../src/main/java/io/appium/java_client/android/options/EspressoOptions.java) instead. +[UIAutomator2 driver options](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/android/options/UiAutomator2Options.java) +or [Espresso driver options](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/android/options/EspressoOptions.java) instead. - `IOSMobileCapabilityType` interface. Use -[XCUITest driver options](../src/main/java/io/appium/java_client/ios/options/XCUITestOptions.java) instead. +[XCUITest driver options](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/ios/options/XCUITestOptions.java) instead. - `MobileCapabilityType` interface. Use -[driver options](../src/main/java/io/appium/java_client/remote/options/BaseOptions.java) instead. +[driver options](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/remote/options/BaseOptions.java) instead. - `MobileOptions` class. Use -[driver options](../src/main/java/io/appium/java_client/remote/options/BaseOptions.java) instead. +[driver options](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/remote/options/BaseOptions.java) instead. - `YouiEngineCapabilityType` interface. Use -[driver options](../src/main/java/io/appium/java_client/remote/options/BaseOptions.java) instead. +[driver options](https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/remote/options/BaseOptions.java) instead. - Several misspelled methods. Use properly spelled alternatives instead. - `startActivity` method from AndroidDriver. Use [mobile: startActivity](https://appium.github.io/appium-uiautomator2-driver/latest/reference/execute-methods/#mobile-startactivity) diff --git a/docs/v9-to-v10-migration-guide.md b/docs/v9-to-v10-migration-guide.md index 40f7e89fe..d9a605111 100644 --- a/docs/v9-to-v10-migration-guide.md +++ b/docs/v9-to-v10-migration-guide.md @@ -6,7 +6,7 @@ existing automated tests codebase. ## The minimum supported Selenium version is set to 4.35.0 - Selenium versions below 4.35.0 won't work with Appium java client 10+. -Check the [Compatibility Matrix](../README.md#compatibility-matrix) for more +Check the [Compatibility Matrix](https://github.com/appium/java-client#compatibility-matrix) for more details about versions compatibility. ## Removed previously deprecated items diff --git a/gradle/docs.gradle b/gradle/docs.gradle new file mode 100644 index 000000000..fa59fecd4 --- /dev/null +++ b/gradle/docs.gradle @@ -0,0 +1,74 @@ +// Documentation site (Zensical + the Zensical-compatible mike fork), run through uv (https://docs.astral.sh/uv/). +// uv builds a cached environment from docs/requirements.txt on demand and fetches Python if needed. +// Not part of `build`/`check`. Optional: -PdocsPython= (default: whatever uv picks). + +def uvExe = (findProperty('docsUv') ?: 'uv').toString() +def docsPython = findProperty('docsPython') +def docsBranch = (findProperty('docsBranch') ?: 'docs-site').toString() + +// uv run --no-project --with-requirements docs/requirements.txt [--python X] -- +def uvRun = { List command -> + def cmd = [uvExe, 'run', '--no-project', '--with-requirements', 'docs/requirements.txt'] + if (docsPython) { + cmd += ['--python', docsPython.toString()] + } + cmd << '--' + cmd + command +} + +tasks.register('docsServe', Exec) { + group = 'documentation' + description = 'Serves the docs with live reload at http://127.0.0.1:8000.' + commandLine uvRun(['zensical', 'serve', '-f', 'mkdocs.yml']) +} + +tasks.register('docsBuild', Exec) { + group = 'documentation' + description = 'Builds the docs site into build/docs-site; broken links and nav entries fail the build.' + inputs.dir('docs') + inputs.file('mkdocs.yml') + outputs.dir(layout.buildDirectory.dir('docs-site')) // site_dir in mkdocs.yml + commandLine uvRun(['zensical', 'build', '--clean', '--strict', '-f', 'mkdocs.yml']) +} + +tasks.register('docsCheck') { + group = 'documentation' + description = 'Validates the docs (strict build).' + dependsOn 'docsBuild' +} + +// ./gradlew docsDeploy -PdocsVersion=dev [-PdocsAlias=latest] [-PdocsPush=false] [-PdocsBranch=docs-site] +tasks.register('docsDeploy', Exec) { + group = 'documentation' + description = 'Publishes a docs version to the docs-site branch (-PdocsBranch) with mike.' + doFirst { + def version = findProperty('docsVersion') + if (!version) { + throw new GradleException('Specify the docs version: -PdocsVersion= [-PdocsAlias=]') + } + def cmd = ['mike', 'deploy', '--branch', docsBranch, '--update-aliases'] + if (findProperty('docsPush') != 'false') { + cmd << '--push' + } + cmd << version.toString() + if (findProperty('docsAlias')) { + cmd << findProperty('docsAlias').toString() + } + commandLine uvRun(cmd) // uv puts the environment's bin (zensical, mike) on the PATH + } +} + +// ./gradlew docsSetDefault [-PdocsDefault=latest] [-PdocsPush=false] [-PdocsBranch=docs-site] +// Makes the site root redirect to a version or alias; needed once after the first deploy. +tasks.register('docsSetDefault', Exec) { + group = 'documentation' + description = 'Redirects the site root to a docs version or alias (-PdocsDefault, default: latest) with mike.' + doFirst { + def cmd = ['mike', 'set-default', '--branch', docsBranch] + if (findProperty('docsPush') != 'false') { + cmd << '--push' + } + cmd << (findProperty('docsDefault') ?: 'latest').toString() + commandLine uvRun(cmd) + } +} diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 000000000..98cfefabf --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,110 @@ +site_name: Appium Java Client +site_description: Java language bindings for writing Appium tests +site_url: https://appium.github.io/java-client/ +repo_name: appium/java-client +repo_url: https://github.com/appium/java-client +edit_uri: edit/master/docs/ +copyright: Apache-2.0 licensed + +docs_dir: docs +site_dir: build/docs-site +# Tooling file, not a page +exclude_docs: | + requirements.txt + +nav: + - Home: index.md + - Guides: + - Page objects: Page-objects.md + - Advanced By locators: Advanced-By.md + - Event listeners: The-event_firing.md + - Local Appium server: The-starting-of-an-app-using-Appium-node-server-started-programmatically.md + - Selenium interoperability: selenium-bridge.md + - Transitive dependencies: transitive-dependencies-management.md + - Troubleshooting: + - Environment: environment.md + - Migration: + - v10 to v11: v10-to-v11-migration-guide.md + - v9 to v10: v9-to-v10-migration-guide.md + - v8 to v9: v8-to-v9-migration-guide.md + - v7 to v8: v7-to-v8-migration-guide.md + - Contributing: + - Development notes: Note-for-developers.md + - Reporting an issue: How-to-report-an-issue.md + - Proposing a PR: How-to-propose-a-PR.md + - Release procedure: release.md + +markdown_extensions: + - admonition + - attr_list + - footnotes + - md_in_html + - meta + - pymdownx.caret + - pymdownx.critic + - pymdownx.details + - pymdownx.emoji: + emoji_index: !!python/name:zensical.extensions.emoji.twemoji + emoji_generator: !!python/name:zensical.extensions.emoji.to_svg + - pymdownx.highlight: + anchor_linenums: true + line_spans: __span + pygments_lang_class: true + - pymdownx.inlinehilite + - pymdownx.keys + - pymdownx.mark + - pymdownx.snippets: + check_paths: true + - pymdownx.superfences: + custom_fences: + - name: mermaid + class: mermaid + format: !!python/name:pymdownx.superfences.fence_code_format + - pymdownx.tabbed: + alternate_style: true + - pymdownx.tasklist: + custom_checkbox: true + - pymdownx.tilde + - tables + - toc: + permalink: true + +plugins: + - search + +theme: + palette: + - media: '(prefers-color-scheme)' + primary: deep purple + toggle: + icon: material/theme-light-dark + name: Switch to light mode + - media: '(prefers-color-scheme: light)' + scheme: default + primary: deep purple + toggle: + icon: material/weather-sunny + name: Switch to dark mode + - media: '(prefers-color-scheme: dark)' + scheme: slate + primary: deep purple + toggle: + icon: material/weather-night + name: Switch to system preference + icon: + repo: fontawesome/brands/github + features: + - content.action.edit + - content.code.annotate + - content.code.copy + - navigation.indexes + - navigation.path + - navigation.sections + - navigation.tabs + - navigation.top + - search.suggest + - toc.follow + +extra: + version: + provider: mike