Skip to content

Commit 6d5b689

Browse files
Add docs link to demo, disable typescript docs for now (#299)
1 parent 3f90dfb commit 6d5b689

File tree

6 files changed

+29
-8
lines changed

6 files changed

+29
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,17 @@ jobs:
4545
with:
4646
python-version: '3.11'
4747

48+
# note: PPPR_TOKEN is not available on PRs sourced from forks, but the necessary
49+
# dependencies are also listed in docs.txt :)
4850
- name: install
4951
run: |
5052
pip install --upgrade pip
53+
pip install --extra-index-url https://pydantic:${PPPR_TOKEN}@pppr.pydantic.dev/simple/ mkdocs-material mkdocstrings-python
5154
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
5559
env:
5660
PPPR_TOKEN: ${{ secrets.PPPR_TOKEN }}
5761

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ install:
88
pip install -e $(path)
99
pre-commit install
1010

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+
1120
.PHONY: update-lockfiles
1221
update-lockfiles:
1322
@echo "Updating requirements files using pip-compile"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# FastUI
22

3+
Find the documentation [here](https://docs.pydantic.dev/fastui/).
4+
35
[![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)
46
[![pypi](https://img.shields.io/pypi/v/fastui.svg)](https://pypi.python.org/pypi/fastui)
57
[![versions](https://img.shields.io/pypi/pyversions/fastui.svg)](https://github.com/pydantic/FastUI)

build-docs.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ set -x
55

66
python3 -V
77

8+
python3 -m pip install --extra-index-url https://pydantic:${PPPR_TOKEN}@pppr.pydantic.dev/simple/ mkdocs-material mkdocstrings-python
89
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
1214

1315
python3 -m mkdocs build

demo/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def api_index() -> list[AnyComponent]:
1616
This site provides a demo of [FastUI](https://github.com/pydantic/FastUI), the code for the demo
1717
is [here](https://github.com/pydantic/FastUI/tree/main/demo).
1818
19+
You can find the documentation for FastUI [here](https://docs.pydantic.dev/fastui/).
20+
1921
The following components are demonstrated:
2022
2123
* `Markdown` — that's me :-)

docs/api/typescript_components.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
!!! warning "🚧 Work in Progress"
44
This page is a work in progress.
55

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 -->

0 commit comments

Comments
 (0)