Skip to content

Commit cd80a02

Browse files
committed
Website and Github Workflows
1 parent a4ee6da commit cd80a02

6 files changed

Lines changed: 195 additions & 218 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
verify:
12+
name: Verify (Ruby ${{ matrix.ruby }})
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
ruby:
18+
- "3.2"
19+
- "3.3"
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Ruby
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: ${{ matrix.ruby }}
29+
bundler-cache: true
30+
31+
- name: Run release verification
32+
run: bundle exec rake

.github/workflows/pages.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Docs Website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "docs/website/**"
9+
- ".github/workflows/pages.yml"
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: pages
19+
cancel-in-progress: true
20+
21+
jobs:
22+
deploy:
23+
name: Deploy Docs Website
24+
runs-on: ubuntu-latest
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Configure Pages
34+
uses: actions/configure-pages@v5
35+
36+
- name: Upload static site artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: docs/website
40+
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
<p align="center">
88
<img src="https://img.shields.io/badge/version-1.0.0-0A66C2?style=for-the-badge" alt="Version">
99
<img src="https://img.shields.io/badge/ruby-%3E%3D%203.2-red?style=for-the-badge&logo=ruby&logoColor=white" alt="Ruby >= 3.2">
10-
<img src="https://img.shields.io/badge/tests-42%2F42%20passing-2E8B57?style=for-the-badge" alt="Tests Passing">
11-
<img src="https://img.shields.io/badge/verify-rake%20verify%20passing-2E8B57?style=for-the-badge" alt="Rake Verify Passing"><br>
10+
<a href="https://github.com/voltsparx/ASRFacet-Rb/actions/workflows/ci.yml"><img src="https://github.com/voltsparx/ASRFacet-Rb/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
11+
<a href="https://github.com/voltsparx/ASRFacet-Rb/actions/workflows/pages.yml"><img src="https://github.com/voltsparx/ASRFacet-Rb/actions/workflows/pages.yml/badge.svg" alt="Docs Website"></a><br>
12+
<img src="https://img.shields.io/badge/tests-51%2F51%20passing-2E8B57?style=for-the-badge" alt="Tests Passing">
13+
<img src="https://img.shields.io/badge/verify-bundle%20exec%20rake%20passing-2E8B57?style=for-the-badge" alt="Rake Verify Passing"><br>
1214
<img src="https://img.shields.io/badge/status-stable-4C956C?style=for-the-badge" alt="Status Stable">
1315
<img src="https://img.shields.io/badge/license-Proprietary-8B0000?style=for-the-badge" alt="License">
1416
</p>
@@ -29,11 +31,16 @@ The full first-release documentation set lives in `docs/`.
2931
- `docs/lab.md`
3032
- `docs/publishing.md`
3133

34+
Repository automation now includes:
35+
36+
- GitHub Actions CI in `.github/workflows/ci.yml` running `bundle exec rake`
37+
- GitHub Pages deployment in `.github/workflows/pages.yml` publishing `docs/website/`
38+
3239
Execution ownership stays intentionally strict: the scheduler owns orchestration,
3340
execution helpers run work, and engines do not create their own competing
3441
control loops.
3542

36-
The current README reflects the latest verified release-style test run on April 7, 2026: `bundle exec rake` completed successfully, including `49 examples, 0 failures`, CLI smoke checks, web-session smoke checks, local lab smoke checks, installer smoke checks, and a clean gem build.
43+
The current README reflects the latest verified release-style test run on April 8, 2026: `bundle exec rake` completed successfully, including `51 examples, 0 failures`, CLI smoke checks, web-session smoke checks, local lab smoke checks, installer smoke checks, and a clean gem build.
3744

3845
## Authorized Use
3946

docs/website/app.js

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,7 @@ const DocsData = (() => {
3131
author: "Author, license, contact, and repository links."
3232
};
3333

34-
const textFixes = new Map([
35-
["—", "—"],
36-
["·", "·"],
37-
["≥", ">="],
38-
["✉", "✉"],
39-
["âš ", "⚠"],
40-
["â–¸", "▸"],
41-
["⬡", "⬡"],
42-
["â—ˆ", "◈"],
43-
["🔍", "🔍"],
44-
["🌐", "🌐"],
45-
["📡", "📡"],
46-
["🕷️", "🕷️"],
47-
["📊", "📊"],
48-
["🔄", "🔄"],
49-
["🧪", "🧪"],
50-
["🖥️", "🖥️"],
51-
["📖", "📖"]
52-
]);
53-
54-
return { groups, hints, textFixes };
34+
return { groups, hints };
5535
})();
5636

5737
const DocsState = {
@@ -77,43 +57,6 @@ const DocsElements = {
7757
title: document.querySelector("title")
7858
};
7959

80-
const TextNormalizer = (() => {
81-
const blockedTags = new Set(["SCRIPT", "STYLE", "CODE", "PRE", "TEXTAREA"]);
82-
83-
function replaceArtifacts(text) {
84-
let output = text;
85-
DocsData.textFixes.forEach((replacement, source) => {
86-
output = output.split(source).join(replacement);
87-
});
88-
return output;
89-
}
90-
91-
function normalizeTree(root = document.body) {
92-
const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT);
93-
const pending = [];
94-
95-
while (walker.nextNode()) {
96-
const node = walker.currentNode;
97-
const parent = node.parentElement;
98-
if (!parent || blockedTags.has(parent.tagName)) {
99-
continue;
100-
}
101-
102-
const original = node.nodeValue;
103-
const normalized = replaceArtifacts(original);
104-
if (normalized !== original) {
105-
pending.push([node, normalized]);
106-
}
107-
}
108-
109-
pending.forEach(([node, normalized]) => {
110-
node.nodeValue = normalized;
111-
});
112-
}
113-
114-
return { normalizeTree };
115-
})();
116-
11760
const SectionRegistry = (() => {
11861
function titleFor(section) {
11962
const selectors = [".home-hero-title", ".page-title", ".footer-col-title"];
@@ -397,7 +340,6 @@ const App = (() => {
397340
}
398341

399342
function init() {
400-
TextNormalizer.normalizeTree();
401343
SectionRegistry.collect();
402344
Sidebar.render();
403345
Palette.bind();

0 commit comments

Comments
 (0)