Add html creation infrastructure
This commit is contained in:
parent
bba062bcc9
commit
517c90704a
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@ -51,10 +51,17 @@ jobs:
|
|||||||
|
|
||||||
- name: create doc
|
- name: create doc
|
||||||
run: |
|
run: |
|
||||||
|
mkdir -p doc
|
||||||
cd doc
|
cd doc
|
||||||
nix-shell --run 'make all'
|
nix-shell --run 'make all'
|
||||||
echo hello world > index.html
|
echo hello world > index.html
|
||||||
|
|
||||||
|
- name: create atrip.html
|
||||||
|
run: |
|
||||||
|
cd doc
|
||||||
|
nix-shell --run 'make html'
|
||||||
|
mv atrip.html doc/
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.0
|
uses: JamesIves/github-pages-deploy-action@4.1.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
5
Makefile
5
Makefile
@ -87,3 +87,8 @@ install:
|
|||||||
cp -r include/* $(PREFIX)/include/
|
cp -r include/* $(PREFIX)/include/
|
||||||
mkdir -p $(PREFIX)/lib
|
mkdir -p $(PREFIX)/lib
|
||||||
cp $(wildcard $(ATRIP_SHARED_LIBRARY) $(ATRIP_STATIC_LIBRARY)) $(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
33
etc/emacs/html.el
Normal 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)
|
||||||
Loading…
Reference in New Issue
Block a user