Skip to content

Commit 7b3f9d0

Browse files
committed
Replace MkDocs with static GitHub Pages site
Replace the MkDocs-based docs with a plain static site under docs/: add HTML pages, .nojekyll, and updated CSS; remove original markdown sources and mkdocs.yml. Update CI to upload the docs/ directory (remove MkDocs setup/build steps and use docs path), adjust README instructions to preview the static site locally, and remove MkDocs-related extras from pyproject.toml. Overall switches the project from a MkDocs workflow to prebuilt static pages for GitHub Pages.
1 parent 5372478 commit 7b3f9d0

File tree

16 files changed

+465
-334
lines changed

16 files changed

+465
-334
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ on:
55
branches: ["main", "master"]
66
paths:
77
- "docs/**"
8-
- "mkdocs.yml"
98
- ".github/workflows/docs.yml"
109
pull_request:
1110
branches: ["main", "master"]
1211
paths:
1312
- "docs/**"
14-
- "mkdocs.yml"
1513
- ".github/workflows/docs.yml"
1614
workflow_dispatch:
1715

@@ -31,22 +29,10 @@ jobs:
3129
- name: Checkout
3230
uses: actions/checkout@v4
3331

34-
- name: Setup Python
35-
uses: actions/setup-python@v5
36-
with:
37-
python-version: "3.12"
38-
39-
- name: Install docs dependencies
40-
run: |
41-
pip install mkdocs mkdocs-material
42-
43-
- name: Build docs
44-
run: mkdocs build --strict
45-
4632
- name: Upload artifact
4733
uses: actions/upload-pages-artifact@v3
4834
with:
49-
path: site
35+
path: docs
5036

5137
deploy:
5238
if: github.event_name != 'pull_request'

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,24 +139,24 @@ If dense model loading fails, lore automatically falls back to TF-IDF so search
139139

140140
## Documentation site (GitHub Pages)
141141

142-
This repository now includes a docs site scaffold in `docs/` using MkDocs.
142+
This repository now includes a plain static docs site in `docs/` for GitHub Pages.
143143

144-
Run docs locally:
144+
Preview locally:
145145

146146
```sh
147-
pip install "lore-book[docs]"
148-
mkdocs serve
147+
cd docs
148+
python3 -m http.server 8000
149149
```
150150

151-
Build docs locally:
151+
Then open:
152152

