Skip to content

Commit 093d26a

Browse files
committed
Updated, generate gh-pages
1 parent 8e61297 commit 093d26a

File tree

6 files changed

+233
-33
lines changed

6 files changed

+233
-33
lines changed

.github/workflows/ghpages.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
on: [push, pull_request]
2+
3+
jobs:
4+
gh_pages:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
contents: write
8+
steps:
9+
- uses: actions/checkout@v5
10+
- run: make ghpages_action

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "gh-pages"]
2+
path = gh-pages
3+
url = ../codeincomplete.git
4+
branch = gh-pages

.hunspell_dict

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,30 @@ Bufferization
110110
UDP
111111
codebase
112112
compilable
113+
oom
114+
dont
115+
KPIs
116+
Jira
117+
SDF
118+
rviz
119+
bugfixes
120+
bugfix
121+
LLA
122+
MSL
123+
WGS84
124+
Werror
125+
LLM
126+
instantiations
127+
typename
128+
struct
129+
MyClass
130+
CallbackData
131+
mat3
132+
mat2
133+
mat1
134+
ROS2
135+
ament
136+
doesn
137+
NODELAY
138+
REUSEADDR
139+
eigendecomposition

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
APT_INSTALL?=env DEBIAN_FRONTEND=noninteractive apt --yes --no-install-recommends install
2+
13
fmt:
24
cp README.md README.md.back
35
sed '/^Introduction$$/,$$!d' README.md.back > README.md
@@ -6,3 +8,30 @@ fmt:
68

79
spell:
810
hunspell -H -p ./.hunspell_dict ./README.md
11+
12+
html: # based on https://github.com/jez/pandoc-markdown-css-theme
13+
pandoc README.md \
14+
--output gh-pages/index.html \
15+
--standalone \
16+
--table-of-contents \
17+
--toc-depth=3 \
18+
--number-sections \
19+
--to html5+smart \
20+
--embed-resources \
21+
--template=gh-pages/template.html5 \
22+
--css gh-pages/theme.css \
23+
--css gh-pages/skylighting-solarized-theme.css \
24+
--wrap=none \
25+
--variable=date:"DATE: `date '+%Y-%m-%d'`" \
26+
--variable=author:"VERSION: `git describe --broken --dirty --always`" \
27+
--metadata title="Code Incomplete"
28+
29+
ghpages:
30+
cd gh-pages; git checkout gh-pages
31+
${MAKE} html
32+
cd gh-pages; git add *; git commit -a -m "Updated"; git push
33+
34+
ghpages_action:
35+
sudo apt update
36+
${APT_INSTALL} pandoc
37+
${MAKE} gh-pages

0 commit comments

Comments
 (0)