-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4821c65
Showing
17 changed files
with
9,161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Emacs | ||
run: | | ||
sudo apt-add-repository ppa:ubuntu-elisp/ppa | ||
sudo apt update | ||
sudo apt-get install emacs-snapshot | ||
- name: Build the site | ||
run: ./publi.sh | ||
|
||
- name: Publish generated content to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: gh-pages | ||
folder: public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Dr. Ramón L. Panadés-Barrueta | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#+TITLE: A natural sciences and array programming blog | ||
|
||
Welcome to the source files from my blog [[https://panadestein.github.io/tac/][The Alien's Cuneiform]]. | ||
Here, I delve into solving computational problems across various | ||
disciplines using my preferred [[https://mlochbaum.github.io/BQN/][tool of thought]]. Every post is actually | ||
an =org-mode= literate programming computational notebook. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* BQN386 Font Face */ | ||
@font-face { | ||
font-family: 'BQN'; | ||
src: url('BQN386.ttf') format('truetype'); | ||
} | ||
|
||
/* Blog header settings */ | ||
|
||
.container { | ||
max-width: 500px; /* Set your desired maximum width */ | ||
margin: 0 auto; /* Center the container */ | ||
padding: 10px; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 10px 0; | ||
} | ||
|
||
.header-left { | ||
font-size: 1.5em; | ||
} | ||
|
||
/* Applying the BQN386 Font */ | ||
body, input, select, textarea, pre, code, kbd { | ||
font-family: 'BQN', monospace; | ||
} | ||
|
||
body { | ||
text-align: justify; | ||
} | ||
|
||
/* Basic styling for code elements */ | ||
code, pre { | ||
background-color: #e3e7e7; | ||
color: #292929; | ||
font-size: 0.94em; | ||
} | ||
|
||
pre, pre.src { | ||
overflow-x: auto; | ||
border: 1px solid #ccc; | ||
border-radius: 3px; | ||
box-shadow: 3px 3px 3px #eee; | ||
background-color: #e3e7e7; | ||
} | ||
|
||
pre.src { | ||
position: relative; | ||
margin: 0 2em 0 2em; | ||
padding-top: 0.7em; | ||
} | ||
|
||
/* Hyperlinks */ | ||
a:link, a:visited { | ||
color: #267CB9; | ||
text-decoration: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
;;; package --- Build Org website | ||
|
||
;;; Commentary: | ||
;; Build website from Org-mode source files | ||
|
||
;;; Code: | ||
|
||
;; Set a package installation directory to avoid conflicts | ||
|
||
(require 'package) | ||
(setq package-user-dir (expand-file-name "./.packages")) | ||
(setq package-archives '(("melpa" . "https://melpa.org/packages/") | ||
("elpa" . "https://elpa.gnu.org/packages/"))) | ||
|
||
;; Initialize the package system | ||
|
||
(package-initialize) | ||
(unless package-archive-contents | ||
(package-refresh-contents)) | ||
|
||
;; Install packages needed for HTML export | ||
|
||
(package-install 'htmlize) | ||
(package-install 'reformatter) | ||
(package-install 'color-theme-modern) | ||
|
||
(require 'htmlize) | ||
(require 'ox-publish) | ||
(require 'font-lock) | ||
|
||
;; Using this library is a work-around to get color in HTML exports. | ||
;; Otherwise Emacs in batch mode cannot get the correct faces | ||
|
||
(load-theme 'greiner t t) | ||
(enable-theme 'greiner) | ||
|
||
;; Set some variables for the export | ||
|
||
(global-font-lock-mode t) | ||
(setq org-html-validation-link nil | ||
org-html-head-include-scripts nil | ||
org-html-include-default-style nil | ||
org-confirm-babel-evaluate nil | ||
org-src-fontify-natively t) | ||
|
||
;; Define the project to be published | ||
|
||
(setq org-publish-project-alist | ||
(list | ||
(list "assets" | ||
:base-directory "./assets" | ||
:base-extension "css\\|ttf" | ||
:publishing-directory "./public/assets" | ||
:publishing-function 'org-publish-attachment | ||
:recursive t) | ||
(list "supp" | ||
:base-directory "./supp" | ||
:base-extension 'any | ||
:publishing-directory "./public/supp" | ||
:publishing-function 'org-publish-attachment | ||
:recursive t) | ||
(list "tac" | ||
:recursive t | ||
:base-directory "./src" | ||
:publishing-directory "./public" | ||
:publishing-function 'org-html-publish-to-html | ||
:with-author nil | ||
:with-creator nil | ||
:with-toc nil | ||
:section-numbers nil | ||
:time-stamp-file nil))) | ||
|
||
;; Generate site | ||
|
||
(org-publish-all t) | ||
(message "Build completed") | ||
|
||
(provide 'build-site) | ||
;;; build-site.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Run Emacs Lisp publishing script | ||
|
||
emacs -Q --script build-site.el |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- eval: (face-remap-add-relative 'default '(:family "BQN386 Unicode" :height 180)); -*- | ||
#+TITLE: A classical Hartree-Fock program | ||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="assets/style.css"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="assets/style.css"/> | ||
|
||
#+HTML: <div class="container"> | ||
#+HTML: <header class="header"> | ||
#+HTML: <div class="header-left">The Alien's Cuneiform</div> | ||
#+HTML: <div class="header-right"><a href="https://panadestein.github.io/">About</a></div> | ||
#+HTML: </header> | ||
|
||
1. [[./qbqn.org][BQN's Quantum Noise]] | ||
2. [[./spodat.org][Songs to pave the seasons]] | ||
3. [[./hf.org][A classical Hartree-Fock program]] | ||
|
||
#+HTML: </div> |
Oops, something went wrong.