Skip to content

Commit 1d0f8ed

Browse files
Merge pull request #3 from GapIntelligence/codex/improve-repository
Replace dummy module with MkDocs build test
2 parents 611b0bf + 210fda4 commit 1d0f8ed

9 files changed

Lines changed: 47 additions & 7 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,17 @@
44
[![codecov](https://codecov.io/gh/GapIntelligence/.github/graph/badge.svg?token=GQXX40CMBF)](https://codecov.io/gh/GapIntelligence/.github)
55

66
This repository contains configuration files and documentation used by OpenBrand.
7+
8+
## Documentation
9+
10+
For an overview of the organization, visit the [profile README](profile/README.md).
11+
The MkDocs site is built from the files in the [`docs/`](docs/) directory.
12+
13+
## Development
14+
15+
This repository uses [MkDocs](https://www.mkdocs.org/) for documentation.
16+
Run the test suite (which also builds the site) with:
17+
18+
```bash
19+
python -m pytest -q
20+
```

docs/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# OpenBrand Documentation
2+
3+
This site contains documentation about the OpenBrand organization.
4+
5+
For repository details, see the [main README](../README.md).
6+
7+
Learn more about our organization on the [profile page](profile.md).

docs/profile.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# OpenBrand Profile
2+
3+
This page mirrors the information in [profile/README.md](../profile/README.md).

dummy.py

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

mkdocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
site_name: OpenBrand Docs
2+
nav:
3+
- Home: index.md
4+
- Profile: profile.md
5+
docs_dir: docs

profile/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,6 @@ To get started with development, please ensure you have access to the necessary
5959

6060
---
6161

62+
For repository configuration details, see the [main README](../README.md).
63+
6264
Thank you for contributing to OpenBrand's continued success!

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pytest
22
pytest-cov
3+
mkdocs

tests/test_dummy.py

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

tests/test_mkdocs.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import subprocess
2+
from pathlib import Path
3+
4+
5+
def test_mkdocs_build(tmp_path: Path) -> None:
6+
"""Ensure the mkdocs site builds successfully."""
7+
site_dir = tmp_path / "site"
8+
result = subprocess.run([
9+
"mkdocs",
10+
"build",
11+
"--site-dir",
12+
str(site_dir),
13+
], capture_output=True, text=True)
14+
assert result.returncode == 0, result.stderr
15+
assert site_dir.exists()

0 commit comments

Comments
 (0)