Skip to content

Commit 3ee7d1b

Browse files
docs: migrate documentation from raw Quarto to Great Docs
Replace the hand-authored Quarto site with Great Docs user guide flow so narrative docs build and deploy from user_guide/ while README stays a normal checked-in file.
1 parent 7c79c5b commit 3ee7d1b

17 files changed

Lines changed: 162 additions & 1733 deletions

.github/workflows/publish.yml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
permissions:
1111
id-token: write
1212
contents: write
13-
13+
pages: write
14+
1415
services:
1516
postgres:
1617
image: postgres:latest
@@ -55,11 +56,6 @@ jobs:
5556
- name: Set up Quarto
5657
uses: quarto-dev/quarto-actions/setup@v2
5758

58-
- name: Configure Git
59-
run: |
60-
git config --global user.name "github-actions[bot]"
61-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
62-
6359
- name: Set required env variables
6460
run: |
6561
echo "DB_USER=postgres" > _environment
@@ -75,20 +71,17 @@ jobs:
7571
- name: Setup Graphviz
7672
uses: ts-graphviz/setup-graphviz@v2
7773

78-
- name: Render Documentation
74+
- name: Build Documentation
7975
run: |
80-
# Publish Quarto documentation
81-
uv run quarto publish gh-pages --no-prompt --no-browser
82-
83-
# Render README in GitHub Flavored Markdown
84-
uv run quarto render index.qmd --output-dir . --output README.md --to gfm
85-
86-
# Remove index.html if it exists
87-
rm -f index.html
76+
set -a
77+
source _environment
78+
set +a
79+
PYTHONPATH=. uv run great-docs build
8880
89-
- name: Commit version change
90-
uses: stefanzweifel/git-auto-commit-action@v5
81+
- name: Deploy Documentation
82+
uses: peaceiris/actions-gh-pages@v4
9183
with:
92-
commit_message: "Update README"
93-
branch: ${{ github.ref_name }}
94-
file_pattern: "README.md"
84+
github_token: ${{ steps.create_token.outputs.token }}
85+
publish_dir: ./great-docs/_site
86+
publish_branch: gh-pages
87+
force_orphan: false

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,12 @@ package.json
1616
.specstory
1717
repomix-output.txt
1818
artifacts/
19-
.cursorindexingignore
19+
.cursorindexingignore
20+
# Great Docs build directory (ephemeral, do not commit)
21+
great-docs/
22+
23+
# Great Docs versioned-build artifacts
24+
_great_docs_build/
25+
.great-docs-build/
26+
.great-docs-cache/
27+
.great-docs/

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33

44
![Screenshot of the FastAPI webapp template
5-
homepage](docs/static/screenshot.jpg)
5+
homepage](user_guide/static/screenshot.jpg)
66

77
## Quickstart
88

99
This quickstart guide provides a high-level overview. See the full
1010
documentation for comprehensive information on
11-
[features](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/index.html),
12-
[installation](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/docs/installation.html),
13-
[architecture](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/docs/architecture.html),
11+
[features](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/),
12+
[installation](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/user-guide/installation.html),
13+
[architecture](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/user-guide/architecture.html),
1414
[conventions, code style, and
15-
customization](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/docs/customization.html),
15+
customization](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/user-guide/customization.html),
1616
[deployment to cloud
17-
platforms](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/docs/deployment.html),
17+
platforms](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/user-guide/deployment.html),
1818
and
19-
[contributing](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/docs/contributing.html).
19+
[contributing](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/user-guide/contributing.html).
2020

2121
## Features
2222

@@ -60,8 +60,7 @@ to deploy to any major cloud hosting platform.
6060
- [Pytest](https://docs.pytest.org/en/7.4.x/): testing framework
6161
- [Docker](https://www.docker.com/): development containerization
6262
- [Github Actions](https://docs.github.com/en/actions): CI/CD pipeline
63-
- [Quarto](https://quarto.org/docs/): simple documentation website
64-
renderer
63+
- [Great Docs](https://posit-dev.github.io/great-docs/): documentation website generator
6564
- [ty](https://docs.astral.sh/ty/): static type checker for Python
6665
- [Bootstrap](https://getbootstrap.com/): HTML/CSS styler
6766
- [Resend](https://resend.com/): zero- or low-cost email service used
@@ -70,7 +69,7 @@ to deploy to any major cloud hosting platform.
7069
## Installation
7170

7271
For comprehensive installation instructions, see the [installation
73-
page](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/docs/installation.html).
72+
page](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/user-guide/installation.html).
7473

7574
### uv
7675

@@ -182,10 +181,11 @@ uv run ty check .
182181
## Developing with LLMs
183182

184183
The `.cursor/rules` folder contains a set of AI rules for working on
185-
this codebase in the Cursor IDE. We have also exposed the full
186-
Markdown-formatted project documentation as a [single text
187-
file](docs/static/documentation.txt) for easy downloading and embedding
188-
for RAG.
184+
this codebase in the Cursor IDE. The documentation site also publishes
185+
[llms.txt](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/llms.txt)
186+
and
187+
[llms-full.txt](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/llms-full.txt)
188+
for easy downloading and embedding for RAG.
189189

190190
## Contributing
191191

_quarto.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)