Skip to content

Commit 7e1d07d

Browse files
Merge pull request #4 from GapIntelligence/staging
Clean Up Public Site 🌲
2 parents 6582245 + 276326c commit 7e1d07d

9 files changed

Lines changed: 103 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- staging
8+
pull_request:
9+
branches:
10+
- main
11+
- staging
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.11'
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r requirements.txt
29+
30+
- name: Run tests
31+
run: python -m pytest --cov=. --cov-report xml
32+
33+
- name: Upload coverage to Codecov
34+
uses: codecov/codecov-action@v4
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
files: ./coverage.xml
38+
fail_ci_if_error: true

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# OpenBrand
2+
3+
![CI](https://github.com/GapIntelligence/.github/actions/workflows/ci.yml/badge.svg)
4+
[![codecov](https://codecov.io/gh/GapIntelligence/.github/graph/badge.svg?token=GQXX40CMBF)](https://codecov.io/gh/GapIntelligence/.github)
5+
6+
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).

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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
Welcome to the OpenBrand GitHub repository. OpenBrand was formed through the integration of industry-leading companies: Gap Intelligence, Deep.ad, Traqline, and Competitive Promotion Report. We are committed to bringing clarity to the market through superior data analytics, web crawling technology, and LLM-driven insights.
55

6+
![CI](https://github.com/GapIntelligence/.github/actions/workflows/ci.yml/badge.svg)
7+
[![codecov](https://codecov.io/gh/GapIntelligence/.github/graph/badge.svg?token=GQXX40CMBF)](https://codecov.io/gh/GapIntelligence/.github)
8+
9+
610
**Official Website:** [openbrand.com](https://openbrand.com)
711

812
## About OpenBrand
@@ -55,4 +59,6 @@ To get started with development, please ensure you have access to the necessary
5559

5660
---
5761

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

requirements.txt

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

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

visibility.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"schemaVersion": 1,
3+
"label": "repo",
4+
"message": "public",
5+
"color": "brightgreen"
6+
}

0 commit comments

Comments
 (0)