blob: 821fa00d054fc52b16684e2950d6f50938d28c05 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#+title: README
* Overview
This project uses [[https://orgmode.org/][org-mode]] to structure all documents, including the index page
and sub-pages such as blog posts.
* Configuration
If you want to replicate this project structure, you'll need to customize your
=.emacs= file appropriately, or load a custom =.el= file.
If you're within emacs while changing =.emacs=, you'll need to reload the
configuration with =M-x load-file= and hit enter to reload the current file
(=.emacs=).
See the [[./elisp/publish.el][publish.el]] file for this repository's
configuration.
* Building
When ready to publish, open any of the =.org= files in the project and execute
=M-x org-publish-current-project=.
If you want to force emacs to re-publish all files, including files without
changes, execute =C-u M-x org-publish-current-project=.
The resulting files will be published to the =public/= directory within the
repository, which is ignored via the =.gitignore= file. If you wish to publish
the files remotely, you can change the =:publishing-directory= variable in
=publish.el= or do a sync step outside of emacs:
#+begin_src sh
scp -r public/* ubuntu:/var/www/cleberg.net/
#+end_src
|