From a88e5912a3ab0015293eec14fc678647469bfccf Mon Sep 17 00:00:00 2001 From: pbrochar <36422268+pbrochar@users.noreply.github.com> Date: Sat, 17 Feb 2024 19:03:42 +0100 Subject: [PATCH] Update doc (#8) * Update doc * Update workflow. --- .github/workflows/documentation.yml | 7 ------- blitz/ui/pages/dashboard.py | 2 +- blitz/ui/pages/gpt_builder.py | 2 +- docs/blitzfile/index.md | 6 +++--- docs/index.md | 2 +- 5 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 7a040e3..be54123 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -19,13 +19,6 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.x - - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - - uses: actions/cache@v3 - with: - key: mkdocs-material-${{ env.cache_id }} - path: .cache - restore-keys: | - mkdocs-material- - name: Install Poetry uses: snok/install-poetry@v1 - run: poetry install --with=doc diff --git a/blitz/ui/pages/dashboard.py b/blitz/ui/pages/dashboard.py index 4575bee..6d67b8a 100644 --- a/blitz/ui/pages/dashboard.py +++ b/blitz/ui/pages/dashboard.py @@ -34,7 +34,7 @@ def render_page(self) -> None: with ui.column().classes("w-2/3 h-full border rounded-lg border-gray-300"): with ui.expansion("Project", value=True, icon="info").classes("w-full text-bold text-2xl "): ProjectDetailComponent().render() - with ui.expansion("Models", value=True, icon="help_outline").classes("w-full text-bold text-2xl"): + with ui.expansion("Resources", value=True, icon="help_outline").classes("w-full text-bold text-2xl"): ui.table(columns=self.columns, rows=self.rows, row_key="name").classes("w-full no-shadow") with ui.expansion("Status", value=True, icon="health_and_safety").classes("w-full text-bold text-2xl"): # See https://github.com/zauberzeug/nicegui/issues/2174 diff --git a/blitz/ui/pages/gpt_builder.py b/blitz/ui/pages/gpt_builder.py index 9be65ed..a52a713 100644 --- a/blitz/ui/pages/gpt_builder.py +++ b/blitz/ui/pages/gpt_builder.py @@ -23,7 +23,7 @@ "description": "A randomly generated Blitz app", "version": "1.0.0" }, - "models": [ + "resources": [ { "name": "User", "fields": { diff --git a/docs/blitzfile/index.md b/docs/blitzfile/index.md index a199fd3..cd49278 100644 --- a/docs/blitzfile/index.md +++ b/docs/blitzfile/index.md @@ -58,7 +58,7 @@ The resources section is built as below: === "Json" ```json - "models": [ + "resources": [ { "name": "TodoList", "fields": {} @@ -102,7 +102,7 @@ Here is an example of a working Blitz file: === "Json" ```json - "models": [ + "resources": [ { "name": "TodoList", "fields": { @@ -147,7 +147,7 @@ Here is an example of a working Blitz file: === "Json (explicit)" ```json - "models": [ + "resources": [ { "name": "TodoList", "fields": { diff --git a/docs/index.md b/docs/index.md index 3bf8b66..07efcaf 100644 --- a/docs/index.md +++ b/docs/index.md @@ -43,7 +43,7 @@ Here is an example of how simple a Blitz file is: "description": "Here is a simple blitz configuration file.", "version": "0.1.0" }, - "models": [ + "resources": [ { "name": "TodoList", "fields": {