Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit e970718

Browse files
committed
docs
1 parent 925c59f commit e970718

16 files changed

Lines changed: 433 additions & 79 deletions

.github/workflows/docs.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- v1
7+
paths:
8+
- 'LICENSE'
9+
- 'CHANGELOG.md'
10+
- 'docs/**'
11+
- 'mkdocs.yml'
12+
- 'pyproject.toml'
13+
- '.github/workflows/docs.yml'
14+
- 'src/flet_webview'
15+
- 'examples/webview_example/src/main.py'
16+
17+
workflow_dispatch: # Allow manual trigger from the GitHub Actions UI
18+
19+
concurrency:
20+
group: "docs" # Prevent multiple overlapping deploys
21+
cancel-in-progress: false # Allow in-progress deploys to finish
22+
23+
permissions:
24+
contents: write # Required to push to the gh-pages branch
25+
26+
env:
27+
GH_TOKEN: ${{ secrets.GH_TOKEN }} # Token used by mkdocs for pushing
28+
UV_SYSTEM_PYTHON: 1 # Use system Python interpreter with uv
29+
30+
jobs:
31+
deploy:
32+
name: Deploy Documentation
33+
runs-on: ubuntu-latest
34+
if: github.repository == github.event.repository.full_name # don't run on forks
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v4
38+
39+
- name: Configure Git for mkdocs
40+
run: |
41+
git config user.name github-actions[bot]
42+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
43+
44+
- name: Install uv
45+
uses: astral-sh/setup-uv@v6
46+
47+
- name: Set up Python
48+
uses: actions/setup-python@v5
49+
with:
50+
python-version-file: "pyproject.toml" # Match Python version with project config
51+
52+
- name: Install dependencies
53+
run: |
54+
uv pip install -e .
55+
uv pip install --group docs
56+
57+
- name: Deploy to GitHub Pages
58+
run: uv run mkdocs gh-deploy --force

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased] - 2025-mm-dd
9+
10+
## Added
11+
12+
- Deployed online documentation: https://flet-dev.github.io/flet-webview/
13+
14+
### Changed
15+
16+
TBA
17+
18+
## [0.1.0] - 2025-01-15
19+
20+
Initial release.
21+
22+
23+
[Unreleased]: https://github.com/flet-dev/flet-lottie/compare/0.1.0...HEAD
24+
25+
[0.1.0]: https://github.com/flet-dev/flet-lottie/releases/tag/0.1.0

docs/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Changelog
3+
---
4+
5+
--8<-- "CHANGELOG.md"

docs/images/favicon.ico

15 KB
Binary file not shown.

docs/images/logo.svg

Lines changed: 19 additions & 0 deletions
Loading

docs/index.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# flet-lottie
2+
3+
[![pypi](https://img.shields.io/pypi/v/flet-lottie.svg)](https://pypi.python.org/pypi/flet-lottie)
4+
[![downloads](https://static.pepy.tech/badge/flet-lottie/month)](https://pepy.tech/project/flet-lottie)
5+
[![license](https://img.shields.io/github/license/flet-dev/flet-lottie.svg)](https://github.com/flet-dev/flet-lottie/blob/main/LICENSE)
6+
7+
A Flet extension to web content in Flet apps using WebView.
8+
9+
It is based on the [webview_flutter](https://pub.dev/packages/webview_flutter)
10+
and [webview_flutter_web](https://pub.dev/packages/webview_flutter_web) Flutter packages.
11+
12+
## Platform Support
13+
14+
This package supports the following platforms:
15+
16+
| Platform | Supported |
17+
|----------|:---------:|
18+
| Windows ||
19+
| macOS ||
20+
| Linux ||
21+
| iOS ||
22+
| Android ||
23+
| Web ||
24+
25+
## Example
26+
27+
```python title="main.py"
28+
--8<-- "examples/lottie_example/src/main.py"
29+
```

docs/license.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Licence
3+
---
4+
5+
```
6+
--8<-- "LICENSE"
7+
```

docs/types/log_level_severity.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: flet_webview.types.LogLevelSeverity

docs/types/request_method.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: flet_webview.types.RequestMethod
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: flet_webview.types.WebviewConsoleMessageEvent

0 commit comments

Comments
 (0)