Skip to content

Commit 53126eb

Browse files
committed
Updated, generate gh-pages
1 parent 8e61297 commit 53126eb

6 files changed

Lines changed: 241 additions & 33 deletions

File tree

.github/workflows/ghpages.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
with:
11+
submodules: true
12+
fetch-depth: 0
13+
- run: |
14+
git config --global user.name github-actions
15+
git config --global user.email github-actions@github.com
16+
git config --global --add safe.directory '*'
17+
- run: make ghpages_action GIT_MESSAGE="Automated update ${{ github.ref_name }}"

.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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
APT_INSTALL?=env DEBIAN_FRONTEND=noninteractive apt --yes --no-install-recommends install
2+
GIT_MESSAGE?="UPDATED"
3+
14
fmt:
25
cp README.md README.md.back
36
sed '/^Introduction$$/,$$!d' README.md.back > README.md
@@ -6,3 +9,30 @@ fmt:
69

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

0 commit comments

Comments
 (0)