Add html creation infrastructure

This commit is contained in:
Alejandro Gallo 2021-10-12 17:57:52 +02:00
parent bba062bcc9
commit 517c90704a
3 changed files with 45 additions and 0 deletions

View File

@ -51,10 +51,17 @@ jobs:
- name: create doc
run: |
mkdir -p doc
cd doc
nix-shell --run 'make all'
echo hello world > index.html
- name: create atrip.html
run: |
cd doc
nix-shell --run 'make html'
mv atrip.html doc/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.0
with:

View File

@ -87,3 +87,8 @@ install:
cp -r include/* $(PREFIX)/include/
mkdir -p $(PREFIX)/lib
cp $(wildcard $(ATRIP_SHARED_LIBRARY) $(ATRIP_STATIC_LIBRARY)) $(PREFIX)/lib/
.PHONY: html
EMACS_HTML = $(EMACS) --load ./etc/emacs/html.el
html:
$(EMACS_HTML) $(ORG_MAIN) --eval "(org-html-export-to-html)"

33
etc/emacs/html.el Normal file
View File

@ -0,0 +1,33 @@
(require 'package)
(setq package-enable-at-startup t)
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.org/packages/" )
("org" . "http://orgmode.org/elpa/" )))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(use-package htmlize
:ensure t)
(require 'org)
;(use-package org-plus-contrib
; :ensure
;(use-package org-src
;:ensure t)
(setq org-src-fontify-natively t
org-src-preserve-indentation t
org-src-tab-acts-natively t)
(load-theme 'tsdh-light)
(require 'ox-html)