Skip to content

Commit 6104100

Browse files
Merge pull request #306 from CodeForPhilly/user-guide
Add readme for user docs
2 parents f1c78d8 + 7ab2dcd commit 6104100

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

docs/user-docs/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# BDT User Docs
2+
3+
Documentation for the Benefit Decision Toolkit is built with [MkDocs](https://www.mkdocs.org/) using the [Material theme](https://squidfunk.github.io/mkdocs-material/).
4+
5+
The live site is published at [https://bdt-docs.web.app](https://bdt-docs.web.app).
6+
7+
## Editing the Docs
8+
9+
All documentation is written in Markdown. The source files are in the `docs/` directory:
10+
11+
```
12+
docs/user-docs/
13+
├── docs/
14+
│ ├── index.md # Introduction
15+
│ ├── user-guide.md # Building a Screener
16+
│ └── custom-checks.md # Custom Eligibility Checks
17+
└── mkdocs.yml # Site configuration and navigation
18+
```
19+
20+
To add or update content, edit the relevant `.md` file directly. To add a new page, create a new `.md` file in the `docs/` directory and add an entry for it in `mkdocs.yml` under `nav`.
21+
22+
For a reference on Markdown syntax, see the [Markdown Guide](https://www.markdownguide.org/basic-syntax/).
23+
24+
## Running Locally
25+
26+
To preview the site while editing, you can run MkDocs locally.
27+
28+
**1. Install dependencies**
29+
30+
Requires Python 3. From the `docs/user-docs/` directory:
31+
32+
```bash
33+
pip install -r requirements.txt
34+
```
35+
36+
**2. Start the local dev server**
37+
38+
```bash
39+
mkdocs serve
40+
```
41+
42+
The site will be available at `http://127.0.0.1:8000`. The server watches for file changes and reloads automatically, so edits to any `.md` file are reflected immediately in the browser.
43+
44+
## Deployment
45+
46+
The docs are deployed automatically. When a pull request is merged into `main` with changes to files under `docs/user-docs/`, a GitHub Actions workflow builds the MkDocs site and deploys it to Firebase Hosting. No manual deployment steps are needed.

0 commit comments

Comments
 (0)