-
Notifications
You must be signed in to change notification settings - Fork 9
docs: migrate documentation from Sphinx/Read the Docs to VitePress with GitHub Pages deployment #146
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: main
Are you sure you want to change the base?
docs: migrate documentation from Sphinx/Read the Docs to VitePress with GitHub Pages deployment #146
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,58 @@ | ||
| --- | ||
| name: Deploy docs to GitHub Pages | ||
|
|
||
| # yamllint disable-line rule:truthy | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: ⤵️ Check out code from GitHub | ||
| uses: actions/checkout@v4.1.1 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: 🏗 Set up Python | ||
| uses: actions/setup-python@v5.0.0 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: 🏗 Install pydoc-markdown | ||
| run: pip install pydoc-markdown | ||
| - name: 🏗 Set up Node.js | ||
| uses: actions/setup-node@v4.0.2 | ||
| with: | ||
| node-version-file: ".nvmrc" | ||
| cache: "npm" | ||
| - name: 🏗 Install dependencies | ||
| run: npm ci | ||
| - name: 🔨 Build with VitePress | ||
| run: npm run docs:build | ||
| - name: 📦 Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: docs/.vitepress/dist | ||
|
|
||
| deploy: | ||
| name: Deploy | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: 🚀 Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| import { defineConfig } from "vitepress"; | ||
|
|
||
| // https://vitepress.dev/reference/site-config | ||
| export default defineConfig({ | ||
| base: "/python-tado/", | ||
| title: "Tado Async", | ||
| description: | ||
| "Asynchronous Python client for controlling Tado devices, mainly used for Home Assistant", | ||
| themeConfig: { | ||
| // https://vitepress.dev/reference/default-theme-config | ||
| nav: [ | ||
| { text: "Home", link: "/" }, | ||
| { text: "Usage", link: "/usage" }, | ||
| { text: "API", link: "/api" }, | ||
| { text: "Models", link: "/models" }, | ||
| { text: "Exceptions", link: "/exceptions" }, | ||
| ], | ||
|
|
||
| sidebar: [ | ||
| { | ||
| text: "Documentation", | ||
| items: [ | ||
| { text: "Home", link: "/" }, | ||
| { text: "Usage", link: "/usage" }, | ||
| { text: "API Reference", link: "/api" }, | ||
| { text: "Models Reference", link: "/models" }, | ||
| { text: "Exceptions Reference", link: "/exceptions" }, | ||
| ], | ||
| }, | ||
| ], | ||
|
|
||
| search: { | ||
| provider: "local", | ||
| }, | ||
|
|
||
| socialLinks: [ | ||
| { | ||
| icon: "github", | ||
| link: "https://github.com/erwindouna/python-tado", | ||
| }, | ||
| ], | ||
| }, | ||
| }); |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| # https://vitepress.dev/reference/default-theme-home-page | ||
| layout: home | ||
|
|
||
| hero: | ||
| name: "Tado Async" | ||
| text: "Asynchronous Python client for the Tado API" | ||
| tagline: Control Tado devices from within Python, mainly used for Home Assistant. | ||
| actions: | ||
| - theme: brand | ||
| text: Get Started | ||
| link: /usage | ||
| - theme: alt | ||
| text: API Reference | ||
| link: /api | ||
|
|
||
| features: | ||
| - title: Async Support | ||
| details: Fully asynchronous Python client using aiohttp for non-blocking I/O. | ||
| - title: Home Assistant | ||
| details: Designed for use within Home Assistant, but can also be used standalone. | ||
| - title: Comprehensive API | ||
| details: Covers zones, devices, weather, capabilities, overlays, and more. | ||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| **Tado Async** is a Python library that allows you to control Tado devices. | ||
| Although it can be used as a standalone package, its current scope is to be used within Home Assistant. | ||
| Not all endpoints and features are fully supported. | ||
| This is the continuation project of PyTado. | ||
|
|
||
| ::: warning | ||
| This project is under active development. | ||
| ::: |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
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.
This workflow installs
pydoc-markdownviapip installdirectly, which bypasses the repo’s existinguv-based, locked dependency approach used in other workflows. To make docs builds reproducible, consider addingpydoc-markdownto the project’s dev dependencies and usinguv sync/uv runhere as well (or at least pin the installed version).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.
We don't use PIP, bu UV instead. :)