danielmochdotcom

Nikola site for www.danielmoch.com
git clone git://git.danielmoch.com/danielmochdotcom.git
Log | Files | Refs

commit 97e6ed3153835e38e24ff1394277f919c7f48c3c
parent 6c1df894d8612c8725d85e7617d8152d6ee888d1
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 19 Oct 2018 16:30:20 -0400

Point project links to personal Git. Add Makefile.

Diffstat:
AMakefile | 46++++++++++++++++++++++++++++++++++++++++++++++
Mpages/projects.rst | 14++++++++------
2 files changed, 54 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,46 @@ +.PHONY: help build serve clean deploy +.DEFAULT_GOAL := help + +define BROWSER_PYSCRIPT +import os, webbrowser, sys + +try: + from urllib import pathname2url +except: + from urllib.request import pathname2url + +webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1]))) +endef +export BROWSER_PYSCRIPT + +define PRINT_HELP_PYSCRIPT +import re, sys + +for line in sys.stdin: + match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line) + if match: + target, help = match.groups() + print("%-20s %s" % (target, help)) +endef +export PRINT_HELP_PYSCRIPT + +BROWSER := python -c "$$BROWSER_PYSCRIPT" +PIPENV := pipenv +PIPRUN := $(PIPENV) run +NIKOLA := nikola + +help: + @python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) + +build: ## compile source folder in preparation of deployment + $(PIPRUN) $(NIKOLA) build + +serve: build ## start the test webserver + $(PIPRUN) $(NIKOLA) serve + $(BROWSER) + +clean: ## clean action / remove targets + $(PIPRUN) $(NIKOLA) clean + +deploy: build ## deploy the site + $(PIPRUN) $(NIKOLA) deploy diff --git a/pages/projects.rst b/pages/projects.rst @@ -57,17 +57,19 @@ Here's a list of things I'm working on in my personal time. of choice. I'm also beginning to interact with the user community there, and one way I'm doing that is by maintaining several packages on the Arch Linux User Repository (AUR). Click in the AUR link above - to navigate to my user profile over there. + to navigate to my user profile over there. There are also a variety of + less mature Arch PKGBUILDs on my `personal Git site`_. -.. _Vim MakeJob: https://github.com/djmoch/vim-makejob -.. _CBR Schedule: https://github.com/djmoch/cbr-schedule -.. _NextCloud Notes Command Line Interface (nncli): https://github.com/djmoch/nncli +.. _Vim MakeJob: https://git.danielmoch.com/vim-makejob.git +.. _CBR Schedule: https://git.danielmoch.com/cbr-schedule.git +.. _NextCloud Notes Command Line Interface (nncli): https://git.danielmoch.com/nncli.git .. _NewCity Orlando: http://newcityorlando.com .. _here: /static/cbr.pdf .. _Python: https://python.org .. _sncli: https://github.com/insanum/sncli -.. _Hookmeup: https://github.com/djmoch/hookmeup -.. _Vim Runtime: https://github.com/djmoch/vim-runtime +.. _Hookmeup: https://git.danielmoch.com/hookmeup.git +.. _Vim Runtime: https://git.danielmoch.com/vim-runtime.git .. _Vim: http://vim.org .. _Arch Linux User Repository: https://aur.archlinux.org/packages/?SeB=m&K=djmoch .. _Arch Linux: https://archlinux.org +.. _`personal Git site`: https://git.danielmoch.com