home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit ce87d7248f109a8ac93d4e7cb9a5f6456a90a8a8
parent db69616dadda5d705068748c1c2204a0991e2d44
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed,  4 May 2022 19:47:26 +0200

www: move things around

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mwww/vincent.demeester.fr/Makefile | 12++++++------
Awww/vincent.demeester.fr/README.org | 26++++++++++++++++++++++++++
Rwww/vincent.demeester.fr/publish-common.el -> www/vincent.demeester.fr/lib/publish-common.el | 0
Rwww/vincent.demeester.fr/publish.el -> www/vincent.demeester.fr/lib/publish.el | 0
4 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/www/vincent.demeester.fr/Makefile b/www/vincent.demeester.fr/Makefile @@ -4,11 +4,11 @@ # :header-args+: :comments org # :ID: 6191455e-95bc-4abc-a5f5-a62606ab2ea7 # :END: -# +# # In order to publish this website, I am using [[file:make.org][make]]. In a nutshell, I am going to define a # few target to get the content from my notes, export org files into html and copy more or # less everything to the =public= folder. I will also define a clean and a publish target. -# +# # The first part of my =Makefile= will be to define some constants that I want to use later # on. Those are mainly to easily change where to look for the notes or where the emacs # configuration is. @@ -42,7 +42,7 @@ all: build # :PROPERTIES: # :ID: 853f3d6b-f385-4091-9f9e-b04d17794e5c # :END: -# +# # To build the website, we will be using [[file:emacs.org][Emacs]] in batch mode, with some shared library *and* # the actual [[id:631ced7a-f3f7-4a77-81a8-4a1884a6c4d4][publish]] script. @@ -51,7 +51,7 @@ all: build build: publish.el publish-common.el build-articles @echo "Publishing... with current Emacs configurations." ${EMACS} --debug-init --batch --directory $(DOTEMACS)/lisp/ --directory $(DOTEMACS)/lisp/vorg/ \ - --load publish-common.el --load publish.el \ + --load lib/publish-common.el --load lib/publish.el \ --funcall org-publish-all .PHONY: build-articles @@ -78,7 +78,7 @@ publish: build # :PROPERTIES: # :ID: 0e26a52e-5f66-42c6-934d-b45cfc9745b2 # :END: -# +# # Let's use =miniserve= (using [[file:nix.org][Nix]] with =nix-shell=) to serve the static website locally to # validate my changes. @@ -91,7 +91,7 @@ serve: # :PROPERTIES: # :ID: 5bec22c8-491b-4e03-855a-4b5f859473cf # :END: -# +# # One of the final step is to install the git hooks if any. I tend to have this target in all my # personal =Makefile= at least. Let's also define a =pre-commit= target that will hold # anything we need to do at =pre-commit=. diff --git a/www/vincent.demeester.fr/README.org b/www/vincent.demeester.fr/README.org @@ -0,0 +1,26 @@ +#+TITLE: vincent.demeester.fr + +This is my website source code and content. Here lives /or should live/ all that matters and +is required to run and publish my website, anywhere. + +- It is statically published and can be build and browsed locally +- It is as simple, and reproductible as possible + + as little dependency as possible, most likely only =emacs= (if that's not too much already). + + using ~nix~ to make sure it is reproductible +- It is /temporal/, meaning if I change the style, theme, … the previous pages are still + using the one at their time. + +* Structure + +This repository holds the source of the website. The actual generated website is build, in +a reproducible manner, package and deployed. It can also be served locally, with tools +like =miniserve= or even without. + +- =content= holds the content, so =org= files or =html= files, … +- =public= holds the generated content. + +* Links + +- [[https://github.com/NixOS/nixos-homepage/blob/master/flake.nix][nixos homepage flake]] +- [[https://git.sr.ht/~aasg/haunted-blog][aasg's most experimental weblog – haunted edition]] — using flake + + [[https://sr.ht/~aasg/snowweb/][SnowWeb – a webserver for Nix flakes]] diff --git a/www/vincent.demeester.fr/publish-common.el b/www/vincent.demeester.fr/lib/publish-common.el diff --git a/www/vincent.demeester.fr/publish.el b/www/vincent.demeester.fr/lib/publish.el