Skip to content

Commit 1292c9c

Browse files
committed
chore: initialize documentation structure with Scribble and GitHub Pages setup
1 parent fb196b2 commit 1292c9c

File tree

18 files changed

+854
-178
lines changed

18 files changed

+854
-178
lines changed

.github/workflows/scribble.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build and Deploy Scribble Documentation
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Racket
25+
uses: Bogdanp/setup-racket@v1
26+
with:
27+
version: '8.17'
28+
29+
- name: Install Scribble
30+
run: raco pkg install scribble
31+
32+
- name: Build Documentation
33+
run: |
34+
cd docs
35+
raco scribble --htmls --dest ../_site main.scrbl
36+
37+
- name: Setup Pages
38+
id: pages
39+
uses: actions/configure-pages@v4
40+
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: '_site'
45+
46+
deploy:
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
runs-on: ubuntu-latest
51+
needs: build
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
_site/
2+
.jekyll-cache/
3+
.DS_Store
4+
*.log

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
brickellresearch.org

Dockerfile

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

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Brickell Research Documentation
2+
3+
This repository contains documentation built with Racket's Scribble and deployed to GitHub Pages.
4+
5+
## Local Development
6+
7+
1. Install Racket (version 8.12 or later)
8+
2. Install Scribble: `raco pkg install scribble`
9+
3. Build the documentation: `cd docs && raco scribble --htmls main.scrbl`
10+
4. Open the generated HTML files in your browser
11+
12+
## Deployment
13+
14+
The documentation is automatically built and deployed to GitHub Pages when changes are pushed to the main branch.

docs/about.scrbl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#lang scribble/base
2+
3+
@(require "common.scrbl")
4+
5+
@title{About}
6+
7+
@elem[#:style miami-cyan]{Brickell Research is an independent research lab focused on exploring interesting ideas in the field of programming languages and compilers with a special focus on the Ruby and Racket programming languages.}

docs/common.scrbl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#lang scribble/base
2+
3+
@(require scribble/core scribble/html-properties)
4+
@(provide miami-pink miami-cyan miami-cyan-italic logo-style title-with-css footer-style)
5+
6+
@(define miami-pink (make-style #f (list (attributes (list (cons 'style "color: #FF1493;"))))))
7+
@(define miami-cyan (make-style #f (list (attributes (list (cons 'style "color: #00CED1;"))))))
8+
@(define miami-cyan-italic (make-style #f (list (attributes (list (cons 'style "color: #00CED1; font-style: italic;"))))))
9+
@(define logo-style (make-style #f (list (attributes (list (cons 'style "float: right; margin: 10px;"))))))
10+
@(define title-with-css (make-style #f (list (attributes (list (cons 'style "color: #FF1493;"))) (make-css-addition "miami.css"))))
11+
@(define footer-style (make-style #f (list (alt-tag "footer") (attributes (list (cons 'style "text-align: center; margin-top: 2rem; color: #00CED1; font-style: italic;"))))))

docs/logo.svg

Lines changed: 4 additions & 0 deletions
Loading

docs/main.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2+
<html style="color: #FF1493;"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=0.8"/><title>Brickell Research</title><link rel="stylesheet" type="text/css" href="scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="miami.css" title="default"/><link rel="stylesheet" type="text/css" href="scribble-style.css" title="default"/><script type="text/javascript" src="scribble-common.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="scribble-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_0&quot;);">&#9658;</a></td><td></td><td><a href="" class="tocviewselflink" data-pltdoc="x">Brickell Research</a></td></tr></table></div><div class="tocviewsublistonly" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1&nbsp;</td><td><a href="#%28part._.About%29" class="tocviewlink" data-pltdoc="x">About</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="#%28part._.Projects%29" class="tocviewlink" data-pltdoc="x">Projects</a></td></tr></table></div></div></div><div class="tocsub"><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber"></span><a href="#%28part._.Brickell_.Research%29" class="tocsubseclink" data-pltdoc="x">Brickell Research</a></td></tr><tr><td><span class="tocsublinknumber">1<tt>&nbsp;</tt></span><a href="#%28part._.About%29" class="tocsubseclink" data-pltdoc="x">About</a></td></tr><tr><td><span class="tocsublinknumber">2<tt>&nbsp;</tt></span><a href="#%28part._.Projects%29" class="tocsubseclink" data-pltdoc="x">Projects</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><h2 class="heading" style="color: #FF1493;"><a name="(part._.Brickell_.Research)"></a>Brickell Research<span class="button-group"><a href="#(part._.Brickell_.Research)" class="heading-anchor" title="Link to here">🔗</a><span style="visibility: hidden"> </span></span></h2><p><img src="brickell_research_logo.png" alt="" width="256" height="256" style="float: right; margin: 10px;"/></p><blockquote class="SCentered"><p><span class="Smaller"><span style="color: #00CED1; font-style: italic;">Website powered by Racket&rsquo;s Scribble documentation system.</span></span></p></blockquote><h3 class="heading">1<tt>&nbsp;</tt><a name="(part._.About)"></a>About<span class="button-group"><a href="#(part._.About)" class="heading-anchor" title="Link to here">🔗</a><span style="visibility: hidden"> </span></span></h3><p><span style="color: #00CED1;">Brickell Research is an independent research lab focused on exploring interesting ideas in the field of programming languages and compilers with a special focus on the Ruby and Racket programming languages.</span></p><h3 class="heading">2<tt>&nbsp;</tt><a name="(part._.Projects)"></a>Projects<span class="button-group"><a href="#(part._.Projects)" class="heading-anchor" title="Link to here">🔗</a><span style="visibility: hidden"> </span></span></h3><p><span style="color: #00CED1;">We are currently working on the following projects:</span></p><ul><li><p><a href="https://rubybib.brickellresearch.org/">a fork of rubybib.</a>: A bibliography for academic papers about the Ruby programming language.</p></li><li><p><a href="https://pkgs.racket-lang.org/package/XDR">XDR</a>: a Racket package for encoding and decoding XDR data.</p></li></ul></div></div><div id="contextindicator">&nbsp;</div></body></html>

0 commit comments

Comments
 (0)