File tree Expand file tree Collapse file tree 6 files changed +29
-8
lines changed Expand file tree Collapse file tree 6 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,17 @@ jobs:
45
45
with :
46
46
python-version : ' 3.11'
47
47
48
+ # note: PPPR_TOKEN is not available on PRs sourced from forks, but the necessary
49
+ # dependencies are also listed in docs.txt :)
48
50
- name : install
49
51
run : |
50
52
pip install --upgrade pip
53
+ pip install --extra-index-url https://pydantic:${PPPR_TOKEN}@pppr.pydantic.dev/simple/ mkdocs-material mkdocstrings-python
51
54
pip install -r requirements/docs.txt
52
- pip install --extra-index-url https://pydantic:${PPPR_TOKEN}@pppr.pydantic.dev/simple/ mkdocs-material mkdocstrings-python griffe-typedoc mkdocstrings-typescript
53
- npm install
54
- npm install -g typedoc
55
+ # note -- we can use these in the future when mkdocstrings-typescript and griffe-typedoc beocome publicly available
56
+ # pip install --extra-index-url https://pydantic:${PPPR_TOKEN}@pppr.pydantic.dev/simple/ mkdocs-material mkdocstrings-python griffe-typedoc mkdocstrings-typescript
57
+ # npm install
58
+ # npm install -g typedoc
55
59
env :
56
60
PPPR_TOKEN : ${{ secrets.PPPR_TOKEN }}
57
61
Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ install:
8
8
pip install -e $(path )
9
9
pre-commit install
10
10
11
+
12
+ .PHONY : install-docs
13
+ install-docs :
14
+ pip install -r requirements/docs.txt
15
+
16
+ # note -- mkdocstrings-typescript and griffe-typedoc are not yet publicly available
17
+ # but the following can be added above the pip install -r requirements/docs.txt line in the future
18
+ # pip install mkdocstrings-python mkdocstrings-typescript griffe-typedoc
19
+
11
20
.PHONY : update-lockfiles
12
21
update-lockfiles :
13
22
@echo " Updating requirements files using pip-compile"
Original file line number Diff line number Diff line change 1
1
# FastUI
2
2
3
+ Find the documentation [ here] ( https://docs.pydantic.dev/fastui/ ) .
4
+
3
5
[ ![ CI] ( https://github.com/pydantic/FastUI/actions/workflows/ci.yml/badge.svg )] ( https://github.com/pydantic/FastUI/actions?query=event%3Apush+branch%3Amain+workflow%3ACI )
4
6
[ ![ pypi] ( https://img.shields.io/pypi/v/fastui.svg )] ( https://pypi.python.org/pypi/fastui )
5
7
[ ![ versions] ( https://img.shields.io/pypi/pyversions/fastui.svg )] ( https://github.com/pydantic/FastUI )
Original file line number Diff line number Diff line change 5
5
6
6
python3 -V
7
7
8
+ python3 -m pip install --extra-index-url https://pydantic:${PPPR_TOKEN} @pppr.pydantic.dev/simple/ mkdocs-material mkdocstrings-python
8
9
python3 -m pip install -r ./requirements/docs.txt
9
- pip install --extra-index-url https://pydantic:$PPPR_TOKEN @pppr.pydantic.dev/simple/ mkdocs-material mkdocstrings-python griffe-typedoc mkdocstrings-typescript
10
- npm install
11
- npm install -g typedoc
10
+ # note -- we can use these in the future when mkdocstrings-typescript and griffe-typedoc beocome publicly available
11
+ # python3 -m pip install --extra-index-url https://pydantic:$PPPR_TOKEN@pppr.pydantic.dev/simple/ mkdocs-material mkdocstrings-python griffe-typedoc mkdocstrings-typescript
12
+ # npm install
13
+ # npm install -g typedoc
12
14
13
15
python3 -m mkdocs build
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ def api_index() -> list[AnyComponent]:
16
16
This site provides a demo of [FastUI](https://github.com/pydantic/FastUI), the code for the demo
17
17
is [here](https://github.com/pydantic/FastUI/tree/main/demo).
18
18
19
+ You can find the documentation for FastUI [here](https://docs.pydantic.dev/fastui/).
20
+
19
21
The following components are demonstrated:
20
22
21
23
* `Markdown` — that's me :-)
Original file line number Diff line number Diff line change 3
3
!!! warning "🚧 Work in Progress"
4
4
This page is a work in progress.
5
5
6
- ::: @pydantic/fastui
7
- handler: typescript
6
+ <!-- Note -- we will enable this in the future when mkdocstrings-typescript and griffe-typedoc
7
+ Have publicly available options -->
8
+ <!-- ::: @pydantic/fastui
9
+ handler: typescript -->
You can’t perform that action at this time.
0 commit comments