153-
```sh
154-
mkdocs build --strict
153+
```text
154+
http://localhost:8000
155155
```
156156

157157
Publishing is handled by `.github/workflows/docs.yml` on pushes to `main`/`master`.
158158

159-
To migrate existing docs pages into this repo, copy markdown files into `docs/` and update `nav` in `mkdocs.yml`.
159+
To migrate existing docs pages into this repo, add or edit static files under `docs/`.
160160

161161
---
162162

docs/.nojekyll

Whitespace-only changes.

docs/assets/stylesheets/homebrew-legacy.css

Lines changed: 93 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -11,82 +11,89 @@
1111

1212
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap");
1313

14-
.md-main {
14+
* {
15+
box-sizing: border-box;
16+
}
17+
18+
html {
19+
scroll-behavior: smooth;
20+
}
21+
22+
body {
23+
margin: 0;
1524
background-color: #1a1208;
1625
background-image:
1726
radial-gradient(ellipse at 50% 0%, rgba(200, 151, 58, 0.08) 0%, transparent 70%),
1827
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
19-
}
20-
21-
.md-content {
2228
color: var(--ink);
2329
font-family: "Crimson Text", Georgia, serif;
2430
font-size: 19px;
2531
line-height: 1.75;
32+
min-height: 100vh;
2633
}
2734

28-
.md-content__inner {
29-
margin: 0;
30-
padding-top: 0;
31-
}
32-
33-
.md-content__inner:before {
34-
display: none;
35+
a {
36+
color: inherit;
3537
}
3638

37-
.md-content h1,
38-
.md-content h2,
39-
.md-content h3,
40-
.md-header__title,
41-
.md-tabs__link {
39+
h1,
40+
h2,
41+
h3 {
4242
font-family: "Cinzel", serif;
4343
}
4444

45-
.legacy-home {
46-
position: relative;
47-
min-height: 100vh;
45+
.site-nav-wrap {
46+
position: sticky;
47+
top: 0;
48+
z-index: 4;
49+
backdrop-filter: blur(10px);
50+
background: rgba(26, 18, 8, 0.74);
51+
border-bottom: 1px solid rgba(200, 151, 58, 0.18);
4852
}
4953

50-
body.legacy-home-page .md-header,
51-
body.legacy-home-page .md-sidebar,
52-
body.legacy-home-page .md-tabs,
53-
body.legacy-home-page .md-footer {
54-
display: none;
54+
.site-nav {
55+
width: min(100%, 1100px);
56+
margin: 0 auto;
57+
padding: 0.85rem 1.5rem;
58+
display: flex;
59+
align-items: center;
60+
justify-content: space-between;
61+
gap: 1rem;
5562
}
5663

57-
body.legacy-home-page .md-main__inner {
58-
display: flex;
59-
justify-content: center;
60-
align-items: flex-start;
61-
margin: 0;
62-
padding: 0;
63-
max-width: none;
64-
min-height: 100vh;
64+
.site-brand,
65+
.site-link {
66+
text-decoration: none;
6567
}
6668

67-
body.legacy-home-page .md-content {
68-
flex: 1 1 auto;
69-
width: 100%;
70-
max-width: none;
71-
margin: 0 auto;
69+
.site-brand {
70+
font-family: "Cinzel", serif;
71+
font-size: 1.05rem;
72+
letter-spacing: 0.12em;
73+
color: var(--gold-bright);
7274
}
7375

74-
body.legacy-home-page .md-content__inner {
75-
width: 100%;
76-
margin: 0;
77-
padding: 0;
76+
.site-links {
77+
display: flex;
78+
flex-wrap: wrap;
79+
justify-content: center;
80+
gap: 0.35rem 0.8rem;
7881
}
7982

80-
body.legacy-home-page .md-grid {
81-
max-width: none;
82-
margin: 0;
83+
.site-link {
84+
font-family: "Cinzel", serif;
85+
font-size: 0.82rem;
86+
letter-spacing: 0.1em;
87+
color: var(--parchment-dark);
88+
padding: 0.28rem 0.4rem;
89+
border-bottom: 1px solid transparent;
8390
}
8491

85-
body.legacy-home-page .md-container,
86-
body.legacy-home-page .md-main,
87-
body.legacy-home-page .md-content,
88-
body.legacy-home-page article.md-content__inner {
89-
overflow: visible;
92+
.site-link:hover,
93+
.site-link.active,
94+
.site-brand.active {
95+
color: var(--gold-bright);
96+
border-color: rgba(232, 184, 75, 0.6);
9097
}
9198

9299
#sparkles {
@@ -110,6 +117,10 @@ body.legacy-home-page article.md-content__inner {
110117
align-items: center;
111118
}
112119

120+
.docs-page {
121+
padding-top: 2.4rem;
122+
}
123+
113124
.cover {
114125
text-align: center;
115126
padding: 4rem 2rem 3rem;
@@ -173,6 +184,26 @@ body.legacy-home-page article.md-content__inner {
173184
margin-right: auto;
174185
}
175186

187+
.simple-hero {
188+
text-align: center;
189+
}
190+
191+
.simple-hero h1 {
192+
margin: 0;
193+
font-size: clamp(2.3rem, 6vw, 3.7rem);
194+
color: var(--gold-bright);
195+
text-shadow: 0 0 30px rgba(232, 184, 75, 0.22);
196+
}
197+
198+
.eyebrow {
199+
margin: 0 0 0.6rem;
200+
font-family: "Cinzel", serif;
201+
font-size: 0.8rem;
202+
letter-spacing: 0.18em;
203+
text-transform: uppercase;
204+
color: var(--gold);
205+
}
206+
176207
.parchment {
177208
background: var(--parchment);
178209
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
@@ -298,6 +329,10 @@ body.legacy-home-page article.md-content__inner {
298329
text-decoration: none;
299330
}
300331

332+
.target-item a:hover {
333+
text-decoration: underline;
334+
}
335+
301336
.link-rune {
302337
font-family: "Cinzel", serif;
303338
font-size: 0.85rem;
@@ -397,6 +432,15 @@ body.legacy-home-page article.md-content__inner {
397432
}
398433

399434
@media (max-width: 600px) {
435+
body {
436+
font-size: 18px;
437+
}
438+
439+
.site-nav {
440+
padding: 0.8rem 0.9rem;
441+
flex-direction: column;
442+
}
443+
400444
.page {
401445
padding: 2rem 0.85rem 4rem;
402446
}
@@ -409,10 +453,6 @@ body.legacy-home-page article.md-content__inner {
409453
font-size: 1.05rem;
410454
}
411455

412-
.md-content {
413-
font-size: 18px;
414-
}
415-
416456
.target-list,
417457
.command-columns {
418458
grid-template-columns: 1fr;

docs/cli.md

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

docs/cli/index.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<title>CLI · Lore</title>
7+
<meta name="description" content="Lore CLI" />
8+
<link rel="canonical" href="https://cptplastic.github.io/lore-book/cli/" />
9+
<link rel="stylesheet" href="../assets/stylesheets/homebrew-legacy.css" />
10+
</head>
11+
<body>
12+
<canvas id="sparkles"></canvas>
13+
<header class="site-nav-wrap">
14+
<nav class="site-nav" aria-label="Primary">
15+
<a class="site-brand" href="../">Lore</a>
16+
<div class="site-links">
17+
<a class="site-link" href="../install/">Install</a>
18+
<a class="site-link" href="../concepts/">Concepts</a>
19+
<a class="site-link active" href="./">CLI</a>
20+
<a class="site-link" href="../faq/">FAQ</a>
21+
<a class="site-link" href="https://github.com/CptPlastic/lore-book">GitHub</a>
22+
</div>
23+
</nav>
24+
</header>
25+
26+
<main class="page docs-page">
27+
<section class="parchment simple-hero">
28+
<p class="eyebrow">Lore Documentation</p>
29+
<h1>CLI</h1>
30+
<p class="tagline">Core commands for onboarding, capture, search, and export.</p>
31+
</section>
32+
33+
<section class="parchment">
34+
<h2><span class="rune"></span> Onboard</h2>
35+
<div class="incantation">lore onboard</div>
36+
<h2><span class="rune"></span> Add Memory</h2>
37+
<div class="incantation">lore add decisions "Use PostgreSQL for row-level locking"</div>
38+
<h2><span class="rune"></span> Search Memory</h2>
39+
<div class="incantation">lore search "why did we choose postgres"</div>
40+
<h2><span class="rune"></span> Export Context Files</h2>
41+
<div class="incantation">lore export</div>
42+
</section>
43+
44+
<div class="links">
45+
<a class="link-rune" href="../">✦ Home</a>
46+
<a class="link-rune" href="../faq/">⚜ FAQ</a>
47+
</div>
48+
</main>
49+
<script src="../assets/javascripts/homebrew-legacy.js"></script>
50+
</body>
51+
</html>

docs/concepts.md

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

0 commit comments

Comments
 (0)