Skip to content

Commit 208592a

Browse files
rdmuellerclaude
andcommitted
Add GitHub Pages workflow and microsite configuration
docToolchain generateSite builds all 5 reports as HTML microsite. Deploys to https://llm-coding.github.io/brownfield-experiment Menu: Report, Direct (1a), Socratic (1c), Two-Phase, Fair Comparison. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0eeb470 commit 208592a

2 files changed

Lines changed: 74 additions & 1 deletion

File tree

.github/workflows/gh-pages.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch: {}
7+
8+
permissions: {}
9+
10+
concurrency:
11+
group: pages-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
env:
20+
DTC_HEADLESS: true
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Setup Java
25+
uses: actions/setup-java@v4
26+
with:
27+
distribution: 'temurin'
28+
java-version: '17'
29+
30+
- name: Setup dtcw
31+
run: chmod +x dtcw
32+
33+
- name: Generate Site
34+
run: ./dtcw generateSite
35+
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: ./build/microsite/output
40+
41+
deploy:
42+
if: github.ref == 'refs/heads/main'
43+
needs: build
44+
runs-on: ubuntu-latest
45+
permissions:
46+
pages: write
47+
id-token: write
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

docToolchainConfig.groovy

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,24 @@ outputPath = 'build'
33
inputPath = 'src/docs'
44

55
inputFiles = [
6-
[file: 'report.adoc', formats: ['html']],
6+
[file: 'report.adoc', formats: ['html']],
7+
[file: 'experiment-1a-direct.adoc', formats: ['html']],
8+
[file: 'experiment-1c-socratic.adoc', formats: ['html']],
9+
[file: 'experiment-2-twophase.adoc', formats: ['html']],
10+
[file: 'experiment-fair-comparison.adoc', formats: ['html']],
711
]
12+
13+
imageDirs = ['images/.']
14+
15+
microsite = [:]
16+
17+
microsite.with {
18+
contextPath = '/'
19+
host = 'https://llm-coding.github.io/brownfield-experiment'
20+
title = 'Brownfield Experiment'
21+
footerGithub = 'https://github.com/LLM-Coding/brownfield-experiment'
22+
footerText = '<small class="text-white">built with <a href="https://doctoolchain.org">docToolchain</a></small>'
23+
issueUrl = 'https://github.com/LLM-Coding/brownfield-experiment/issues/new'
24+
gitRepoUrl = 'https://github.com/LLM-Coding/brownfield-experiment/edit/main/src/docs'
25+
menu = ['report':'Report', 'experiment-1a-direct':'Direct (1a)', 'experiment-1c-socratic':'Socratic (1c)', 'experiment-2-twophase':'Two-Phase', 'experiment-fair-comparison':'Fair Comparison']
26+
}

0 commit comments

Comments
 (0)