Update miscellaneous stuff

README, gitignores, and the specific configuration for this project.
This commit is contained in:
Gabriel Arazas 2021-07-17 18:27:44 +08:00
parent e8e1e1b26f
commit e8abac86e1
3 changed files with 317 additions and 25 deletions

310
.gitignore vendored
View File

@ -11,3 +11,313 @@
# I have a thing called preevacee so I don't want to. # I have a thing called preevacee so I don't want to.
daily/ daily/
node_modules
.dendron.*
build
### Lilypond ###
*.pdf
*.ps
*.midi
*.mid
*.log
*~
### LaTeX ###
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
.*.lb
## Intermediate documents:
*.dvi
*.xdv
*-converted-to.*
# these rules might exclude image files for figures etc.
*.ps
*.eps
# *.pdf
## Generated if empty string is given at "Please type another file name for output:"
.pdf
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml
## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex(busy)
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
## Build tool directories for auxiliary files
# latexrun
latex.out/
## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa
# achemso
acs-*.bib
# amsthm
*.thm
# beamer
*.nav
*.pre
*.snm
*.vrb
# changes
*.soc
# comment
*.cut
# cprotect
*.cpt
# elsarticle (documentclass of Elsevier journals)
*.spl
# endnotes
*.ent
# fixme
*.lox
# feynmf/feynmp
*.mf
*.mp
*.t[1-9]
*.t[1-9][0-9]
*.tfm
#(r)(e)ledmac/(r)(e)ledpar
*.end
*.?end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R
# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls
*.glsdefs
*.lzo
*.lzs
# uncomment this for glossaries-extra (will ignore makeindex's style files!)
# *.ist
# gnuplottex
*-gnuplottex-*
# gregoriotex
*.gaux
*.glog
*.gtex
# htlatex
*.4ct
*.4tc
*.idv
*.lg
*.trc
*.xref
# hyperref
*.brf
# knitr
*-concordance.tex
# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files
# *.tikz
*-tikzDictionary
# listings
*.lol
# luatexja-ruby
*.ltjruby
# makeidx
*.idx
*.ilg
*.ind
# minitoc
*.maf
*.mlf
*.mlt
*.mtc[0-9]*
*.slf[0-9]*
*.slt[0-9]*
*.stc[0-9]*
# minted
_minted*
*.pyg
# morewrites
*.mw
# newpax
*.newpax
# nomencl
*.nlg
*.nlo
*.nls
# pax
*.pax
# pdfpcnotes
*.pdfpc
# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd
# scrwfile
*.wrt
# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/
# pdfcomment
*.upa
*.upb
# pythontex
*.pytxcode
pythontex-files-*/
# tcolorbox
*.listing
# thmtools
*.loe
# TikZ & PGF
*.dpth
*.md5
*.auxlock
# todonotes
*.tdo
# vhistory
*.hst
*.ver
# easy-todo
*.lod
# xcolor
*.xcp
# xmpincl
*.xmpi
# xindy
*.xdy
# xypic precompiled matrices and outlines
*.xyc
*.xyd
# endfloat
*.ttt
*.fff
# Latexian
TSWLatexianTemp*
## Editors:
# WinEdt
*.bak
*.sav
# Texpad
.texpadtmp
# LyX
*.lyx~
# Kile
*.backup
# gummi
.*.swp
# KBibTeX
*~[0-9]*
# TeXnicCenter
*.tps
# auto folder when using emacs and auctex
./auto/*
*.el
# expex forward references with \gathertags
*-tags.tex
# standalone packages
*.sta
# Makeindex log files
*.lpz
# xwatermark package
*.xwm
# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib
# option is specified. Footnotes are the stored in a file with suffix Notes.bib.
# Uncomment the next line to have this generated file ignored.
#*Notes.bib
### LaTeX Patch ###
# LIPIcs / OASIcs
*.vtc
# glossaries
*.glstex

View File

@ -243,25 +243,7 @@ image::assets/workflow.png[]
This also means expect the following changes if you're watching this repo for some reason. This also means expect the following changes if you're watching this repo for some reason.
Keep in mind all of the details are still under consideration. Keep in mind all of the details are still under consideration.
* Create a static site for my wiki. * Make the site prettier.
org-roam doesn't have a built-in export option yet but there are solutions.
For now, I'm not worrying to much on this one.
** I could make a custom publication script.
I did create a publication script back then for a small org-mode-based for testing purposes but it is messy and life happened so I wasn't able to get back on it immediately.
Here's a link:https://git.sr.ht/~brettgilio/website/[very good example of a org-mode-and-Emacs-powered site] complete with features and without JavaScript!
footnote:[link:https://brettgilio.com/[Brett Gilio] is kind enough to answer my noob org-mode related questions back then so big thanks to him for the guidance. :)]
The advantage is complete control and the disadvantage is starting from scratch.
Still, you can start from already existing solutions.
** Convert the org documents to commonly-supported text formats like Markdown and use static site generators.
Most of them supports Markdown and there is an "export to Markdown" option for org-mode.
I could whip up an Elisp script and export it by batch then move them over to an SSG setup like Hugo.
This is also how link:https://github.com/jethrokuan/braindump[Jethro Kuan's org-roam notes] are setup.
** Use a parser outside of Emacs.
link:https://github.com/rasendubi/uniorg/tree/master/examples/org-braindump[uniorg] has a good example with Next.js as the site generator and it can support org-roam v2 ID links.
It requires an external JavaScript-based setup but it can also be an advantage.
* Try out link:https://github.com/srid/neuron/[Neuron]. * Try out link:https://github.com/srid/neuron/[Neuron].
I've used it on and off and even tried to support both org-roam and Neuron because I like the static site generated and also because org-roam doesn't have a killer HTML exporter yet (in my opinion). I've used it on and off and even tried to support both org-roam and Neuron because I like the static site generated and also because org-roam doesn't have a killer HTML exporter yet (in my opinion).

View File

@ -44,16 +44,16 @@
:if-new :if-new
(file+head "%<%Y-%m-%d-%H-%M-%S>.org" (file+head "%<%Y-%m-%d-%H-%M-%S>.org"
"#+title: ${title} "#+title: ${title}
#+date: \"%<%Y-%m-%d %T %:z>\" #+date: %<%Y-%m-%d %T %:z>
#+date_modified: \"%<%Y-%m-%d %T %:z>\" #+date_modified: %<%Y-%m-%d %T %:z>
#+language: en") #+language: en")
:unnarrowed t) :unnarrowed t)
("c" "cards" plain "%?" ("c" "cards" plain "%?"
:if-new :if-new
(file+head ,(f-join +anki-cards-directory-name "%<%Y>.org") "#+title: Anki: ${title} (file+head ,(f-join +anki-cards-directory-name "%<%Y>.org") "#+title: Anki: ${title}
#+date: \"%<%Y-%m-%d %T %:z>\" #+date: %<%Y-%m-%d %T %:z>
#+date_modified: \"%<%Y-%m-%d %T %:z>\" #+date_modified: %<%Y-%m-%d %T %:z>
#+language: en #+language: en
#+property: anki_deck ${title}") #+property: anki_deck ${title}")
:unnarrowed t) :unnarrowed t)
@ -61,8 +61,8 @@
("l" "literature" plain "%?" ("l" "literature" plain "%?"
:if-new :if-new
(file+head ,(f-join +structured-notes-directory-name "literature.${slug}.org") "#+title: ${title} (file+head ,(f-join +structured-notes-directory-name "literature.${slug}.org") "#+title: ${title}
#+date: \"%<%Y-%m-%d %T %:z>\" #+date: %<%Y-%m-%d %T %:z>
#+date_modified: \"%<%Y-%m-%d %T %:z>\" #+date_modified: %<%Y-%m-%d %T %:z>
#+language: en") #+language: en")
:unnarrowed t) :unnarrowed t)